#include <node.h>
StringT std::string
Definition at line 56 of file node.h.
Public Types | |
| typedef StringT | string_T |
| Defines type of encapsulated string. | |
| typedef StringT::value_type | char_T |
| Defines type of encapsulated character. | |
| typedef StringT::value_type | value_type |
| Defines node value type. | |
Public Member Functions | |
| node (input< StringT > &inp_, int identity_) | |
| Constructs node from @ cttl::input object and specific identity. | |
| node (node< StringT > const &other_, int identity_) | |
| Constructs node from another node of the same exact type, but different identity. | |
| node (node< StringT > const &other_) | |
| Copy constructor manufactures exact copy of the object. | |
| node< StringT > & | operator= (node< StringT > const &other_) |
| Assignment matches behavior of the copy constructor. | |
| node< StringT > & | operator= (size_t offset_) |
Assignment of types convertible to size_t changes offset of the node. | |
| node< StringT > & | operator+= (StringT const &str_) |
| Addition-assignment of string matches behavior of cttl::node::insert_go(). | |
| node< StringT > & | operator-= (StringT const &str_) |
| Subtraction-assignment of string matches behavior of cttl::node::insert_stay(). | |
| input< StringT > & | parent () |
Returns mutable reference to the parent cttl::input object. | |
| input< StringT > const & | parent () const |
Returns constant reference to the parent cttl::input object. | |
| int | identity () const |
| Returns identity of the node. | |
| int | identity (int identity_) |
| Changes identity of the node. | |
| template<typename PredicateT> | |
| bool | find_class (PredicateT(*iswhat_)(PredicateT)) |
| Moves node position forward to the lower boundary of the specified character class. | |
| template<typename PredicateT> | |
| bool | rfind_class (PredicateT(*iswhat_)(PredicateT)) |
| Moves node position backward to the upper boundary of the specified character class. | |
| size_t | offset () const |
| Returns node offset. | |
| size_t | offset (size_t offset_) |
| Changes offset of the node. | |
| size_t | line () const |
| Returns line number corresponding to the current offset of the node. | |
| size_t | go_line (size_t line_) |
| Moves node position to the beginning of the specified line. | |
| size_t | push () |
| Pushes node offset to the container's general purpose stack of offsets. | |
| size_t | pop () |
| Pops node offset from the container's general purpose stack of offsets. | |
| void | pop_discard () |
| Pops offset from the container's general purpose stack of offsets and throws it away. | |
| size_t | go_bof () |
| Moves node position to the beginning of the input text. | |
| size_t | go_eof () |
| Moves node position to the ending of the input text. | |
| size_t | go_line_next () |
| Moves node position to the beginning of the next line. | |
| size_t | go_line_previous () |
| Moves node position to the beginning of the previous line. | |
| size_t | go_line_home () |
| Moves node position to the beginning of the current line. | |
| size_t | go_line_home (size_t line_) |
| Moves node position to the beginning of the specified line. | |
| size_t | go_line_end () |
| Moves node position to the ending of the current line. | |
| size_t | go_line_end (size_t line_) |
| Moves node position to the ending of the specified line. | |
| size_t | insert_go (StringT const &str_) |
| Inserts text at the current position of the node. | |
| void | insert_stay (StringT const &str_) |
| Inserts text at the current position of the node. | |
| char_T const & | operator[] (int subscript_) const |
| Returns character from the input character sequence at the offset relative to the current position of the node. | |
| char_T & | operator[] (int subscript_) |
| Returns reference to the character in the input character sequence at the offset relative to the current position of the node. | |
| template<typename ExprT> | |
| xtl_wrap< xtl_node< node< StringT >, xtl_wrap< ExprT > > > | operator() (xtl_wrap< ExprT > const &expr_) |
| Implements grammar expression adaptor behavior of the node. | |
Protected Attributes | |
| int | m_identity |
Identifies node inside offset identity vector of the parent cttl::input class. | |
| input< StringT > & | m_input |
Stores reference to the parent cttl::input object. | |
|
|
Moves node position forward to the lower boundary of the specified character class.
Definition at line 183 of file node.h. References input::container(), and input::text(). |
|
|
Moves node position to the beginning of the input text.
Definition at line 299 of file node.h. References input::container(). |
|
|
Moves node position to the ending of the input text.
Definition at line 310 of file node.h. References input::container(). |
|
|
Moves node position to the beginning of the specified line.
Definition at line 253 of file node.h. References input::container(). |
|
|
Moves node position to the ending of the specified line.
Definition at line 386 of file node.h. References input::container(). |
|
|
Moves node position to the ending of the current line.
Definition at line 372 of file node.h. References input::container(). |
|
|
Moves node position to the beginning of the specified line.
Definition at line 360 of file node.h. References input::container(). |
|
|
Moves node position to the beginning of the current line.
Definition at line 346 of file node.h. References input::container(). |
|
|
Moves node position to the beginning of the next line.
Definition at line 321 of file node.h. References input::container(). |
|
|
Moves node position to the beginning of the previous line.
|
|
|
Inserts text at the current position of the node.
Definition at line 406 of file node.h. Referenced by node_insert_go::operator()(). |
|
|
Inserts text at the current position of the node.
Definition at line 423 of file node.h. Referenced by node_insert_stay::operator()(). |
|
|
Changes offset of the node.
Definition at line 236 of file node.h. References input::container(). |
|
|
Implements grammar expression adaptor behavior of the node.
|
|
|
Assignment matches behavior of the copy constructor. Only identity of another node is assigned. Definition at line 111 of file node.h. References node::m_identity. |
|
|
Returns reference to the character in the input character sequence at the offset relative to the current position of the node.
Definition at line 447 of file node.h. References input::container(), and input::text(). |
|
|
Returns character from the input character sequence at the offset relative to the current position of the node.
Definition at line 435 of file node.h. References input::container(), and input::text(). |
|
|
Pushes node offset to the container's general purpose stack of offsets.
Definition at line 269 of file node.h. References input::container(). Referenced by const_edge::push(). |
|
|
Moves node position backward to the upper boundary of the specified character class.
Definition at line 208 of file node.h. References input::container(), and input::text(). |
1.3.9.1