Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

ACE_Incremental_Key_Generator Class Template Reference

Defines a simple incremental key generator. More...

#include <Map_T.h>

Collaboration diagram for ACE_Incremental_Key_Generator:

Collaboration graph
List of all members.

Public Methods

 ACE_Incremental_Key_Generator (void)
 Constructor. More...

int operator() (T &t)
 Functor method: generates a new key. More...

const T & current_value (void) const
 Returns the current value. More...

Protected Attributes

 Current value. More...

Detailed Description

template<class T>
class ACE_Incremental_Key_Generator< T >

Defines a simple incremental key generator.

Generates a new key of type T by incrementing current value. Requirements on T are:

Definition at line 54 of file Map_T.h.

Constructor & Destructor Documentation

template<class T>
ACE_INLINE ACE_Incremental_Key_Generator< T >::ACE_Incremental_Key_Generator void   


Definition at line 10 of file Map_T.i.

00011   : t_ (0)
00012 {
00013 }

Member Function Documentation

template<class T>
ACE_INLINE const T & ACE_Incremental_Key_Generator< T >::current_value void    const

Returns the current value.

Definition at line 23 of file Map_T.i.

References t_.

00024 {
00025   return this->t_;
00026 }

template<class T>
ACE_INLINE int ACE_Incremental_Key_Generator< T >::operator() T &    t

Functor method: generates a new key.

Definition at line 16 of file Map_T.i.

References t_.

00017 {
00018   t = ++this->t_;
00019   return 0;
00020 }

Member Data Documentation

template<class T>
T ACE_Incremental_Key_Generator::t_ [protected]

Current value.

Definition at line 70 of file Map_T.h.

Referenced by current_value, and operator().

The documentation for this class was generated from the following files:
Generated on Mon Jun 16 12:48:58 2003 for ACE by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002