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