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

xtl_edge_offset_manager Struct Template Reference

#include <xtl_edge_trait.h>

List of all members.


Detailed Description

template<typename EdgeT>
struct cttl_impl::xtl_edge_offset_manager< EdgeT >

Models behavior of a repository for logical positions of two nodes representing edge boundaries, const_edge::first and const_edge::second.

EdgeT
Template parameter specifying CTTL substring type, either cttl::const_edge, or cttl::edge template class.

Definition at line 174 of file xtl_edge_trait.h.

Public Member Functions

 xtl_edge_offset_manager (EdgeT &edge_)
 Constructs new objects and initializes storage managers corresponding to the encapsulated offset boundaries.
void save (EdgeT &edge_)
 Updates stored offsets.
void swap (EdgeT &edge_)
 Swaps stored offsets with the offsets of another edge.
void restore (EdgeT &edge_)
 Restores stored offsets.

Public Attributes

EdgeT::offset_manager_T first
 Stores logical position of the upper edge boundary, const_edge::first.
EdgeT::offset_manager_T second
 Stores logical position of the lower edge boundary, const_edge::second.


Constructor & Destructor Documentation

xtl_edge_offset_manager EdgeT &  edge_  )  [inline]
 

Constructs new objects and initializes storage managers corresponding to the encapsulated offset boundaries.

Parameters:
edge_ Reference to mutable CTTL substring, either cttl::const_edge or cttl::edge.

Definition at line 197 of file xtl_edge_trait.h.


Member Function Documentation

void restore EdgeT &  edge_  )  [inline]
 

Restores stored offsets.

Parameters:
edge_ Reference to mutable CTTL substring, either cttl::const_edge or cttl::edge.

Definition at line 245 of file xtl_edge_trait.h.

Referenced by xtl_opbinand::bang_find(), xtl_opbinminus::bang_find(), xtl_opbin2pipe::bang_find(), xtl_opbinand::find(), xtl_opbinminus::find(), xtl_opbin2pipe::find(), xtl_opbinand::match(), xtl_opbinminus::match(), xtl_opbin2pipe::match(), xtl_quote_bool::match_pair(), xtl_quote_generic::match_pair(), and cttl_impl::xtl_match_quote().

void save EdgeT &  edge_  )  [inline]
 

Updates stored offsets.

Parameters:
edge_ Reference to mutable CTTL substring, either cttl::const_edge or cttl::edge.

Definition at line 212 of file xtl_edge_trait.h.

Referenced by xtl_opbinand::bang_find(), xtl_opbinminus::bang_find(), xtl_opbinand::find(), xtl_opbinminus::find(), xtl_opbinand::match(), and xtl_opbinminus::match().

void swap EdgeT &  edge_  )  [inline]
 

Swaps stored offsets with the offsets of another edge.

Parameters:
edge_ Reference to mutable CTTL substring, either cttl::const_edge or cttl::edge.

Definition at line 226 of file xtl_edge_trait.h.

Referenced by xtl_opbin2pipe::bang_find(), xtl_opbin2pipe::find(), and xtl_opbin2pipe::match().


The documentation for this struct was generated from the following file:
Generated on Thu Nov 2 17:45:26 2006 for Common Text Transformation Library by  doxygen 1.3.9.1