8 #ifndef FFA_SINGELTON_H 
    9 #define FFA_SINGELTON_H 
   56 template <
class T, 
class Container>
 
Template class for singleton classes.
Definition: FFaSingelton.H:20
 
static T * ourInstance
Points to the dynamically allocated instance.
Definition: FFaSingelton.H:52
 
FFaSingelton & operator=(const FFaSingelton &)=delete
Disable default assignment operator.
 
static bool allocated()
Returns true, if the instance has been allocated.
Definition: FFaSingelton.H:49
 
FFaSingelton()
The constructor is protected to allow objects of sub-classes only.
Definition: FFaSingelton.H:23
 
static void removeInstance()
Deletes the dynamically allocated instance.
Definition: FFaSingelton.H:41
 
static T * instance()
Returns the actual instance of this class.
Definition: FFaSingelton.H:32
 
FFaSingelton(const FFaSingelton &)=delete
Disable default copy constructor.