Definition in file node.h.
#include "input.h"
#include "xtl_base.h"
Include dependency graph for node.h:
This graph shows which files directly or indirectly include this file:
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. |
|
Constructs new
Definition at line 668 of file node.h. References node::offset(), and node::parent(). |
|
Constructs new
Definition at line 652 of file node.h. References input::length(). |
|
Constructs new
|
|
Compares two nodes. Nodes are equal if their offsets are the same. Definition at line 687 of file node.h. References node::offset(). |
|
Compares two nodes. Nodes are equal if their offsets are the same. Definition at line 680 of file node.h. References node::offset(). |