7 #ifndef __core_Initialized_h__ 8 #define __core_Initialized_h__ 13 #define FE_INIT_DEBUG FALSE 63 feLog(
"Initialized::Initialized %p\n",
this);
66 #if FE_CODEGEN>FE_DEBUG && FE_COMPILER==FE_GNU 77 feLog(
"Initialized::~Initialized %p\n",
this);
81 void initializeAll(
void)
84 feLog(
"Initialized::initializeAll %p %d %d\n",
85 this,m_active,m_initializers.size());
91 const int size=m_initializers.size();
92 for(
int m=0;m<size;m++)
94 m_initializers[m](
this);
98 void setActive(
bool a_active) { m_active = a_active; }
104 void addInitializer(InitializeFunction
function)
105 { m_initializers.push_back(
function); }
123 feLog(
"Initialize::Initialize %p \"%s\"\n",
124 (T*)
this,FE_TYPESTRING(T).c_str());
134 feLog(
"Initialize::static_initialize %p \"%s\"\n",
135 obj,FE_TYPESTRING(T).c_str());
137 fe_cast<T>(obj)->initialize();
143 #endif // __core_Initialized_h__ Base participation non-RTTI fallback dynamic casting mechanism.
Definition: Castable.h:93
kernel
Definition: namespace.dox:3
Per-class participation in the Initialized <> mechanism.
Definition: Initialized.h:117
unsigned long timeMS(void)
Returns a time in milliseconds from an arbitrary fixed reference point.
Definition: SystemTicker.cc:190
High precision timer.
Definition: SystemTicker.h:174
Base class providing collective initialization (post-constructor)
Definition: Initialized.h:56
Per-class participation non-RTTI fallback dynamic casting mechanism.
Definition: Castable.h:192