cttl_impl::xst_edge_translator< PolicyT, StringT > Class Template Reference

Function object to translate substring to a null-terminated array of characters. More...

#include <xst_edge_translator.h>

List of all members.

Public Types

typedef StringT::value_type char_T
 Defines type of input characters.

Public Member Functions

template<typename InputValueT >
char_T const * operator() (InputValueT const &)
 Translate CTTL substring to null-terminated array of characters.
 xst_edge_translator (xst_edge_translator< PolicyT, StringT > const &other_)
 Copy constructor.
 xst_edge_translator (cttl::const_edge< PolicyT, StringT > const &edge_)
 Constructs and initializes the object from an edge.


Detailed Description

template<typename PolicyT, typename StringT>
class cttl_impl::xst_edge_translator< PolicyT, StringT >

Function object to translate substring to a null-terminated array of characters.

Template Parameters:
PolicyT specifies space policy of the edge.
StringT specifies type of input string.

Definition at line 59 of file xst_edge_translator.h.


Member Typedef Documentation

template<typename PolicyT, typename StringT>
typedef StringT::value_type cttl_impl::xst_edge_translator< PolicyT, StringT >::char_T

Defines type of input characters.

Definition at line 63 of file xst_edge_translator.h.


Constructor & Destructor Documentation

template<typename PolicyT, typename StringT>
cttl_impl::xst_edge_translator< PolicyT, StringT >::xst_edge_translator ( cttl::const_edge< PolicyT, StringT > const &  edge_  ) 

Constructs and initializes the object from an edge.

Definition at line 74 of file xst_edge_translator.h.

00075         :
00076     m_edge( edge_ )
00077     {
00078     }

template<typename PolicyT, typename StringT>
cttl_impl::xst_edge_translator< PolicyT, StringT >::xst_edge_translator ( xst_edge_translator< PolicyT, StringT > const &  other_  ) 

Copy constructor.

Definition at line 81 of file xst_edge_translator.h.

00082         :
00083     m_edge( other_.m_edge )
00084     {
00085     }


Member Function Documentation

template<typename PolicyT, typename StringT>
template<typename InputValueT >
char_T const* cttl_impl::xst_edge_translator< PolicyT, StringT >::operator() ( InputValueT const &   ) 

Translate CTTL substring to null-terminated array of characters.

Template Parameters:
InputValueT specifies source type to translate from.

Definition at line 99 of file xst_edge_translator.h.

00100     {
00101         trace_deposit();
00102         m_value = m_edge.text();
00103         return m_value.c_str();
00104     }


The documentation for this class was generated from the following file:

Generated on Sun Aug 23 13:44:13 2009 for Common Text Transformation Library by  doxygen 1.5.9