DAnCE  ..
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Types | Public Member Functions | Protected Attributes | List of all members
DAnCE::Config_Handlers::IDREF_Base< T > Class Template Reference

#include <IDREF_Base.h>

Collaboration diagram for DAnCE::Config_Handlers::IDREF_Base< T >:
Collaboration graph

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_
 
next_
 

Member Typedef Documentation

Constructor & Destructor Documentation

template<typename T>
DAnCE::Config_Handlers::IDREF_Base< T >::IDREF_Base ( )
inline
template<typename T>
DAnCE::Config_Handlers::IDREF_Base< T >::IDREF_Base ( start_point)
inline

Member Function Documentation

template<typename T >
void DAnCE::Config_Handlers::IDREF_Base< T >::bind_next_available ( ACE_TString id)
template<typename T>
void DAnCE::Config_Handlers::IDREF_Base< T >::bind_ref ( ACE_TString id,
value 
)

Bind an IDREF to an index.

template<typename T>
void DAnCE::Config_Handlers::IDREF_Base< T >::find_ref ( const ACE_TString id,
T &  value 
)

Get the index associated with an IDREF.

template<typename T>
void DAnCE::Config_Handlers::IDREF_Base< T >::find_ref ( const T &  value,
ACE_TString id 
)

get the IDREF associated with an index

template<typename T >
bool DAnCE::Config_Handlers::IDREF_Base< T >::unbind_refs ( void  )

Unbind all IDREFS.

Member Data Documentation

template<typename T>
IDREF_MAP DAnCE::Config_Handlers::IDREF_Base< T >::idref_map_
protected

The map used to store and look up the indexes of elements referenced by their IDREF.

template<typename T>
T DAnCE::Config_Handlers::IDREF_Base< T >::next_
protected
template<typename T>
POS_MAP DAnCE::Config_Handlers::IDREF_Base< T >::pos_map_
protected

The map used to store and look up the IDREFS of elements referenced by their index.


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