#include <Constraint_Nodes.h>
Inheritance diagram for TAO_Noop_Constraint:
Public Member Functions | |
TAO_Noop_Constraint (TAO_Expression_Type type) | |
virtual int | accept (TAO_Constraint_Visitor *visitor) |
virtual TAO_Expression_Type | expr_type (void) const |
Return the expression type represented by this node. | |
Private Attributes | |
TAO_Expression_Type | type_ |
Definition at line 76 of file Constraint_Nodes.h.
|
Definition at line 80 of file Constraint_Nodes.h.
00081 : type_ (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. Implements TAO_Constraint. Definition at line 17 of file Constraint_Nodes.cpp. References TAO_FIRST, TAO_RANDOM, TAO_Constraint_Visitor::visit_first(), and TAO_Constraint_Visitor::visit_random().
00018 { 00019 int return_value = -1; 00020 switch (this->type_) 00021 { 00022 case TAO_FIRST: 00023 return_value = visitor->visit_first (this); 00024 break; 00025 case TAO_RANDOM: 00026 return_value = visitor->visit_random (this); 00027 } 00028 00029 return return_value; 00030 } |
|
Return the expression type represented by this node.
Implements TAO_Constraint. Definition at line 85 of file Constraint_Nodes.h. References TAO_Expression_Type.
00086 { return this->type_; } |
|
Definition at line 90 of file Constraint_Nodes.h. |