solinject
1.0.0
C++17 Dependency Injection header-only library
|
Go to the documentation of this file.
26 namespace sol::di::impl
32 template<
class TService,
class...TServiceParents>
37 "The TServiceParents types must be derived from the TService type"
62 return std::make_shared<DIService>(m_Factory);
std::shared_ptr< IService > DIServicePtr
Pointer to an IService instance.
Definition: IScopedServiceBuilder.hpp:33
typename Base::Factory Factory
Factory function that accepts a reference to a DI container and returns a pointer to an instance of a...
Definition: ScopedService.hpp:45
typename DIService::Factory Factory
Factory function that accepts a reference to a DI container and returns a pointer to an instance of a...
Definition: ScopedServiceBuilder.hpp:50
ScopedServiceBuilder(Factory factory)
Constructor.
Definition: ScopedServiceBuilder.hpp:56
Scoped DI service.
Definition: ScopedService.hpp:33
Type-erased interface for DI service builders.
Definition: IScopedServiceBuilder.hpp:29
typename Base::DIServicePtr AbstractDIServicePtr
Pointer to an IService instance.
Definition: ScopedServiceBuilder.hpp:47
Builder for scoped DI services.
Definition: ScopedServiceBuilder.hpp:33
AbstractDIServicePtr BuildDIService() const override
Builds a DI service instance.
Definition: ScopedServiceBuilder.hpp:60