ACE_Hash_Map_Entry< EXT_ID, INT_ID > Class Template Reference

Define an entry in the hash table. More...

#include <Hash_Map_Manager_T.h>

Collaboration diagram for ACE_Hash_Map_Entry< EXT_ID, INT_ID >:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 ACE_Hash_Map_Entry (const EXT_ID &ext_id, const INT_ID &int_id, ACE_Hash_Map_Entry< EXT_ID, INT_ID > *next=0, ACE_Hash_Map_Entry< EXT_ID, INT_ID > *prev=0)
 Constructor.
 ACE_Hash_Map_Entry (ACE_Hash_Map_Entry< EXT_ID, INT_ID > *next, ACE_Hash_Map_Entry< EXT_ID, INT_ID > *prev)
 Constructor.
 ~ACE_Hash_Map_Entry (void)
 Destructor.
EXT_ID & key (void)
 Key accessor.
INT_ID & item (void)
 Item accessor.
void dump (void) const
 Dump the state of an object.

Public Attributes

EXT_ID ext_id_
INT_ID int_id_
ACE_Hash_Map_Entry< EXT_ID,
INT_ID > * 
next_
 Pointer to the next item in the bucket of overflow nodes.
ACE_Hash_Map_Entry< EXT_ID,
INT_ID > * 
prev_
 Pointer to the prev item in the bucket of overflow nodes.

Detailed Description

template<class EXT_ID, class INT_ID>
class ACE_Hash_Map_Entry< EXT_ID, INT_ID >

Define an entry in the hash table.

Definition at line 36 of file Hash_Map_Manager_T.h.


Constructor & Destructor Documentation

template<class EXT_ID, class INT_ID>
ACE_Hash_Map_Entry< EXT_ID, INT_ID >::ACE_Hash_Map_Entry ( const EXT_ID &  ext_id,
const INT_ID &  int_id,
ACE_Hash_Map_Entry< EXT_ID, INT_ID > *  next = 0,
ACE_Hash_Map_Entry< EXT_ID, INT_ID > *  prev = 0 
)

Constructor.

Definition at line 39 of file Hash_Map_Manager_T.cpp.

00043   : ext_id_ (ext_id),
00044     int_id_ (int_id),
00045     next_ (next),
00046     prev_ (prev)
00047 {
00048 }

template<class EXT_ID, class INT_ID>
ACE_BEGIN_VERSIONED_NAMESPACE_DECL ACE_Hash_Map_Entry< EXT_ID, INT_ID >::ACE_Hash_Map_Entry ( ACE_Hash_Map_Entry< EXT_ID, INT_ID > *  next,
ACE_Hash_Map_Entry< EXT_ID, INT_ID > *  prev 
)

Constructor.

Definition at line 31 of file Hash_Map_Manager_T.cpp.

00033   : next_ (next),
00034     prev_ (prev)
00035 {
00036 }

template<class EXT_ID, class INT_ID>
ACE_Hash_Map_Entry< EXT_ID, INT_ID >::~ACE_Hash_Map_Entry ( void   ) 

Destructor.

Definition at line 177 of file Filecache.cpp.

References ACE_Hash_Map_Entry< EXT_ID, INT_ID >::ext_id_, and ACE_OS::free().

00178 {
00179   ACE_OS::free ((void *) ext_id_);
00180 }


Member Function Documentation

template<class EXT_ID, class INT_ID>
void ACE_Hash_Map_Entry< EXT_ID, INT_ID >::dump ( void   )  const

Dump the state of an object.

Definition at line 68 of file Hash_Map_Manager_T.cpp.

References ACE_BEGIN_DUMP, ACE_DEBUG, ACE_END_DUMP, ACE_TEXT, and LM_DEBUG.

00069 {
00070 #if defined (ACE_HAS_DUMP)
00071   ACE_DEBUG ((LM_DEBUG, ACE_BEGIN_DUMP, this));
00072   ACE_DEBUG ((LM_DEBUG,  ACE_TEXT ("next_ = %d"), this->next_));
00073   ACE_DEBUG ((LM_DEBUG,  ACE_TEXT ("prev_ = %d"), this->prev_));
00074   ACE_DEBUG ((LM_DEBUG, ACE_END_DUMP));
00075 #endif /* ACE_HAS_DUMP */
00076 }

template<class EXT_ID, class INT_ID>
INT_ID & ACE_Hash_Map_Entry< EXT_ID, INT_ID >::item ( void   ) 

