Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

xst_dictionary_translator Class Template Reference

#include <xst_dictionary_translator.h>

List of all members.


Detailed Description

template<typename SequenceT, typename MapT>
class cttl_impl::xst_dictionary_translator< SequenceT, MapT >

Function object to translate value of source type to integral type by storing it inside a dictionary represented by sequence and associative container.

SequenceT
Template parameter specifying sequence type.
MapT
Template parameter specifying unique associative container type.
Remarks:
Value of type MapT::key_type is translated to MapT::data_type by checking unique key value and inserting it into container if key is not present. The data_type is generated automatically as next available sequential number.

Definition at line 63 of file xst_dictionary_translator.h.

Public Types

typedef SequenceT::value_type value_T
 Defines type of value to translate from.

Public Member Functions

template<typename InputValueT>
int operator() (InputValueT const &value_)
 Function call operator to translate the value.
void operator= (xst_dictionary_translator< SequenceT, MapT > const &) const
 Assignment does nothing.
 xst_dictionary_translator (xst_dictionary_translator< SequenceT, MapT > const &other_)
 Copy constructor.
 xst_dictionary_translator (SequenceT &vector_, MapT &map_)
 Constructs and initializes the object.


Member Typedef Documentation

typedef SequenceT::value_type value_T
 

Defines type of value to translate from.

Definition at line 67 of file xst_dictionary_translator.h.


Constructor & Destructor Documentation

xst_dictionary_translator SequenceT &  vector_,
MapT &  map_
[inline]
 

Constructs and initializes the object.

Definition at line 78 of file xst_dictionary_translator.h.

xst_dictionary_translator xst_dictionary_translator< SequenceT, MapT > const &  other_  )  [inline]
 

Copy constructor.

Definition at line 86 of file xst_dictionary_translator.h.


Member Function Documentation

int operator() InputValueT const &  value_  )  [inline]
 

Function call operator to translate the value.

InputValueT
Template parameter specifying source type to translate from.
Parameters:
value_ Reference to source value.

Definition at line 108 of file xst_dictionary_translator.h.

void operator= xst_dictionary_translator< SequenceT, MapT > const &   )  const [inline]
 

Assignment does nothing.

Definition at line 94 of file xst_dictionary_translator.h.


The documentation for this class was generated from the following file:
Generated on Thu Nov 2 17:48:57 2006 for CTTL Lambda Expression by  doxygen 1.3.9.1