cttl_impl::xtl_mutable_offset_guard< StringT > Class Template 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_mutable_offset_guard
< StringT > & 
operator= (xtl_mutable_offset_guard< StringT > const &other_)
 Overloaded assignment operator.
xtl_mutable_offset_guard
< StringT > & 
operator= (size_t offset_)
 Assigns new position preserved by the guard.
 xtl_mutable_offset_guard (cttl::node< StringT > &node_, size_t offset_)
 Constructs guard object and specifies its initial position.
 xtl_mutable_offset_guard (cttl::node< StringT > &node_)
 Constructs offset guard from existing cttl::node.


Detailed Description

template<typename StringT>
class cttl_impl::xtl_mutable_offset_guard< StringT >

Models behavior of size_t.

The class delegates actual storage to the private copy of cttl::node.

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

Definition at line 113 of file xtl_edge_trait.h.


Constructor & Destructor Documentation

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

Constructs offset guard from existing cttl::node.

Definition at line 123 of file xtl_edge_trait.h.

00124             :
00125         m_node( node_ )
00126         {
00127         }

template<typename StringT>
cttl_impl::xtl_mutable_offset_guard< StringT >::xtl_mutable_offset_guard ( cttl::node< StringT > &  node_,
size_t  offset_ 
)

Constructs guard object and specifies its initial position.

Definition at line 132 of file xtl_edge_trait.h.

00133             :
00134         m_node( node_, offset_ )
00135         {
00136         }


Member Function Documentation

template<typename StringT>
cttl_impl::xtl_mutable_offset_guard< StringT >::operator size_t (  )  const

Returns position preserved by the guard.

Definition at line 153 of file xtl_edge_trait.h.

00154         {
00155             return m_node.offset();
00156         }

template<typename StringT>
xtl_mutable_offset_guard< StringT >& cttl_impl::xtl_mutable_offset_guard< StringT >::operator= ( xtl_mutable_offset_guard< StringT > const &  other_  ) 

Overloaded assignment operator.

Definition at line 146 of file xtl_edge_trait.h.

00147         {
00148             m_node.offset( other_.m_node.offset() );
00149             return *this;
00150         }

template<typename StringT>
xtl_mutable_offset_guard< StringT >& cttl_impl::xtl_mutable_offset_guard< StringT >::operator= ( size_t  offset_  ) 

Assigns new position preserved by the guard.

Definition at line 139 of file xtl_edge_trait.h.

00140         {
00141             m_node.offset( offset_ );
00142             return *this;
00143         }


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

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