casa
$Rev:20696$
|
Class to visit the nodes in the raw TaQL parse tree. More...
#include <TaQLNodeVisitor.h>
Class to visit the nodes in the raw TaQL parse tree.
Internal
TaQLNodeVisitor is the abstract base class for classes that want to visit a TaQLNode tree, i.e. traverse the tree. Each visit results in a TaQLNodeResult object which acts as the basis for the actual result object.
A specialization of TaQLNodeVisitor (e.g. class TaQLNodeHandler needs to implement the various visitXXNode functions. A visit function will process a node which usually means visiting its children, etc..
The visitor design pattern separates the tree from the way it is processed. In this way any handler can be created. For instance, a query optimizer could be a future other handler.
Definition at line 72 of file TaQLNodeVisitor.h.
virtual casa::TaQLNodeVisitor::~TaQLNodeVisitor | ( | ) | [virtual] |
virtual TaQLNodeResult casa::TaQLNodeVisitor::visitBinaryNode | ( | const TaQLBinaryNodeRep & | node | ) | [pure virtual] |
Implemented in casa::TaQLNodeHandler.
virtual TaQLNodeResult casa::TaQLNodeVisitor::visitCalcNode | ( | const TaQLCalcNodeRep & | node | ) | [pure virtual] |
Implemented in casa::TaQLNodeHandler.
virtual TaQLNodeResult casa::TaQLNodeVisitor::visitColNode | ( | const TaQLColNodeRep & | node | ) | [pure virtual] |
Implemented in casa::TaQLNodeHandler.
virtual TaQLNodeResult casa::TaQLNodeVisitor::visitColSpecNode | ( | const TaQLColSpecNodeRep & | node | ) | [pure virtual] |
Implemented in casa::TaQLNodeHandler.
virtual TaQLNodeResult casa::TaQLNodeVisitor::visitColumnsNode | ( | const TaQLColumnsNodeRep & | node | ) | [pure virtual] |
Implemented in casa::TaQLNodeHandler.
virtual TaQLNodeResult casa::TaQLNodeVisitor::visitConstNode | ( | const TaQLConstNodeRep & | node | ) | [pure virtual] |
Define the functions to visit each node type.
Implemented in casa::TaQLNodeHandler.
virtual TaQLNodeResult casa::TaQLNodeVisitor::visitCountNode | ( | const TaQLCountNodeRep & | node | ) | [pure virtual] |
Implemented in casa::TaQLNodeHandler.
virtual TaQLNodeResult casa::TaQLNodeVisitor::visitCreTabNode | ( | const TaQLCreTabNodeRep & | node | ) | [pure virtual] |
Implemented in casa::TaQLNodeHandler.
virtual TaQLNodeResult casa::TaQLNodeVisitor::visitDeleteNode | ( | const TaQLDeleteNodeRep & | node | ) | [pure virtual] |
Implemented in casa::TaQLNodeHandler.
virtual TaQLNodeResult casa::TaQLNodeVisitor::visitFuncNode | ( | const TaQLFuncNodeRep & | node | ) | [pure virtual] |
Implemented in casa::TaQLNodeHandler.
virtual TaQLNodeResult casa::TaQLNodeVisitor::visitGivingNode | ( | const TaQLGivingNodeRep & | node | ) | [pure virtual] |
Implemented in casa::TaQLNodeHandler.
virtual TaQLNodeResult casa::TaQLNodeVisitor::visitIndexNode | ( | const TaQLIndexNodeRep & | node | ) | [pure virtual] |
Implemented in casa::TaQLNodeHandler.
virtual TaQLNodeResult casa::TaQLNodeVisitor::visitInsertNode | ( | const TaQLInsertNodeRep & | node | ) | [pure virtual] |
Implemented in casa::TaQLNodeHandler.
virtual TaQLNodeResult casa::TaQLNodeVisitor::visitJoinNode | ( | const TaQLJoinNodeRep & | node | ) | [pure virtual] |
Implemented in casa::TaQLNodeHandler.
virtual TaQLNodeResult casa::TaQLNodeVisitor::visitKeyColNode | ( | const TaQLKeyColNodeRep & | node | ) | [pure virtual] |
Implemented in casa::TaQLNodeHandler.
virtual TaQLNodeResult casa::TaQLNodeVisitor::visitLimitOffNode | ( | const TaQLLimitOffNodeRep & | node | ) | [pure virtual] |
Implemented in casa::TaQLNodeHandler.
virtual TaQLNodeResult casa::TaQLNodeVisitor::visitMultiNode | ( | const TaQLMultiNodeRep & | node | ) | [pure virtual] |
Implemented in casa::TaQLNodeHandler.
TaQLNodeResult casa::TaQLNodeVisitor::visitNode | ( | const TaQLNode & | node | ) | [inline, protected] |
A convenience function to visit the given node using this visitor.
Definition at line 111 of file TaQLNodeVisitor.h.
References casa::TaQLNode::visit().
virtual TaQLNodeResult casa::TaQLNodeVisitor::visitRangeNode | ( | const TaQLRangeNodeRep & | node | ) | [pure virtual] |
Implemented in casa::TaQLNodeHandler.
virtual TaQLNodeResult casa::TaQLNodeVisitor::visitRecFldNode | ( | const TaQLRecFldNodeRep & | node | ) | [pure virtual] |
Implemented in casa::TaQLNodeHandler.
virtual TaQLNodeResult casa::TaQLNodeVisitor::visitRegexNode | ( | const TaQLRegexNodeRep & | node | ) | [pure virtual] |
Implemented in casa::TaQLNodeHandler.
virtual TaQLNodeResult casa::TaQLNodeVisitor::visitSelectNode | ( | const TaQLSelectNodeRep & | node | ) | [pure virtual] |
Implemented in casa::TaQLNodeHandler.
virtual TaQLNodeResult casa::TaQLNodeVisitor::visitSortKeyNode | ( | const TaQLSortKeyNodeRep & | node | ) | [pure virtual] |
Implemented in casa::TaQLNodeHandler.
virtual TaQLNodeResult casa::TaQLNodeVisitor::visitSortNode | ( | const TaQLSortNodeRep & | node | ) | [pure virtual] |
Implemented in casa::TaQLNodeHandler.
virtual TaQLNodeResult casa::TaQLNodeVisitor::visitTableNode | ( | const TaQLTableNodeRep & | node | ) | [pure virtual] |
Implemented in casa::TaQLNodeHandler.
virtual TaQLNodeResult casa::TaQLNodeVisitor::visitUnaryNode | ( | const TaQLUnaryNodeRep & | node | ) | [pure virtual] |
Implemented in casa::TaQLNodeHandler.
virtual TaQLNodeResult casa::TaQLNodeVisitor::visitUnitNode | ( | const TaQLUnitNodeRep & | node | ) | [pure virtual] |
Implemented in casa::TaQLNodeHandler.
virtual TaQLNodeResult casa::TaQLNodeVisitor::visitUpdateNode | ( | const TaQLUpdateNodeRep & | node | ) | [pure virtual] |
Implemented in casa::TaQLNodeHandler.
virtual TaQLNodeResult casa::TaQLNodeVisitor::visitUpdExprNode | ( | const TaQLUpdExprNodeRep & | node | ) | [pure virtual] |
Implemented in casa::TaQLNodeHandler.