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

const_edge.h File Reference


Detailed Description

Defines cttl::const_edge, CTTL library read-only substring class.

See also:

Definition in file const_edge.h.

#include "node.h"
#include "xtl_edge_trait.h"

Include dependency graph for const_edge.h:

Include dependency graph

This graph shows which files directly or indirectly include this file:

Included by dependency graph

Go to the source code of this file.

Namespaces

namespace  cttl

Classes

struct  policy_default
 Provides default implementation for CTTL white space policy. More...
class  const_edge
 Implements concept of a logical immutable substring inside user input text. More...

Functions

template<typename StringT>
const_edge< policy_default,
StringT > 
operator- (node< StringT > &one_, node< StringT > &another_)
 Constructs cttl::const_edge object from pair of cttl::node objects.
template<typename StringT>
const_edge< policy_default,
StringT > 
operator+ (node< StringT > &one_, node< StringT > &another_)
 Constructs cttl::const_edge object from pair of cttl::node objects.
template<typename PolicyT, typename StringT>
const_edge< PolicyT, StringT > new_edge (const_edge< PolicyT, StringT > &other_)
 Constructs new cttl::const_edge object from another edge.
template<typename StringT>
const_edge< policy_default,
StringT > 
new_edge (input< StringT > &inp_)
 Constructs new edge object pointing to the entire parseable universe.
template<typename StringT>
const_edge< policy_default,
StringT > 
new_edge (input< StringT > &inp_, size_t lhs_offset_, size_t rhs_offset_)
 Constructs new edge object pointing to the part of the cttl::input specified by the user.
template<typename PolicyT, typename StringT>
bool operator< (const_edge< PolicyT, StringT > const &one_, const_edge< PolicyT, StringT > const &another_)
 Compares two edges by comparing the underlying text.
template<typename PolicyT, typename StringT>
bool operator> (const_edge< PolicyT, StringT > const &one_, const_edge< PolicyT, StringT > const &another_)
 Compares two edges by comparing the underlying text.
template<typename PolicyT, typename StringT>
bool operator>= (const_edge< PolicyT, StringT > const &one_, const_edge< PolicyT, StringT > const &another_)
 Compares two edges by comparing the underlying text.
template<typename PolicyT, typename StringT>
bool operator<= (const_edge< PolicyT, StringT > const &one_, const_edge< PolicyT, StringT > const &another_)
 Compares two edges by comparing the underlying text.
template<typename PolicyT, typename StringT>
bool operator== (const_edge< PolicyT, StringT > const &one_, const_edge< PolicyT, StringT > const &another_)
 Compares two edges by comparing the underlying text.
template<typename PolicyT, typename StringT>
bool operator!= (const_edge< PolicyT, StringT > const &one_, const_edge< PolicyT, StringT > const &another_)
 Compares two edges by comparing the underlying text.


Function Documentation

const_edge< policy_default, StringT > new_edge input< StringT > &  inp_,
size_t  lhs_offset_,
size_t  rhs_offset_
[inline]
 

Constructs new edge object pointing to the part of the cttl::input specified by the user.

StringT
Template parameter specifying type of the encapsulated string.
Parameters:
inp_ Mutable reference to cttl::input object
lhs_offset_ Specifies absolute offset of the upper boundary of the edge to be constructed.
rhs_offset_ Specifies absolute offset of the lower boundary of the edge to be constructed.
See also:

Definition at line 685 of file const_edge.h.

References input::container().

const_edge< policy_default, StringT > new_edge input< StringT > &  inp_  )  [inline]
 

Constructs new edge object pointing to the entire parseable universe.

StringT
Template parameter specifying type of the encapsulated string.
Parameters:
inp_ Mutable reference to cttl::input object
See also:

Definition at line 658 of file const_edge.h.

References input::container(), and input::length().

const_edge< PolicyT, StringT > new_edge const_edge< PolicyT, StringT > &  other_  )  [inline]
 

Constructs new cttl::const_edge object from another edge.

PolicyT
Template parameter specifying white space policy.
StringT
Template parameter specifying type of the encapsulated string.
See also:

Definition at line 637 of file const_edge.h.

References const_edge::first, const_edge::parent(), and const_edge::second.

bool operator!= const_edge< PolicyT, StringT > const &  one_,
const_edge< PolicyT, StringT > const &  another_
 

Compares two edges by comparing the underlying text.

Parameters:
one_ instance of left hand side edge.
another_ instance of right hand side edge.
See also:

Definition at line 792 of file const_edge.h.

References const_edge::text().

bool operator< const_edge< PolicyT, StringT > const &  one_,
const_edge< PolicyT, StringT > const &  another_
 

Compares two edges by comparing the underlying text.

Parameters:
one_ instance of left hand side edge.
another_ instance of right hand side edge.
See also:

Definition at line 707 of file const_edge.h.

References input::text().

bool operator<= const_edge< PolicyT, StringT > const &  one_,
const_edge< PolicyT, StringT > const &  another_
 

Compares two edges by comparing the underlying text.

Parameters:
one_ instance of left hand side edge.
another_ instance of right hand side edge.
See also:

Definition at line 758 of file const_edge.h.

References const_edge::text().

bool operator== const_edge< PolicyT, StringT > const &  one_,
const_edge< PolicyT, StringT > const &  another_
 

Compares two edges by comparing the underlying text.

Parameters:
one_ instance of left hand side edge.
another_ instance of right hand side edge.
See also:

Definition at line 775 of file const_edge.h.

References const_edge::text().

bool operator> const_edge< PolicyT, StringT > const &  one_,
const_edge< PolicyT, StringT > const &  another_
 

Compares two edges by comparing the underlying text.

Parameters:
one_ instance of left hand side edge.
another_ instance of right hand side edge.
See also:

Definition at line 724 of file const_edge.h.

References const_edge::text().

bool operator>= const_edge< PolicyT, StringT > const &  one_,
const_edge< PolicyT, StringT > const &  another_
 

Compares two edges by comparing the underlying text.

Parameters:
one_ instance of left hand side edge.
another_ instance of right hand side edge.
See also:

Definition at line 741 of file const_edge.h.

References const_edge::text().


Generated on Thu Nov 2 17:44:11 2006 for Common Text Transformation Library by  doxygen 1.3.9.1