cttl_impl::xtl_wrap< ExprT > Struct Template Reference

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

#include <xtl_base.h>

List of all members.

Public Member Functions

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

Public Attributes

ExprT m_expr
 Stores encapsulated grammar expression.


Detailed Description

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

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

Template Parameters:
ExprT specifies type of grammar expression. The actual type is determined by the C++ compiler at compile time.

Definition at line 74 of file xtl_base.h.


Constructor & Destructor Documentation

template<typename ExprT>
cttl_impl::xtl_wrap< ExprT >::xtl_wrap (  ) 

Default constructor.

Definition at line 82 of file xtl_base.h.

00083     : m_expr( ExprT() )
00084     {
00085 //      CTTL_TRACE_MESSAGE( CTTL_TRACE_TYPEID( &m_expr ) );
00086     }

template<typename ExprT>
template<typename GenericT >
cttl_impl::xtl_wrap< ExprT >::xtl_wrap ( GenericT const &  x_  ) 

Constructs xtl_wrap object for any type.

Definition at line 90 of file xtl_base.h.

00091     : m_expr( ExprT( x_ ) )
00092     {
00093 //      CTTL_TRACE_MESSAGE( CTTL_TRACE_TYPEID( &m_expr ) );
00094     }

template<typename ExprT>
cttl_impl::xtl_wrap< ExprT >::xtl_wrap ( xtl_wrap< ExprT > const &  other_  ) 

Copy constructor.

Definition at line 97 of file xtl_base.h.

00098     : m_expr( other_.m_expr )
00099     {
00100     }


Member Function Documentation

template<typename ExprT>
template<typename SubstrT >
size_t cttl_impl::xtl_wrap< ExprT >::bang_find ( SubstrT &  edge_  ) 

Delegates grammar evaluation algorithm call to the encapsulated grammar expression.

Template Parameters:
SubstrT specifies type of substring. Can be either cttl::const_edge or cttl::edge.
Parameters:
edge_ reference to parseable substring.
Returns:
result of evaluated grammar expression.

Definition at line 160 of file xtl_base.h.

00161     {
00162         return m_expr.bang_find( edge_ );
00163     }

template<typename ExprT>
template<typename SubstrT >
size_t cttl_impl::xtl_wrap< ExprT >::find ( SubstrT &  edge_  ) 

Delegates grammar evaluation algorithm call to the encapsulated grammar expression.

Template Parameters:
SubstrT specifies type of substring. Can be either cttl::const_edge or cttl::edge.
Parameters:
edge_ reference to parseable substring.
Returns:
result of evaluated grammar expression.

Definition at line 139 of file xtl_base.h.

00140     {
00141         return m_expr.find( edge_ );
00142     }

template<typename ExprT>
template<typename SubstrT >
size_t cttl_impl::xtl_wrap< ExprT >::match ( SubstrT &  edge_  ) 

Delegates grammar evaluation algorithm call to the encapsulated grammar expression.

Template Parameters:
SubstrT specifies type of substring. Can be either cttl::const_edge or cttl::edge.
Parameters:
edge_ reference to parseable substring.
Returns:
result of evaluated grammar expression.

Definition at line 118 of file xtl_base.h.

00119     {
00120         return m_expr.match( edge_ );
00121     }


Member Data Documentation

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

Stores encapsulated grammar expression.

Definition at line 79 of file xtl_base.h.


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

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