Lumiera 0.pre.04
»edit your freedom«
Loading...
Searching...
No Matches
MultiFact< SIG, ID, Wrapper >::Singleton< IMP > Class Template Reference

#include "lib/multifact.hpp"

Description

template<typename SIG, typename ID, template< class > class Wrapper = PassAsIs>
template<class IMP>
class lib::factory::MultiFact< SIG, ID, Wrapper >::Singleton< IMP >

Convenience shortcut for automatically setting up a production line, to fabricate a singleton instance of the given implementation target type (IMP)

Definition at line 328 of file multifact.hpp.

Public Member Functions

 Singleton (MultiFact &factory, ID id)
 

Private Types

typedef lib::Depend< IMP > SingleFact
 

Private Member Functions

Creator createSingleton_accessFunction ()
 
- Private Member Functions inherited from Depend< IMP >
IMP & operator() ()
 Interface to be used by clients for retrieving the service instance.
 
 operator bool () const
 allow to "peek" if a dependency is already available and exposed.
 
 Depend ()
 

Constructor & Destructor Documentation

◆ Singleton()

template<typename SIG , typename ID , template< class > class Wrapper = PassAsIs>
template<class IMP >
Singleton ( MultiFact factory,
ID  id 
)
inline

Definition at line 341 of file multifact.hpp.

References MultiFact< SIG, ID, Wrapper >::Singleton< IMP >::createSingleton_accessFunction(), and Depend< IMP >::factory().

+ Here is the call graph for this function:

Member Typedef Documentation

◆ SingleFact

template<typename SIG , typename ID , template< class > class Wrapper = PassAsIs>
template<class IMP >
typedef lib::Depend<IMP> SingleFact
private

Definition at line 331 of file multifact.hpp.

Member Function Documentation

◆ createSingleton_accessFunction()

template<typename SIG , typename ID , template< class > class Wrapper = PassAsIs>
template<class IMP >
Creator createSingleton_accessFunction ( )
inlineprivate

Definition at line 334 of file multifact.hpp.

Referenced by MultiFact< SIG, ID, Wrapper >::Singleton< IMP >::Singleton().

+ Here is the caller graph for this function:
+ Inheritance diagram for MultiFact< SIG, ID, Wrapper >::Singleton< IMP >:
+ Collaboration diagram for MultiFact< SIG, ID, Wrapper >::Singleton< IMP >:

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