ACE
6.1.0
|
Defines a simple incremental key generator. More...
#include <Map_T.h>
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 | t_ |
Current value. |
Defines a simple incremental key generator.
Generates a new key of type T by incrementing current value. Requirements on T are:
ACE_Incremental_Key_Generator< T >::ACE_Incremental_Key_Generator | ( | void | ) | [inline] |
Constructor.
const T & ACE_Incremental_Key_Generator< T >::current_value | ( | void | ) | const [inline] |
Returns the current value.
int ACE_Incremental_Key_Generator< T >::operator() | ( | T & | t | ) | [inline] |
Functor method: generates a new key.
T ACE_Incremental_Key_Generator< T >::t_ [protected] |
Current value.