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

xtl_predicate Class Template Reference

#include <xtl_primary.h>

List of all members.


Detailed Description

template<typename Static_predicateT>
class cttl_impl::xtl_predicate< Static_predicateT >

Implements behavior of CTTL function adaptor named rule().

Static_predicateT
Template parameter specifying type which is copy-constructible, and also, if UniverseT is a typename that represents cttl::const_edge or cttl::edge, then Static_predicateT can be invoked as
        size_t operator()( UniverseT& );

Definition at line 3556 of file xtl_primary.h.

Public Member Functions

 xtl_predicate (Static_predicateT const &predicate_)
 Constructs and initializes the object.
template<typename UniverseT>
size_t match (UniverseT &edge_)
 Implements grammar evaluation method for rule() function adaptor match algorithm.
template<typename UniverseT>
size_t find (UniverseT &edge_)
 Implements grammar evaluation method for rule() function adaptor search algorithm.
template<typename UniverseT>
size_t bang_find (UniverseT &edge_)
 Implements grammar evaluation method for rule() function adaptor repeatable search algorithm.


Member Function Documentation

size_t bang_find UniverseT &  edge_  )  [inline]
 

Implements grammar evaluation method for rule() function adaptor repeatable search algorithm.

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 of the encapsulated rule.

Definition at line 3634 of file xtl_primary.h.

References cttl_impl::xtl_flag_runtime_bang_find.

size_t find UniverseT &  edge_  )  [inline]
 

Implements grammar evaluation method for rule() function adaptor search algorithm.

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 of the encapsulated rule.

Definition at line 3610 of file xtl_primary.h.

References cttl_impl::xtl_flag_runtime_find.

size_t match UniverseT &  edge_  )  [inline]
 

Implements grammar evaluation method for rule() function adaptor match algorithm.

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 of the encapsulated rule.

Definition at line 3587 of file xtl_primary.h.


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