|
FEDEM Model Database
R8.0
Source code of the FEDEM model database
|
Template for static class initialisation on start-up. More...
#include <FFaInitialisation.H>
Public Member Functions | |
| FFaInitialisation () | |
| The constructor invokes the T::init() method in the first call. More... | |
| ~FFaInitialisation () | |
| The destructor decrements the counter. More... | |
Static Private Attributes | |
| static int | count = 0 |
| Keeps track of the number of invokations for class T. More... | |
Template for static class initialisation on start-up.
Nifty counter implementation to ensure proper initialisation of classes on start-up. The template argument T must be a class with a static method init() defined.
|
inline |
The constructor invokes the T::init() method in the first call.
|
inline |
The destructor decrements the counter.
|
staticprivate |
Keeps track of the number of invokations for class T.