cttl_impl::xtl_const_offset_guard Class Reference

Models behavior of size_t. More...

#include <xtl_edge_trait.h>

List of all members.

Public Member Functions

 operator size_t () const
 Returns position preserved by the guard.
xtl_const_offset_guardoperator= (size_t offset_)
 Assigns new position preserved by the guard.
template<typename StringT >
 xtl_const_offset_guard (cttl::node< StringT > const &, size_t offset_)
 Constructs new guard and specifies its initial offset.
template<typename StringT >
 xtl_const_offset_guard (cttl::node< StringT > const &node_)
 Constructs new guard and specifies its initial offset.


Detailed Description

Models behavior of size_t.

Definition at line 54 of file xtl_edge_trait.h.


Constructor & Destructor Documentation

template<typename StringT >
cttl_impl::xtl_const_offset_guard::xtl_const_offset_guard ( cttl::node< StringT > const &  node_  ) 

Constructs new guard and specifies its initial offset.

Template Parameters:
StringT specifies type of the string referenced by cttl::node.

Definition at line 67 of file xtl_edge_trait.h.

00068             :
00069         m_offset( node_.offset() )
00070         {
00071         }

template<typename StringT >
cttl_impl::xtl_const_offset_guard::xtl_const_offset_guard ( cttl::node< StringT > const &  ,
size_t  offset_ 
)

Constructs new guard and specifies its initial offset.

Template Parameters:
StringT specifies type of the string referenced by cttl::node.

Definition at line 81 of file xtl_edge_trait.h.

00082             :
00083         m_offset( offset_ )
00084         {
00085         }


Member Function Documentation

cttl_impl::xtl_const_offset_guard::operator size_t (  )  const

Returns position preserved by the guard.

Definition at line 95 of file xtl_edge_trait.h.

00096         {
00097             return m_offset;
00098         }

xtl_const_offset_guard& cttl_impl::xtl_const_offset_guard::operator= ( size_t  offset_  ) 

Assigns new position preserved by the guard.

Definition at line 88 of file xtl_edge_trait.h.

00089         {
00090             m_offset = offset_;
00091             return *this;
00092         }


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

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