TAO_CosTrader
2.1.8
|
TAO_Constraint is the base class of all nodes on the constraint expression tree. More...
#include <Constraint_Nodes.h>
Public Member Functions | |
virtual int | accept (TAO_Constraint_Visitor *visitor)=0 |
virtual TAO_Expression_Type | expr_type (void) const =0 |
Return the expression type represented by this node. More... | |
virtual | ~TAO_Constraint (void) |
TAO_Constraint is the base class of all nodes on the constraint expression tree.
An TAO_Constraint knows what type of operation or entity it represents, and which method on TAO_Constraint_Visitor correlates to its type. When the accept method is invoked, a subclass dispatches the method on an TAO_Constraint_Visitor correlating to its type.
|
inlinevirtual |
|
pure virtual |
Implementing the pattern of double dispatching, each subclass of TAO_Constraint will call back on an InterpreterVisitor the method to handle a node of its ExpressionType.
Implemented in TAO_Literal_Constraint, TAO_Property_Constraint, TAO_Unary_Constraint, TAO_Binary_Constraint, and TAO_Noop_Constraint.
|
pure virtual |
Return the expression type represented by this node.
Implemented in TAO_Literal_Constraint, TAO_Property_Constraint, TAO_Unary_Constraint, TAO_Binary_Constraint, and TAO_Noop_Constraint.