cttl_impl::xtl_static_traced_predicate< Static_predicateT > Class Template Reference

Implements behavior of CTTL function adaptor, rule(). More...

#include <xtl_primary.h>

Inheritance diagram for cttl_impl::xtl_static_traced_predicate< Static_predicateT >:

cttl_impl::xtl_traced_predicate_base

List of all members.

Public Member Functions

template<typename SubstrT >
size_t match (SubstrT &edge_)
 Implements grammar evaluation algorithm for rule() function adaptor match algorithm.
 xtl_static_traced_predicate (int line_, char const *rule_name_, Static_predicateT const &predicate_)
 Constructs and initializes the object.


Detailed Description

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

Implements behavior of CTTL function adaptor, rule().

Template Parameters:
Static_predicateT specifies type which is copy-constructible, and, if SubstrT is a typename that represents cttl::const_edge or cttl::edge, Static_predicateT can be invoked as
        size_t operator()( SubstrT& );

Definition at line 4045 of file xtl_primary.h.


Constructor & Destructor Documentation

template<typename Static_predicateT >
cttl_impl::xtl_static_traced_predicate< Static_predicateT >::xtl_static_traced_predicate ( int  line_,
char const *  rule_name_,
Static_predicateT const &  predicate_ 
)

Constructs and initializes the object.

Definition at line 4053 of file xtl_primary.h.

04058         :
04059     xtl_traced_predicate_base( line_, rule_name_ ),
04060         m_predicate( predicate_ )
04061     {
04062     }


Member Function Documentation

template<typename Static_predicateT >
template<typename SubstrT >
size_t cttl_impl::xtl_static_traced_predicate< Static_predicateT >::match ( SubstrT &  edge_  ) 

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

Template Parameters:
SubstrT specifies type of the parseable substring. Can be either cttl::const_edge or cttl::edge.
Parameters:
edge_ reference to the parseable substring.
Returns:
evaluation result of the encapsulated rule.

Definition at line 4081 of file xtl_primary.h.

04082     {
04083         trace_prolog( edge_, "" );
04084         return trace_epilog( edge_, m_predicate( edge_ ) );
04085     }


The documentation for this class was generated from the following file:

Generated on Sun Aug 23 13:43:47 2009 for Common Text Transformation Library by  doxygen 1.5.9