solinject
1.0.0
C++17 Dependency Injection header-only library
|
Go to the documentation of this file.
61 m_InterfaceKey(interfaceKey),
62 m_ImplementationKey(implementationKey),
78 m_InterfaceKey(other.m_InterfaceKey),
79 m_ImplementationKey(other.m_ImplementationKey),
80 m_Lifetime(other.m_Lifetime)
103 swap(a.m_InterfaceKey, b.m_InterfaceKey);
104 swap(a.m_ImplementationKey, b.m_ImplementationKey);
105 swap(a.m_Lifetime, b.m_Lifetime);
125 Key m_ImplementationKey;
ConfigurationItem()
Parameterless constructor.
Definition: ConfigurationItem.hpp:48
ServiceLifetime Lifetime() const
Lifetime property.
Definition: ConfigurationItem.hpp:118
ConfigurationItem & operator=(ConfigurationItem other) noexcept
Copy-assignment operator.
Definition: ConfigurationItem.hpp:92
ConfigurationItem(std::string key, ServiceLifetime lifetime)
Constructor. Used when the interface key and the implementation key are identical.
Definition: ConfigurationItem.hpp:71
std::string Key
Key, used to map classes, registered in a ContainerBuilder to the ones specified in a config file.
Definition: ConfigurationItem.hpp:45
Key InterfaceKey() const
Interface key property.
Definition: ConfigurationItem.hpp:110
Key ImplementationKey() const
Implementation key property.
Definition: ConfigurationItem.hpp:114
DI configuration item.
Definition: ConfigurationItem.hpp:39
ServiceLifetime
Service lifetime.
Definition: ConfigurationItem.hpp:29
ConfigurationItem(const ConfigurationItem &other)
Copy constructor.
Definition: ConfigurationItem.hpp:77
friend void swap(ConfigurationItem &a, ConfigurationItem &b)
Swaps to ConfigurationItem instances.
Definition: ConfigurationItem.hpp:99
ConfigurationItem(ConfigurationItem &&other) noexcept
Move constructor.
Definition: ConfigurationItem.hpp:85
ConfigurationItem(std::string interfaceKey, std::string implementationKey, ServiceLifetime lifetime)
Constructor.
Definition: ConfigurationItem.hpp:56