|
Elm
2
ELM is a library providing generic data structures, OS-independent interface, plugins and XML.
|
21 #ifndef ELM_ORDERED_INITIALIZER_H
22 #define ELM_ORDERED_INITIALIZER_H
29 typedef struct node_t {
32 inline node_t(T *_object,
struct node_t *_next)
33 : object(_object), next(_next) { }
37 static bool initialized;
59 for(node_t *node = list, *next; node; node = next) {
71 list =
new node_t(
object, list);
80 for(node_t *node = list, *next; node; node = next) {
82 node->object->initialize();
91 #endif // ELM_INITIALIZER_H
~Initializer(void)
Definition: Initializer.h:44
OrderedInitializer(bool start=true)
void record(T *object)
Definition: Initializer.h:53
Definition: OrderedInitializer.h:28
ListPrinter< T > list(const T &l, cstring s="", typename ListPrinter< T >::fun_t f=ListPrinter< T >::asis)
Definition: Output.h:321
void startup(void)
Definition: Initializer.h:63
~OrderedInitializer(void)
Definition: Initializer.h:14
Initializer(bool start=true)
Definition: Initializer.h:37