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

xtl_wrap Struct Template Reference

#include <xtl_base.h>

Inheritance diagram for xtl_wrap:

Inheritance graph
[legend]
List of all members.

Detailed Description

template<typename ExprT>
struct cttl_impl::xtl_wrap< ExprT >

Wraps C++ types generated by compiler for CTTL grammar expressions.

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

Definition at line 65 of file xtl_base.h.

Public Member Functions

 xtl_wrap ()
 Default constructor.
template<typename GenericT>
 xtl_wrap (GenericT const &x_)
 Constructs xtl_wrap object for any type.
 xtl_wrap (xtl_wrap< ExprT > const &other_)
 Copy constructor.
template<typename UniverseT>
size_t match (UniverseT &edge_)
 Delegates grammar evaluation method call to the encapsulated grammar expression.
template<typename UniverseT>
size_t find (UniverseT &edge_)
 Delegates grammar evaluation method call to the encapsulated grammar expression.
template<typename UniverseT>
size_t bang_find (UniverseT &edge_)
 Delegates grammar evaluation method call to the encapsulated grammar expression.
template<typename UniverseT>
size_t runtime_match (UniverseT &edge_)
 Delegates grammar evaluation method call to the encapsulated grammar expression.

Public Attributes

ExprT m_expr
 Stores encapsulated grammar expression.


Member Function Documentation

size_t bang_find UniverseT &  edge_  )  [inline]
 

Delegates grammar evaluation method call to the encapsulated grammar expression.

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.
See also:

Definition at line 160 of file xtl_base.h.

size_t find UniverseT &  edge_  )  [inline]
 

Delegates grammar evaluation method call to the encapsulated grammar expression.

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.
See also:

Definition at line 136 of file xtl_base.h.

size_t match UniverseT &  edge_  )  [inline]
 

Delegates grammar evaluation method call to the encapsulated grammar expression.

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.
See also:

Definition at line 112 of file xtl_base.h.

Referenced by policy_mapped_space::match().

size_t runtime_match UniverseT &  edge_  )  [inline]
 

Delegates grammar evaluation method call to the encapsulated grammar expression.

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.
See also:

Definition at line 184 of file xtl_base.h.


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