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.
const EXT_ID & key (void) const
 Read-only key accessor.
INT_ID & item (void)
 Item accessor.
const INT_ID & item (void) const
 Read-only 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 
) [inline]

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_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 
) [inline]

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   )  [inline]

Destructor.

Definition at line 51 of file Hash_Map_Manager_T.cpp.

00052 {
00053 }


Member Function Documentation

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

Dump the state of an object.

Definition at line 80 of file Hash_Map_Manager_T.cpp.

00081 {
00082 #if defined (ACE_HAS_DUMP)
00083   ACE_DEBUG ((LM_DEBUG, ACE_BEGIN_DUMP, this));
00084   ACE_DEBUG ((LM_DEBUG,  ACE_TEXT ("next_ = %d"), this->next_));
00085   ACE_DEBUG ((LM_DEBUG,  ACE_TEXT ("prev_ = %d"), this->prev_));
00086   ACE_DEBUG ((LM_DEBUG, ACE_END_DUMP));
00087 #endif /* ACE_HAS_DUMP */
00088 }

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

Read-only item accessor.

template<class EXT_ID , class INT_ID >
const INT_ID & ACE_Hash_Map_Entry< EXT_ID, INT_ID >::item ( void   )  [inline]

Item accessor.

Definition at line 68 of file Hash_Map_Manager_T.cpp.

00069 {
00070   return int_id_;
00071 }

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

Read-only key accessor.

template<class EXT_ID , class INT_ID >
const EXT_ID & ACE_Hash_Map_Entry< EXT_ID, INT_ID >::key ( void   )  [inline]

Key accessor.

Definition at line 56 of file Hash_Map_Manager_T.cpp.

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 67 of file Hash_Map_Manager_T.h.

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 71 of file Hash_Map_Manager_T.h.

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 74 of file Hash_Map_Manager_T.h.

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 77 of file Hash_Map_Manager_T.h.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on Sat Nov 21 23:16:40 2009 for ACE by  doxygen 1.6.1