GenericMatcher Struct Template Reference

GenericMatcher manages the dispatch of pattern matching. More...

Inheritance diagram for GenericMatcher:

Inheritance graph
[legend]
List of all members.

Public Types

typedef U return_type

Public Member Functions

match (const T &ast)
 Effectively performs the match.

Protected Member Functions

 GenericMatcher ()

Detailed Description

template<class Self, class T, class U, class F>
struct vcsn::algebra::GenericMatcher< Self, T, U, F >

GenericMatcher manages the dispatch of pattern matching.

GenericMatcher delegates the dispatch of pattern matching to a function-object: if you want to write an algorithm based on pattern matching, inherit from this class.

Definition at line 110 of file krat_exp_pattern.hh.


Member Function Documentation

U match const T &  ast  ) 
 

Effectively performs the match.

Parameters:
ast The object to perform the match on.
See also:
DispatchVisitor::DispatchVisitor

Definition at line 128 of file krat_exp_pattern.hxx.


Generated on Fri Jul 28 12:36:36 2006 for Vaucanson by  doxygen 1.4.6