#include <const_edge.h>
Inheritance diagram for const_edge:

PolicyT cttl::policy_default.StringT std::string
Definition at line 210 of file const_edge.h.
Public Types | |
| typedef xtl_const_offset_manager | offset_manager_T |
| Defines offset manager type for this type of edge. | |
| typedef StringT | string_T |
| Defines type of encapsulated string. | |
| typedef StringT::value_type | char_T |
| Defines type of encapsulated character. | |
| typedef StringT | value_type |
| Defines type of encapsulated substring value. | |
| typedef PolicyT | policy_T |
| Defines type of space policy. | |
| typedef PolicyT::strict_policy_T | strict_policy_T |
| Defines type of policy for strict universe. | |
| typedef const_edge< strict_policy_T, StringT > | strict_edge_T |
| Defines type of edge template specialization for strict grammar evaluation. | |
| typedef node< StringT > | node_T |
| Defines type of the encapsulated cttl::node objects. | |
Public Member Functions | |
| PolicyT & | space_policy () |
| Returns mutable reference to the encapsulated instance of the white space policy class. | |
| PolicyT const & | space_policy () const |
| Returns constant reference to the encapsulated instance of the white space policy class. | |
| const_edge (input< StringT > &inp_, int start_, int finish_) | |
Constructs new const_edge from the instance of cttl::input object. | |
| const_edge (node< StringT > &node_first_, node< StringT > &node_second_) | |
Constructs new const_edge from two cttl::node objects. | |
| template<typename Other_policyT> | |
| const_edge (const_edge< Other_policyT, StringT > const &other_) | |
Constructs new const_edge from another edge with different policy type. | |
| const_edge (const_edge< PolicyT, StringT > const &other_) | |
| Constructs exact copy of the existing edge. | |
| template<typename Other_policyT> | |
| const_edge (const_edge< Other_policyT, StringT > const &other_, PolicyT &policy_) | |
Constructs new const_edge from another edge with policy type explicitly provided by the user. | |
| const_edge< PolicyT, StringT > & | operator= (const_edge< PolicyT, StringT > const &other_) |
| Edge assignment. | |
| operator StringT () const | |
| Extracts underlying text from the substring pointed by this edge. | |
| input< StringT > & | parent () |
Returns reference to the parent cttl::input object. | |
| input< StringT > const & | parent () const |
Returns constant reference to the parent cttl::input object. | |
| StringT | text () const |
| Returns the underlying substring of text. | |
| int | length () const |
| Calculates and returns length of the encapsulated substring. | |
| void | push () |
Pushes offsets of const_edge to the stack maintained by the parent cttl::input object. | |
| void | pop () |
Pops offsets of const_edge from the stack maintained by the parent cttl::input object. | |
| void | pop_discard () |
Pops and discards offsets of const_edge from the stack maintained by the parent cttl::input object. | |
| void | region_insert () |
| Inserts region described by the current positions of the edge into white space policy object that supports client-defined regions. | |
| void | region_erase () |
| Erases region(s) described by the current positions of the edge from white space policy object that supports client-defined regions. | |
| StringT | region_difference () |
| Extracts and returns text corresponding to the the current positions of the edge, excluding client regions that intersect with the edge offset range. | |
| void | text_tolower () |
| Converts underlying text to lowercase. | |
| void | text_toupper () |
| Converts underlying text to uppercase. | |
| template<typename ExprT> | |
| xtl_wrap< xtl_edge< const_edge< PolicyT, StringT >, xtl_wrap< ExprT > > > | operator() (xtl_wrap< ExprT > const &expr_) |
| Implements grammar expression adaptor behavior of the edge object. | |
Public Attributes | |
| node< StringT > | first |
Stores first cttl::node of the edge, representing the upper boundary. | |
| node< StringT > | second |
Stores second cttl::node of the edge, representing the lower boundary. | |
Static Protected Member Functions | |
| PolicyT & | default_policy () |
| Creates static instance of the white space policy. | |
Protected Attributes | |
| PolicyT & | m_space_policy |
| Stores reference to the white space policy instance supported by this particular edge. | |
|
|
Defines type of edge template specialization for strict grammar evaluation. For more information, see strict universe overview. Reimplemented in edge. Definition at line 242 of file const_edge.h. |
|
|
Defines type of policy for strict universe. C++ type designated as strict policy type must provide a default constructor. The strict policy is always constructed as a static member of the strict universe using the default constructor, and therefore, the strict policy must have stateless implementation. Reimplemented in edge. Definition at line 236 of file const_edge.h. |
|
||||||||||||||||
|
Constructs new
Definition at line 319 of file const_edge.h. References cttl::first(). |
|
||||||||||||
|
Constructs new
Definition at line 336 of file const_edge.h. References cttl::first(), and node::parent(). |
|
|
Constructs new
Definition at line 361 of file const_edge.h. References cttl::first(). |
|
||||||||||||
|
Constructs new
Definition at line 400 of file const_edge.h. References cttl::first(). |
|
|
Creates static instance of the white space policy.
Definition at line 273 of file const_edge.h. |
|
|
Calculates and returns length of the encapsulated substring.
Definition at line 470 of file const_edge.h. References cttl::first(), and node::identity(). |
|
|
Extracts underlying text from the substring pointed by this edge.
Definition at line 437 of file const_edge.h. |
|
|
Implements grammar expression adaptor behavior of the edge object.
Definition at line 594 of file const_edge.h. |
|
|
Edge assignment.
Reimplemented in edge. Definition at line 419 of file const_edge.h. References const_edge::first, cttl::first(), and const_edge::second. |
|
|
Extracts and returns text corresponding to the the current positions of the edge, excluding client regions that intersect with the edge offset range. For example of the client region-aware policy, see documentation for pre-defined policy specialized for "<A href="parsing.html#policy_flag_follow_region">follow region</A>" flag. Definition at line 553 of file const_edge.h. References cttl::first(), and node::offset(). |
|
|
Erases region(s) described by the current positions of the edge from white space policy object that supports client-defined regions. For example of the client region-aware policy, see documentation for pre-defined policy specialized for "<A href="parsing.html#policy_flag_follow_region">follow region</A>" flag. Definition at line 535 of file const_edge.h. References cttl::first(), and node::offset(). |
|
|
Inserts region described by the current positions of the edge into white space policy object that supports client-defined regions. For example of the client region-aware policy, see documentation for pre-defined policy specialized for "<A href="parsing.html#policy_flag_follow_region">follow region</A>" flag. Definition at line 516 of file const_edge.h. References cttl::first(), and node::offset(). |
1.3.9.1