Main Page | Directories | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages | Examples

singleton_container.h File Reference

#include "singleton_container_decl.h"

Include dependency graph for singleton_container.h:

Include dependency graph

This graph shows which files directly or indirectly include this file:

Included by dependency graph

Go to the source code of this file.

Defines

#define gluetoks(a, b)   a ## b
#define gluetoks3(a, b, c)   a ## b ## c
#define gluetoks4(a, b, c, d)   a ## b ## c ## d
#define gluetoks5(a, b, c, d, e)   a ## b ## c ## d ## e
#define gluemacs(a, b)   gluetoks(a, b)
#define gluemacs3(a, b, c)   gluetoks3(a, b, c)
#define gluemacs4(a, b, c, d)   gluetoks4(a, b, c, d)
#define gluemacs5(a, b, c, d, e)   gluetoks5(a, b, c, d, e)
#define CLASS_NAME()   gluemacs( SingletonCont, CLIENT_TYPE_CNT() )
#define BASE_CLASS_NAME   Singleton<T>
#define GET_CL_DECL()   C1
#define GET_K_DECL()   K1
#define GET_CL_DEF()   C1
#define GET_K_DEF()   K1
#define GET_CL_DEF()   C2
#define GET_K_DEF()   K2
#define GET_CL_DEF()   C3
#define GET_K_DEF()   K3

Functions

template<TEMPLATE_DECL > class SingletonContCLIENT_TYPE_CNT ()
 template class which enables instances of specified template client type to register themselves on construction, so that they can be accessed through this class


Define Documentation

#define BASE_CLASS_NAME   Singleton<T>
 

Definition at line 32 of file singleton_container.h.

Referenced by SingletonContCLIENT_TYPE_CNT().

 
#define CLASS_NAME  )     gluemacs( SingletonCont, CLIENT_TYPE_CNT() )
 

Definition at line 31 of file singleton_container.h.

Referenced by SingletonContCLIENT_TYPE_CNT().

 
#define GET_CL_DECL  )     C1
 

 
#define GET_CL_DEF  )     C3
 

Definition at line 117 of file singleton_container.h.

 
#define GET_CL_DEF  )     C2
 

Definition at line 117 of file singleton_container.h.

 
#define GET_CL_DEF  )     C1
 

Definition at line 117 of file singleton_container.h.

 
#define GET_K_DECL  )     K1
 

 
#define GET_K_DEF  )     K3
 

Definition at line 118 of file singleton_container.h.

 
#define GET_K_DEF  )     K2
 

Definition at line 118 of file singleton_container.h.

 
#define GET_K_DEF  )     K1
 

Definition at line 118 of file singleton_container.h.

#define gluemacs a,
 )     gluetoks(a, b)
 

Definition at line 21 of file singleton_container.h.

#define gluemacs3 a,
b,
 )     gluetoks3(a, b, c)
 

Definition at line 22 of file singleton_container.h.

#define gluemacs4 a,
b,
c,
 )     gluetoks4(a, b, c, d)
 

Definition at line 23 of file singleton_container.h.

#define gluemacs5 a,
b,
c,
d,
 )     gluetoks5(a, b, c, d, e)
 

Definition at line 24 of file singleton_container.h.

#define gluetoks a,
 )     a ## b
 

Definition at line 15 of file singleton_container.h.

#define gluetoks3 a,
b,
 )     a ## b ## c
 

Definition at line 16 of file singleton_container.h.

#define gluetoks4 a,
b,
c,
 )     a ## b ## c ## d
 

Definition at line 17 of file singleton_container.h.

#define gluetoks5 a,
b,
c,
d,
 )     a ## b ## c ## d ## e
 

Definition at line 18 of file singleton_container.h.


Function Documentation

template<TEMPLATE_DECL >
SingletonContCLIENT_TYPE_CNT  ) 
 

template class which enables instances of specified template client type to register themselves on construction, so that they can be accessed through this class

default constructor which ints the search cache

register pointer to a new client this function is called within construction of new client instance

unregister a client instance, which is destructed at the moment this function is called within the destructor of the client instance

check if an instance is registered with the given Key the instantiating class must have a operator==( K )

Parameters:
rt_key key value to identify the searched entry
Returns:
true -> searched item exists

deliver a reference to a stored client, for which operator==( rt_key ) result TRUE IMPORTANT: the instantiating class MUST have a function registerAccessFlt( void ), where an individual reaction on undefined access is implemented

Parameters:
rt_key key of the searched client instance
Returns:
instance of the searched client instance

vector with pointers to registered client instances

Definition at line 66 of file singleton_container.h.

References BASE_CLASS_NAME, and CLASS_NAME.


Generated on Wed Oct 13 15:12:45 2004 for IsoAgLib by  doxygen 1.3.8-20040913