#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 78 of file Constraint_Nodes.h.
|
Definition at line 82 of file Constraint_Nodes.h.
00083 : 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 16 of file Constraint_Nodes.cpp. References TAO_FIRST, TAO_RANDOM, TAO_Constraint_Visitor::visit_first(), and TAO_Constraint_Visitor::visit_random().
00017 { 00018 int return_value = -1; 00019 switch (this->type_) 00020 { 00021 case TAO_FIRST: 00022 return_value = visitor->visit_first (this); 00023 break; 00024 case TAO_RANDOM: 00025 return_value = visitor->visit_random (this); 00026 } 00027 00028 return return_value; 00029 } |
|
Return the expression type represented by this node.
Implements TAO_Constraint. Definition at line 87 of file Constraint_Nodes.h. References TAO_Expression_Type.
00088 { return this->type_; } |
|
Definition at line 92 of file Constraint_Nodes.h. |