Public Member Functions | Protected Attributes

ACE_Incremental_Key_Generator< T > Class Template Reference

Defines a simple incremental key generator. More...

#include <Map_T.h>

Collaboration diagram for ACE_Incremental_Key_Generator< T >:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 ACE_Incremental_Key_Generator (void)
 Constructor.
int operator() (T &t)
 Functor method: generates a new key.
const T & current_value (void) const
 Returns the current value.

Protected Attributes

t_
 Current value.

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 56 of file Map_T.h.


Constructor & Destructor Documentation

template<class T >
ACE_Incremental_Key_Generator< T >::ACE_Incremental_Key_Generator ( void   )  [inline]

Constructor.

Definition at line 14 of file Map_T.inl.

  : t_ (0)
{
}


Member Function Documentation

template<class T >
const T & ACE_Incremental_Key_Generator< T >::current_value ( void   )  const [inline]

Returns the current value.

Definition at line 27 of file Map_T.inl.

{
  return this->t_;
}

template<class T >
int ACE_Incremental_Key_Generator< T >::operator() ( T &  t  )  [inline]

Functor method: generates a new key.

Definition at line 20 of file Map_T.inl.

{
  t = ++this->t_;
  return 0;
}


Member Data Documentation

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

Current value.

Definition at line 72 of file Map_T.h.


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