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

xtl_opunarminus Class Template Reference

#include <xtl_op_impl.h>

Inheritance diagram for xtl_opunarminus:

Inheritance graph
[legend]
Collaboration diagram for xtl_opunarminus:

Collaboration graph
[legend]
List of all members.

Detailed Description

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

Implements behavior of unary logical not operator.

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

Definition at line 616 of file xtl_op_impl.h.

Public Member Functions

 xtl_opunarminus (ExprT const &expr_)
 Constructs and initializes the object.
template<typename UniverseT>
size_t match (UniverseT &edge_)
 Implements grammar evaluation method for logical not match algorithm.
template<typename UniverseT>
size_t find (UniverseT &edge_)
 Implements grammar evaluation method for logical not search algorithm.
template<typename UniverseT>
size_t bang_find (UniverseT &edge_)
 Implements grammar evaluation method for logical not repeatable search algorithm.


Constructor & Destructor Documentation

xtl_opunarminus ExprT const &  expr_  )  [inline]
 

Constructs and initializes the object.

Parameters:
expr_ immutable reference to CTTL grammar expression of the operand.

Definition at line 627 of file xtl_op_impl.h.


Member Function Documentation

size_t bang_find UniverseT &  edge_  )  [inline]
 

Implements grammar evaluation method for logical not repeatable search algorithm.

The result of operand's grammar expression evaluation is reversed.

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.
Returns:
evaluation result: if method succeeds, it returns absolute offset of the upper boundary of the parseable universe before evaluation. Otherwise, it returns UniverseT::string_T::npos, indicating that the evaluation method has failed.

Definition at line 740 of file xtl_op_impl.h.

size_t find UniverseT &  edge_  )  [inline]
 

Implements grammar evaluation method for logical not search algorithm.

The result of operand's grammar expression evaluation is reversed.

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.
Returns:
evaluation result: if method succeeds, it returns absolute offset of the upper boundary of the parseable universe before evaluation. Otherwise, it returns UniverseT::string_T::npos, indicating that the evaluation method has failed.

Definition at line 697 of file xtl_op_impl.h.

size_t match UniverseT &  edge_  )  [inline]
 

Implements grammar evaluation method for logical not match algorithm.

The result of operand's grammar expression evaluation is reversed.

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.
Returns:
evaluation result: if method succeeds, it returns absolute offset of the upper boundary of the parseable universe before evaluation. Otherwise, it returns UniverseT::string_T::npos, indicating that the evaluation method has failed.

Definition at line 655 of file xtl_op_impl.h.


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