#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.
TAO_Noop_Constraint::TAO_Noop_Constraint | ( | TAO_Expression_Type | type | ) | [inline] |
TAO_BEGIN_VERSIONED_NAMESPACE_DECL int TAO_Noop_Constraint::accept | ( | TAO_Constraint_Visitor * | visitor | ) | [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.
Implements TAO_Constraint.
Definition at line 17 of file Constraint_Nodes.cpp.
References TAO_FIRST, and TAO_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 }
virtual TAO_Expression_Type TAO_Noop_Constraint::expr_type | ( | void | ) | const [inline, virtual] |
Return the expression type represented by this node.
Implements TAO_Constraint.
Definition at line 85 of file Constraint_Nodes.h.
00086 { return this->type_; }
Definition at line 90 of file Constraint_Nodes.h.