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

xtl_keyword Class Template Reference

#include <xtl_primary.h>

List of all members.


Detailed Description

template<typename StringT>
class cttl_impl::xtl_keyword< StringT >

Implements behavior of begin(std::set<std::string>&), the string set lexeme inside CTTL grammar expressions.

Remarks:
This lexeme implementation class supports only match() evaluation.

Definition at line 516 of file xtl_primary.h.

Public Member Functions

 xtl_keyword (std::set< StringT > const &keywords_)
 Constructs and initializes the object.
void operator= (xtl_keyword< StringT > const &) const
 Assignment does nothing.
template<typename UniverseT>
size_t match (UniverseT const &edge_) const
 Implements grammar evaluation method for symbol match algorithm, starting at the upper boundary of the parseable universe.


Member Function Documentation

size_t match UniverseT const &  edge_  )  const [inline]
 

Implements grammar evaluation method for symbol match algorithm, starting at the upper boundary of the parseable universe.

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 corresponding to the upper boundary of the matched symbol. Otherwise, it returns UniverseT::string_T::npos, indicating that the evaluation method has failed.

Definition at line 557 of file xtl_primary.h.


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