13 #ifndef FFA_SINGELTON_H
14 #define FFA_SINGELTON_H
61 template<
class T,
class Container>
Template for singleton classes.
Definition: FFaSingelton.H:26
static T * ourInstance
Points to the dynamically allocated instance.
Definition: FFaSingelton.H:57
FFaSingelton & operator=(const FFaSingelton &)=delete
Disable default assignment operator.
static bool allocated()
Returns true, if the instance has been allocated.
Definition: FFaSingelton.H:54
FFaSingelton()
The constructor is protected to allow objects of sub-classes only.
Definition: FFaSingelton.H:29
static void removeInstance()
Deletes the dynamically allocated instance.
Definition: FFaSingelton.H:47
static T * instance()
Returns the actual instance of this class.
Definition: FFaSingelton.H:38
FFaSingelton(const FFaSingelton &)=delete
Disable default copy constructor.