Item accessor.

Definition at line 62 of file Hash_Map_Manager_T.cpp.

References ACE_Hash_Map_Entry< EXT_ID, INT_ID >::int_id_.

00063 {
00064   return int_id_;
00065 }

template<class EXT_ID, class INT_ID>
EXT_ID & ACE_Hash_Map_Entry< EXT_ID, INT_ID >::key ( void   ) 

Key accessor.

Definition at line 56 of file Hash_Map_Manager_T.cpp.

References ACE_Hash_Map_Entry< EXT_ID, INT_ID >::ext_id_.

00057 {
00058   return ext_id_;
00059 }


Member Data Documentation

template<class EXT_ID, class INT_ID>
EXT_ID ACE_Hash_Map_Entry< EXT_ID, INT_ID >::ext_id_

Key used to look up an entry.

Deprecated:
Use key()

Definition at line 61 of file Hash_Map_Manager_T.h.

Referenced by ACE_Configuration_Heap::enumerate_sections(), ACE_Configuration_Heap::enumerate_values(), ACE_Hash_Map_Entry< EXT_ID, INT_ID >::key(), ACE_Hash_Map_Manager_Ex< EXT_ID, INT_ID, HASH_KEY, COMPARE_KEYS, ACE_LOCK >::rebind_i(), ACE_Hash_Map_Manager_Ex< EXT_ID, INT_ID, HASH_KEY, COMPARE_KEYS, ACE_LOCK >::shared_find(), and ACE_Hash_Map_Entry< EXT_ID, INT_ID >::~ACE_Hash_Map_Entry().

template<class EXT_ID, class INT_ID>
INT_ID ACE_Hash_Map_Entry< EXT_ID, INT_ID >::int_id_

The contents of the entry itself.

Deprecated:
Use item()

Definition at line 65 of file Hash_Map_Manager_T.h.

Referenced by ACE_Configuration_Heap::enumerate_values(), ACE_Hash_Cache_Map_Manager< KEY, VALUE, HASH_KEY, COMPARE_KEYS, CACHING_STRATEGY, ATTRIBUTES >::find(), ACE_Hash_Map_Manager_Ex< EXT_ID, INT_ID, HASH_KEY, COMPARE_KEYS, ACE_LOCK >::find_i(), ACE_Hash_Map_Entry< EXT_ID, INT_ID >::item(), ACE_Hash_Map_Manager_Ex< EXT_ID, INT_ID, HASH_KEY, COMPARE_KEYS, ACE_LOCK >::rebind_i(), ACE_Hash_Map_Manager_Ex< EXT_ID, INT_ID, HASH_KEY, COMPARE_KEYS, ACE_LOCK >::trybind_i(), ACE_Hash_Cache_Map_Manager< KEY, VALUE, HASH_KEY, COMPARE_KEYS, CACHING_STRATEGY, ATTRIBUTES >::unbind(), and ACE_Hash_Map_Manager_Ex< EXT_ID, INT_ID, HASH_KEY, COMPARE_KEYS, ACE_LOCK >::unbind_i().

template<class EXT_ID, class INT_ID>
ACE_Hash_Map_Entry<EXT_ID, INT_ID>* ACE_Hash_Map_Entry< EXT_ID, INT_ID >::next_

Pointer to the next item in the bucket of overflow nodes.

Definition at line 68 of file Hash_Map_Manager_T.h.

Referenced by ACE_Hash_Map_Manager_Ex< EXT_ID, INT_ID, HASH_KEY, COMPARE_KEYS, ACE_LOCK >::shared_find(), and ACE_Hash_Map_Manager_Ex< EXT_ID, INT_ID, HASH_KEY, COMPARE_KEYS, ACE_LOCK >::unbind_i().

template<class EXT_ID, class INT_ID>
ACE_Hash_Map_Entry<EXT_ID, INT_ID>* ACE_Hash_Map_Entry< EXT_ID, INT_ID >::prev_

Pointer to the prev item in the bucket of overflow nodes.

Definition at line 71 of file Hash_Map_Manager_T.h.

Referenced by ACE_Hash_Map_Manager_Ex< EXT_ID, INT_ID, HASH_KEY, COMPARE_KEYS, ACE_LOCK >::unbind_i().


The documentation for this class was generated from the following files:
Generated on Tue Feb 2 17:35:10 2010 for ACE by  doxygen 1.4.7