Public Member Functions | Public Attributes

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_Map_Entry< EXT_ID, INT_ID >::ACE_Map_Entry ( void   )  [inline]

Initialize member variables.

Definition at line 11 of file Map_Manager.inl.

  : next_ (0),
    prev_ (0)
#if defined (ACE_HAS_LAZY_MAP_MANAGER)
    , free_ (1)
#endif /* ACE_HAS_LAZY_MAP_MANAGER */
{
}

template<class EXT_ID , class INT_ID >
ACE_Map_Entry< EXT_ID, INT_ID >::~ACE_Map_Entry ( void   )  [inline]

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.

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


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.

{
#if defined (ACE_HAS_DUMP)
  ACE_DEBUG ((LM_DEBUG, ACE_BEGIN_DUMP, this));
  ACE_DEBUG ((LM_DEBUG,  ACE_TEXT ("next_ = %d"), this->next_));
  ACE_DEBUG ((LM_DEBUG,  ACE_TEXT ("prev_ = %d"), this->prev_));

#if defined (ACE_HAS_LAZY_MAP_MANAGER)
  ACE_DEBUG ((LM_DEBUG,  ACE_TEXT ("free_ = %d"), this->free_));
#endif /* ACE_HAS_LAZY_MAP_MANAGER */

  ACE_DEBUG ((LM_DEBUG, ACE_END_DUMP));
#endif /* ACE_HAS_DUMP */
}

template<class EXT_ID , class INT_ID >
ACE_UINT32 ACE_Map_Entry< EXT_ID, INT_ID >::next ( void   )  const [inline]

Get next entry.

Definition at line 27 of file Map_Manager.inl.

{
  return this->next_;
}

template<class EXT_ID , class INT_ID >
void ACE_Map_Entry< EXT_ID, INT_ID >::next ( ACE_UINT32  n  )  [inline]

Set next entry.

Definition at line 33 of file Map_Manager.inl.

{
  this->next_ = n;
}

template<class EXT_ID , class INT_ID >
ACE_UINT32 ACE_Map_Entry< EXT_ID, INT_ID >::prev ( void   )  const [inline]

Get prev entry.

Definition at line 39 of file Map_Manager.inl.

{
  return this->prev_;
}

template<class EXT_ID , class INT_ID >
void ACE_Map_Entry< EXT_ID, INT_ID >::prev ( ACE_UINT32  p  )  [inline]

Set prev entry.

Definition at line 45 of file Map_Manager.inl.

{
  this->prev_ = p;
}


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:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines