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

node.h File Reference


Detailed Description

Defines cttl::node class.

See also:

Definition in file node.h.

#include "input.h"
#include "xtl_base.h"

Include dependency graph for node.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

class  node
 Keeps track of a logical position inside user input text. More...

Functions

template<typename StringT>
node< StringT > new_node (input< StringT > &inp_, size_t offset_)
 Constructs new cttl::node object from cttl::input object.
template<typename StringT>
node< StringT > new_node (input< StringT > &inp_)
 Constructs new cttl::node object from cttl::input object.
template<typename StringT>
node< StringT > new_node (node< StringT > &other_)
 Constructs new cttl::node object from another node.
template<typename StringT>
bool operator== (node< StringT > const &one_, node< StringT > const &another_)
 Compares two nodes.
template<typename StringT>
bool operator!= (node< StringT > const &one_, node< StringT > const &another_)
 Compares two nodes.
template<typename StringT>
bool operator> (node< StringT > const &one_, node< StringT > const &another_)
 Compares offsets of two nodes.
template<typename StringT>
bool operator< (node< StringT > const &one_, node< StringT > const &another_)
 Compares offsets of two nodes.
template<typename StringT>
bool operator>= (node< StringT > const &one_, node< StringT > const &another_)
 Compares offsets of two nodes.
template<typename StringT>
bool operator<= (node< StringT > const &one_, node< StringT > const &another_)
 Compares offsets of two nodes.
template<typename StringT>
node< StringT > & operator++ (node< StringT > &node_)
 Prefix increment operator increments node offset.
template<typename StringT>
node< StringT > & operator-- (node< StringT > &node_)
 Prefix decrement operator decrements node offset.


Function Documentation

node< StringT > new_node node< StringT > &  other_  )  [inline]
 

Constructs new cttl::node object from another node.

StringT
Template parameter specifying type of the encapsulated string.
See also:

Definition at line 668 of file node.h.

References node::offset(), and node::parent().

node< StringT > new_node input< StringT > &  inp_  )  [inline]
 

Constructs new cttl::node object from cttl::input object.

StringT
Template parameter specifying type of the encapsulated string.
Postcondition:
New node is positioned at the end of the user input text.
See also:

Definition at line 652 of file node.h.

References input::length().

node< StringT > new_node input< StringT > &  inp_,
size_t  offset_
[inline]
 

Constructs new cttl::node object from cttl::input object.

StringT
Template parameter specifying type of the encapsulated string.
Parameters:
inp_ Mutable reference to cttl::input object
offset_ Specifies absolute offset of the node to be constructed.
See also:

Definition at line 633 of file node.h.

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

Compares two nodes.

Nodes are equal if their offsets are the same.

Definition at line 687 of file node.h.

References node::offset().

bool operator== node< StringT > const &  one_,
node< StringT > const &  another_
 

Compares two nodes.

Nodes are equal if their offsets are the same.

Definition at line 680 of file node.h.

References node::offset().


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