#include <Constraint_Nodes.h>
Inheritance diagram for TAO_Constraint:
Public Methods | |
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. | |
virtual | ~TAO_Constraint (void) |
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.
|
|
|
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_Noop_Constraint, TAO_Binary_Constraint, TAO_Unary_Constraint, TAO_Property_Constraint, and TAO_Literal_Constraint. |
|
Return the expression type represented by this node.
Implemented in TAO_Noop_Constraint, TAO_Binary_Constraint, TAO_Unary_Constraint, TAO_Property_Constraint, and TAO_Literal_Constraint. |