KSeExpr 4.0.4.0
KSeExpr::Walker< constnode > Class Template Reference

#include <ExprWalker.h>

Public Types

using T_EXAMINER = Examiner<constnode>
using T_NODE = typename T_EXAMINER::T_NODE

Public Member Functions

 Walker (T_EXAMINER *examiner)
void walk (T_NODE *examinee)
 Preorder walk.

Protected Member Functions

void internalWalk (T_NODE *examinee)
void walkChildren (T_NODE *parent)

Private Attributes

T_EXAMINER_examiner

Detailed Description

template<bool constnode = false>
class KSeExpr::Walker< constnode >

Definition at line 28 of file ExprWalker.h.

Member Typedef Documentation

◆ T_EXAMINER

template<bool constnode = false>
using KSeExpr::Walker< constnode >::T_EXAMINER = Examiner<constnode>

Definition at line 30 of file ExprWalker.h.

◆ T_NODE

template<bool constnode = false>
using KSeExpr::Walker< constnode >::T_NODE = typename T_EXAMINER::T_NODE

Definition at line 31 of file ExprWalker.h.

Constructor & Destructor Documentation

◆ Walker()

template<bool constnode = false>
KSeExpr::Walker< constnode >::Walker ( T_EXAMINER * examiner)
inline

Definition at line 33 of file ExprWalker.h.

Member Function Documentation

◆ internalWalk()

template<bool constnode>
void KSeExpr::Walker< constnode >::internalWalk ( T_NODE * examinee)
protected

If examine returns false, do not recurse

Definition at line 21 of file ExprWalker.cpp.

References _examiner, and walkChildren().

Referenced by walk(), and walkChildren().

◆ walk()

template<bool constnode>
void KSeExpr::Walker< constnode >::walk ( T_NODE * examinee)

Preorder walk.

Definition at line 15 of file ExprWalker.cpp.

References _examiner, and internalWalk().

Referenced by KSeExpr::Expression::debugPrintParseTree().

◆ walkChildren()

template<bool constnode>
void KSeExpr::Walker< constnode >::walkChildren ( T_NODE * parent)
protected

Definition at line 28 of file ExprWalker.cpp.

References internalWalk().

Referenced by internalWalk().

Member Data Documentation

◆ _examiner

template<bool constnode = false>
T_EXAMINER* KSeExpr::Walker< constnode >::_examiner
private

Definition at line 45 of file ExprWalker.h.

Referenced by internalWalk(), and walk().


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