ACE_Map_Entry< EXT_ID, INT_ID > Class Template Reference

An entry in the Map. More...

#include <Map_Manager.h>

Collaboration diagram for ACE_Map_Entry< EXT_ID, INT_ID >:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 ACE_Map_Entry (void)
 Initialize member variables.

 ~ACE_Map_Entry (void)
void dump (void) const
 Dump the state of an object.

ACE_UINT32 next (void) const
 Get next entry.

void next (ACE_UINT32 n)
 Set next entry.

ACE_UINT32 prev (void) const
 Get prev entry.

void prev (ACE_UINT32 p)
 Set prev entry.


Public Attributes

EXT_ID ext_id_
 Key used to look up an entry.

INT_ID int_id_
 The contents of the entry itself.

 ACE_ALLOC_HOOK_DECLARE
 Declare the dynamic allocation hooks.

ACE_UINT32 next_
 Keeps track of the next entry.

ACE_UINT32 prev_
 Keeps track of the previous entry.


Detailed Description

template<class EXT_ID, class INT_ID>
class ACE_Map_Entry< EXT_ID, INT_ID >

An entry in the Map.

Definition at line 39 of file Map_Manager.h.


Constructor & Destructor Documentation

template<class EXT_ID, class INT_ID>
ACE_BEGIN_VERSIONED_NAMESPACE_DECL ACE_INLINE ACE_Map_Entry< EXT_ID, INT_ID >::ACE_Map_Entry void   ) 
 

Initialize member variables.

Definition at line 11 of file Map_Manager.inl.

00012   : next_ (0),
00013     prev_ (0)
00014 #if defined (ACE_HAS_LAZY_MAP_MANAGER)
00015     , free_ (1)
00016 #endif /* ACE_HAS_LAZY_MAP_MANAGER */
00017 {
00018 }

template<class EXT_ID, class INT_ID>
ACE_INLINE ACE_Map_Entry< EXT_ID, INT_ID >::~ACE_Map_Entry void   ) 
 

We need this destructor to keep some compilers from complaining. It's just a no-op, however.

Definition at line 21 of file Map_Manager.inl.

00022 {
00023   // No-op just to keep some compilers happy...
00024 }


Member Function Documentation

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

Dump the state of an object.

Definition at line 595 of file Map_Manager.cpp.

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

00596 {
00597 #if defined (ACE_HAS_DUMP)
00598   ACE_DEBUG ((LM_DEBUG, ACE_BEGIN_DUMP, this));
00599   ACE_DEBUG ((LM_DEBUG,  ACE_TEXT ("next_ = %d"), this->next_));
00600   ACE_DEBUG ((LM_DEBUG,  ACE_TEXT ("prev_ = %d"), this->prev_));
00601 
00602 #if defined (ACE_HAS_LAZY_MAP_MANAGER)
00603   ACE_DEBUG ((LM_DEBUG,  ACE_TEXT ("free_ = %d"), this->free_));
00604 #endif /* ACE_HAS_LAZY_MAP_MANAGER */
00605 
00606   ACE_DEBUG ((LM_DEBUG, ACE_END_DUMP));
00607 #endif /* ACE_HAS_DUMP */
00608 }

template<class EXT_ID, class INT_ID>
ACE_INLINE void ACE_Map_Entry< EXT_ID, INT_ID >::next ACE_UINT32  n  ) 
 

Set next entry.

Definition at line 33 of file Map_Manager.inl.

00034 {
00035   this->next_ = n;
00036 }

template<class EXT_ID, class INT_ID>
ACE_INLINE ACE_UINT32 ACE_Map_Entry< EXT_ID, INT_ID >::next void   )  const
 

Get next entry.

Definition at line 27 of file Map_Manager.inl.

Referenced by ACE_Map_Manager< EXT_ID, INT_ID, ACE_LOCK >::shared_move(), and ACE_Map_Manager< EXT_ID, INT_ID, ACE_LOCK >::unbind_all().

00028 {
00029   return this->next_;
00030 }

template<class EXT_ID, class INT_ID>
ACE_INLINE void ACE_Map_Entry< EXT_ID, INT_ID >::prev ACE_UINT32  p  ) 
 

Set prev entry.

Definition at line 45 of file Map_Manager.inl.

00046 {
00047   this->prev_ = p;
00048 }

template<class EXT_ID, class INT_ID>
ACE_INLINE ACE_UINT32 ACE_Map_Entry< EXT_ID, INT_ID >::prev void   )  const
 

Get prev entry.

Definition at line 39 of file Map_Manager.inl.

Referenced by ACE_Map_Manager< EXT_ID, INT_ID, ACE_LOCK >::shared_move().

00040 {
00041   return this->prev_;
00042 }


Member Data Documentation

template<class EXT_ID, class INT_ID>
ACE_Map_Entry< EXT_ID, INT_ID >::ACE_ALLOC_HOOK_DECLARE
 

Declare the dynamic allocation hooks.

Definition at line 59 of file Map_Manager.h.

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

Key used to look up an entry.

Definition at line 50 of file Map_Manager.h.

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

The contents of the entry itself.

Definition at line 53 of file Map_Manager.h.

template<class EXT_ID, class INT_ID>
ACE_UINT32 ACE_Map_Entry< EXT_ID, INT_ID >::next_
 

Keeps track of the next entry.

Definition at line 77 of file Map_Manager.h.

template<class EXT_ID, class INT_ID>
ACE_UINT32 ACE_Map_Entry< EXT_ID, INT_ID >::prev_
 

Keeps track of the previous entry.

Definition at line 80 of file Map_Manager.h.


The documentation for this class was generated from the following files:
Generated on Sun Jan 27 12:55:37 2008 for ACE by doxygen 1.3.6