|
FEDEM Solver
R8.0
Source code of the dynamics solver
|
Template class for singleton classes. More...
#include <FFaSingelton.H>
Static Public Member Functions | |
| static T * | instance () |
| Returns the actual instance of this class. More... | |
| static void | removeInstance () |
| Deletes the dynamically allocated instance. More... | |
| static bool | allocated () |
| Returns true, if the instance has been allocated. More... | |
Protected Member Functions | |
| FFaSingelton () | |
| The constructor is protected to allow objects of sub-classes only. More... | |
| FFaSingelton (const FFaSingelton &)=delete | |
| Disable default copy constructor. More... | |
| FFaSingelton & | operator= (const FFaSingelton &)=delete |
| Disable default assignment operator. More... | |
Static Private Attributes | |
| static T * | ourInstance = 0 |
| Points to the dynamically allocated instance. More... | |
Template class for singleton classes.
This class is used as a wrapper for classes for which there should only exist one instance. All referencing to the class members are then to be done via the instance() method.
|
inlineprotected |
The constructor is protected to allow objects of sub-classes only.
|
protecteddelete |
Disable default copy constructor.
|
inlinestatic |
Returns true, if the instance has been allocated.
|
inlinestatic |
Returns the actual instance of this class.
The instance is allocated dynamically in the first invocation.
|
protecteddelete |
Disable default assignment operator.
|
inlinestatic |
Deletes the dynamically allocated instance.
This method is used to clean up memory before terminating.
|
staticprivate |
Points to the dynamically allocated instance.