DependencyInjection
Loading...
Searching...
No Matches
Public Member Functions | Private Attributes | List of all members
DependencyInjection::ServiceDescriptor Class Reference

#include <DependencyInjection.hpp>

Public Member Functions

 ServiceDescriptor ()=delete
 
 ServiceDescriptor (const std::type_info &typeInfo, ServiceFactory factory, const ServiceLifetime lifetime)
 
 ServiceDescriptor (const ServiceDescriptor &obj)=default
 
 ServiceDescriptor (ServiceDescriptor &&deadObj) noexcept=default
 
auto & GetTypeInfo () const
 
auto GetFactory () const
 
auto GetLifetime () const
 
ServiceFactoryoperator= (const ServiceFactory &)=delete
 
ServiceFactoryoperator= (ServiceFactory &&) noexcept=delete
 

Private Attributes

const std::type_info & _typeInfo
 
const ServiceFactory _factory
 
const ServiceLifetime _lifetime
 

Constructor & Destructor Documentation

◆ ServiceDescriptor() [1/4]

DependencyInjection::ServiceDescriptor::ServiceDescriptor ( )
delete

◆ ServiceDescriptor() [2/4]

DependencyInjection::ServiceDescriptor::ServiceDescriptor ( const std::type_info &  typeInfo,
ServiceFactory  factory,
const ServiceLifetime  lifetime 
)
inline
73 :
74 _typeInfo{ typeInfo },
75 _factory{ std::move(factory) },
76 _lifetime{ lifetime } { }
const ServiceLifetime _lifetime
Definition: DependencyInjection.hpp:69
const ServiceFactory _factory
Definition: DependencyInjection.hpp:68
const std::type_info & _typeInfo
Definition: DependencyInjection.hpp:67

◆ ServiceDescriptor() [3/4]

DependencyInjection::ServiceDescriptor::ServiceDescriptor ( const ServiceDescriptor obj)
default

◆ ServiceDescriptor() [4/4]

DependencyInjection::ServiceDescriptor::ServiceDescriptor ( ServiceDescriptor &&  deadObj)
defaultnoexcept

Member Function Documentation

◆ GetFactory()

auto DependencyInjection::ServiceDescriptor::GetFactory ( ) const
inline
85 {
86 return _factory;
87 }

References _factory.

◆ GetLifetime()

auto DependencyInjection::ServiceDescriptor::GetLifetime ( ) const
inline
89 {
90 return _lifetime;
91 }

References _lifetime.

◆ GetTypeInfo()

auto & DependencyInjection::ServiceDescriptor::GetTypeInfo ( ) const
inline
81 {
82 return _typeInfo;
83 }

References _typeInfo.

◆ operator=() [1/2]

ServiceFactory & DependencyInjection::ServiceDescriptor::operator= ( const ServiceFactory )
delete

◆ operator=() [2/2]

ServiceFactory & DependencyInjection::ServiceDescriptor::operator= ( ServiceFactory &&  )
deletenoexcept

Member Data Documentation

◆ _factory

const ServiceFactory DependencyInjection::ServiceDescriptor::_factory
private

◆ _lifetime

const ServiceLifetime DependencyInjection::ServiceDescriptor::_lifetime
private

◆ _typeInfo

const std::type_info& DependencyInjection::ServiceDescriptor::_typeInfo
private

The documentation for this class was generated from the following file: