|
solinject
1.0.0
C++17 Dependency Injection header-only library
|
DI configuration item. More...
#include <ConfigurationItem.hpp>
Public Types | |
| using | Key = std::string |
| Key, used to map classes, registered in a ContainerBuilder to the ones specified in a config file. | |
Public Member Functions | |
| ConfigurationItem () | |
| Parameterless constructor. | |
| ConfigurationItem (std::string interfaceKey, std::string implementationKey, ServiceLifetime lifetime) | |
| Constructor. More... | |
| ConfigurationItem (std::string key, ServiceLifetime lifetime) | |
| Constructor. Used when the interface key and the implementation key are identical. More... | |
| ConfigurationItem (const ConfigurationItem &other) | |
| Copy constructor. | |
| ConfigurationItem (ConfigurationItem &&other) noexcept | |
| Move constructor. | |
| ConfigurationItem & | operator= (ConfigurationItem other) noexcept |
| Copy-assignment operator. | |
| Key | InterfaceKey () const |
| Interface key property. More... | |
| Key | ImplementationKey () const |
| Implementation key property. More... | |
| ServiceLifetime | Lifetime () const |
| Lifetime property. More... | |
Friends | |
| void | swap (ConfigurationItem &a, ConfigurationItem &b) |
| Swaps to ConfigurationItem instances. | |
DI configuration item.
|
inline |
Constructor.
| interfaceKey | the interface key |
| implementationKey | the implementation key |
| lifetime | the service lifetime |
|
inline |
Constructor. Used when the interface key and the implementation key are identical.
| key | the service key |
| lifetime | the service lifetime |
|
inline |
Implementation key property.
|
inline |
Interface key property.
|
inline |
Lifetime property.