|
PLearn 0.1
|
A StaticInitializer is typically declared as a static member of a class, and given a parameter that is a static initialization function for said class. More...
#include <StaticInitializer.h>
Public Member Functions | |
| StaticInitializer (VOIDFUNC initialize) | |
A StaticInitializer is typically declared as a static member of a class, and given a parameter that is a static initialization function for said class.
This will ensure that said function will be called upon program start. In Objects, this mechanism is defined automatically by the PLEARN_DECLARE_OBJECT_METHODS macro and used to automatically call TypeFactory::register_type
Definition at line 61 of file StaticInitializer.h.
| PLearn::StaticInitializer::StaticInitializer | ( | VOIDFUNC | initialize | ) |
Definition at line 46 of file StaticInitializer.cc.
{
(*initialize)();
}
1.7.4