PLearn 0.1
Public Member Functions
PLearn::StaticInitializer Class Reference

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>

List of all members.

Public Member Functions

 StaticInitializer (VOIDFUNC initialize)

Detailed Description

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.


Constructor & Destructor Documentation

PLearn::StaticInitializer::StaticInitializer ( VOIDFUNC  initialize)

Definition at line 46 of file StaticInitializer.cc.

{
    (*initialize)();
}

The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines