global_register Class Template Reference

#include <global.hpp>

Inheritance diagram for global_register:

Inheritance graph
[legend]
Collaboration diagram for global_register:

Collaboration graph
[legend]

List of all members.


Detailed Description

template<typename R, typename L = gsgl::data::list<R *>>
class gsgl::data::global_register< R, L >

Base class for global resource registers.

They are singleton objects which delete themselves when their last registered resource unregisters itself. The resource class must implement a cleanup() function.

Definition at line 51 of file global.hpp.


Public Member Functions

void register_resource (R *)
void unregister_resource (R *)

Protected Member Functions

 global_register ()
virtual ~global_register ()

Static Protected Member Functions

static global_register< R, L > * global_instance ()
 Reimplemented in order to auto-create.

Protected Attributes

registered_resources

Constructor & Destructor Documentation

global_register (  )  [inline, protected]

Definition at line 70 of file global.hpp.

~global_register (  )  [inline, protected, virtual]

Definition at line 77 of file global.hpp.


Member Function Documentation

static global_register<R,L>* global_instance (  )  [static, protected]

Reimplemented in order to auto-create.

Reimplemented from singleton.

Reimplemented in broker, and logger.

void register_resource ( R *  r  )  [inline]

void unregister_resource ( R *  r  )  [inline]


Member Data Documentation

L registered_resources [protected]


The documentation for this class was generated from the following file:

Generated on Sat Mar 1 13:50:05 2008 for Periapsis Project by  doxygen 1.5.5