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

xtl_op_base_unary Class Template Reference

#include <xtl_op_impl.h>

Inheritance diagram for xtl_op_base_unary:

Inheritance graph
[legend]
List of all members.

Detailed Description

template<typename ExprT>
class cttl_impl::xtl_op_base_unary< ExprT >

Base implementation class for CTTL unary operators.

ExprT
Template parameter specifying type of grammar expression object, determined by the C++ compiler at compile time.

Definition at line 72 of file xtl_op_impl.h.

Public Member Functions

 xtl_op_base_unary (ExprT const &expr_)
 Constructs and initializes the object.

Protected Member Functions

template<typename UniverseT>
size_t kleene_list (UniverseT &edge_, size_t upper_limit_=0)
 Helper function to excercise Kleene list after first match has been found.

Protected Attributes

ExprT m_expr
 Stores grammar expression specified as operand.


Member Function Documentation

size_t kleene_list UniverseT &  edge_,
size_t  upper_limit_ = 0
[inline, protected]
 

Helper function to excercise Kleene list after first match has been found.

Finds second, third, and so on, matches for m_expr

UniverseT
Template parameter specifying type of the parseable universe. Can be either cttl::const_edge or cttl::edge.
Parameters:
edge_ reference to the parseable universe.
upper_limit_ If not zero, suggests the upper limit for a number of matches. The matching stops as soon as this exact number of matches is found.
Returns:
Actual number of items found by the function.
Postcondition:
If function succeeds, the universe, specified by the edge_ parameter, is consumed accordingly to the size of the matched symbols.

Definition at line 112 of file xtl_op_impl.h.


The documentation for this class was generated from the following file:
Generated on Thu Nov 2 17:45:32 2006 for Common Text Transformation Library by  doxygen 1.3.9.1