TAO_Noop_Constraint Class Reference

A node that represents an operation with no operands. More...

#include <Constraint_Nodes.h>

Inheritance diagram for TAO_Noop_Constraint:

Inheritance graph
[legend]
Collaboration diagram for TAO_Noop_Constraint:

Collaboration graph
[legend]
List of all members.

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_

Detailed Description

A node that represents an operation with no operands.

Definition at line 78 of file Constraint_Nodes.h.


Constructor & Destructor Documentation

TAO_Noop_Constraint::TAO_Noop_Constraint TAO_Expression_Type  type  )  [inline]
 

Definition at line 82 of file Constraint_Nodes.h.

00083     : type_ (type) {}


Member Function Documentation

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 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 }

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 87 of file Constraint_Nodes.h.

References TAO_Expression_Type.

00088     { return this->type_; }


Member Data Documentation

TAO_Expression_Type TAO_Noop_Constraint::type_ [private]
 

Definition at line 92 of file Constraint_Nodes.h.


The documentation for this class was generated from the following files:
Generated on Thu Nov 9 14:00:57 2006 for TAO_CosTrader by doxygen 1.3.6