AmpGen 2.1
Loading...
Searching...
No Matches
AmpGen::Factory< TYPE, KEY_TYPE > Class Template Reference

Detailed Description

template<class TYPE, class KEY_TYPE = std::string>
class AmpGen::Factory< TYPE, KEY_TYPE >

Definition at line 21 of file Factory.h.

Static Public Member Functions

static Factory< TYPE, KEY_TYPE > * getMe ()
 
static TYPE * get (const KEY_TYPE &type, const bool quiet=false)
 
static KEY_TYPE Register (const KEY_TYPE &key, TYPE *object)
 

Public Attributes

std::map< KEY_TYPE, TYPE * > m_terms
 map of objected made by this factory
 

Static Public Attributes

static Factory< TYPE, KEY_TYPE > * gImpl
 pointer to static implementation
 

Member Function Documentation

◆ get()

template<class TYPE, class KEY_TYPE = std::string>
static TYPE * AmpGen::Factory< TYPE, KEY_TYPE >::get ( const KEY_TYPE & type,
const bool quiet = false )
inlinestatic

Definition at line 32 of file Factory.h.

◆ getMe()

template<class TYPE, class KEY_TYPE = std::string>
static Factory< TYPE, KEY_TYPE > * AmpGen::Factory< TYPE, KEY_TYPE >::getMe ( )
inlinestatic

Definition at line 27 of file Factory.h.

◆ Register()

template<class TYPE, class KEY_TYPE = std::string>
static KEY_TYPE AmpGen::Factory< TYPE, KEY_TYPE >::Register ( const KEY_TYPE & key,
TYPE * object )
inlinestatic

Definition at line 43 of file Factory.h.

Member Data Documentation

◆ gImpl

template<class TYPE, class KEY_TYPE = std::string>
Factory<TYPE, KEY_TYPE>* AmpGen::Factory< TYPE, KEY_TYPE >::gImpl
static

Definition at line 25 of file Factory.h.

◆ m_terms

template<class TYPE, class KEY_TYPE = std::string>
std::map<KEY_TYPE, TYPE*> AmpGen::Factory< TYPE, KEY_TYPE >::m_terms

Definition at line 24 of file Factory.h.


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