Definition at line 58 of file ast.hpp.
void accept |
( |
AcyclicVisitor & |
v | ) |
|
|
virtual |
Reimplemented in OperatorPlusNode, OperatorMinusNode, OperatorMultiplyNode, OperatorDivideNode, NegateNode, FunctionAbsNode, FunctionExpNode, FunctionLogNode, FunctionSqrtNode, FunctionNormalCdfNode, FunctionNormalPdfNode, FunctionMaxNode, FunctionMinNode, FunctionPowNode, FunctionBlackNode, FunctionDcfNode, FunctionDaysNode, FunctionPayNode, FunctionLogPayNode, FunctionNpvNode, FunctionNpvMemNode, HistFixingNode, FunctionDiscountNode, FunctionFwdCompNode, FunctionFwdAvgNode, FunctionAboveProbNode, FunctionBelowProbNode, FunctionDateIndexNode, SortNode, PermuteNode, ConstantNumberNode, VariableNode, SizeOpNode, VarEvaluationNode, AssignmentNode, RequireNode, DeclarationNumberNode, SequenceNode, ConditionEqNode, ConditionNeqNode, ConditionLtNode, ConditionLeqNode, ConditionGtNode, ConditionGeqNode, ConditionNotNode, ConditionAndNode, ConditionOrNode, IfThenElseNode, and LoopNode.
Definition at line 48 of file ast.cpp.
48 {
49 auto v1 = dynamic_cast<Visitor<ASTNode>*>(&v);
50 if (v1 != nullptr)
51 v1->visit(*this);
52 else
53 QL_FAIL("not an ASTNode visitor");
54}