32 #ifndef HURRICANE_INITIALIZER_H
33 #define HURRICANE_INITIALIZER_H
47 typedef std::function<void(
void)> initializer_t;
48 typedef std::multimap<unsigned int,initializer_t> InitializerMap;
50 static void destroy ();
51 static InitializerMap& initializers ();
52 static void addInitializer (
unsigned int order, initializer_t );
53 static bool runOnce ();
56 static InitializerMap* _initializers;
66 inline Initializer (
unsigned int order ) { Init::addInitializer( order, T::initialize ); }
Register a static initialization function.
Definition: Initializer.h:64
Initializer(unsigned int order)
Definition: Initializer.h:66
The namespace dedicated to Hurricane.
Definition: Generalities.dox:5