#include <IDREF_Base.h>
Collaboration diagram for CIAO::Config_Handlers::IDREF_Base< T >:
Public Types | |
typedef ACE_Hash_Map_Manager< ACE_CString, T, ACE_Null_Mutex > | IDREF_MAP |
typedef ACE_Hash_Map_Manager< T, ACE_CString, ACE_Null_Mutex > | POS_MAP |
Public Member Functions | |
IDREF_Base () | |
IDREF_Base (T start_point) | |
void | bind_ref (ACE_CString &id, T value) throw (Config_Error) |
Bind an IDREF to an index. | |
void | bind_next_available (ACE_CString &id) |
void | find_ref (const ACE_CString &id, T &value) throw (Config_Error) |
Get the index associated with an IDREF. | |
void | find_ref (const T &value, ACE_CString &id) throw (Config_Error) |
get the IDREF associated with an index | |
bool | unbind_refs (void) |
Unbind all IDREFS. | |
Protected Attributes | |
IDREF_MAP | idref_map_ |
POS_MAP | pos_map_ |
T | next_ |
typedef ACE_Hash_Map_Manager<ACE_CString,T,ACE_Null_Mutex> CIAO::Config_Handlers::IDREF_Base< T >::IDREF_MAP |
typedef ACE_Hash_Map_Manager<T,ACE_CString,ACE_Null_Mutex> CIAO::Config_Handlers::IDREF_Base< T >::POS_MAP |
CIAO::Config_Handlers::IDREF_Base< T >::IDREF_Base | ( | ) | [inline] |
CIAO::Config_Handlers::IDREF_Base< T >::IDREF_Base | ( | T | start_point | ) | [inline] |
void CIAO::Config_Handlers::IDREF_Base< T >::bind_next_available | ( | ACE_CString & | id | ) |
void CIAO::Config_Handlers::IDREF_Base< T >::bind_ref | ( | ACE_CString & | id, | |
T | value | |||
) | throw (Config_Error) |
Bind an IDREF to an index.
void CIAO::Config_Handlers::IDREF_Base< T >::find_ref | ( | const T & | value, | |
ACE_CString & | id | |||
) | throw (Config_Error) |
get the IDREF associated with an index
void CIAO::Config_Handlers::IDREF_Base< T >::find_ref | ( | const ACE_CString & | id, | |
T & | value | |||
) | throw (Config_Error) |
Get the index associated with an IDREF.
bool CIAO::Config_Handlers::IDREF_Base< T >::unbind_refs | ( | void | ) |
Unbind all IDREFS.
IDREF_MAP CIAO::Config_Handlers::IDREF_Base< T >::idref_map_ [protected] |
The map used to store and look up the indexes of elements referenced by their IDREF.
T CIAO::Config_Handlers::IDREF_Base< T >::next_ [protected] |
POS_MAP CIAO::Config_Handlers::IDREF_Base< T >::pos_map_ [protected] |
The map used to store and look up the IDREFS of elements referenced by their index.