ModErn Text Analysis
META Enumerates Textual Applications
Public Types | Public Member Functions | List of all members
meta::parser::visitor< T > Class Template Referenceabstract

Abstract base class for visitors over parse trees that are allowed to modify the underlying tree. More...

#include <visitor.h>

Public Types

using result_type = T
 The result of running the visitor over the tree.
 

Public Member Functions

virtual result_type operator() (leaf_node &)=0
 
virtual result_type operator() (internal_node &)=0
 

Detailed Description

template<class T>
class meta::parser::visitor< T >

Abstract base class for visitors over parse trees that are allowed to modify the underlying tree.

Member Function Documentation

template<class T>
virtual result_type meta::parser::visitor< T >::operator() ( leaf_node )
pure virtual
Returns
the result of running the visitor on the supplied leaf node

Implemented in meta::parser::head_finder.

template<class T>
virtual result_type meta::parser::visitor< T >::operator() ( internal_node )
pure virtual
Returns
the result of running the visitor on the supplied internal node

Implemented in meta::parser::head_finder.


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