TAO_CosTrader  2.0.8
Public Member Functions
TAO_Constraint Class Reference

TAO_Constraint is the base class of all nodes on the constraint expression tree. More...

#include <Constraint_Nodes.h>

Inheritance diagram for TAO_Constraint:
Inheritance graph
[legend]

List of all members.

Public Member Functions

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)

Detailed Description

TAO_Constraint is the base class of all nodes on the constraint expression tree.

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.


Constructor & Destructor Documentation

virtual TAO_Constraint::~TAO_Constraint ( void  ) [inline, virtual]

Member Function Documentation

virtual int TAO_Constraint::accept ( TAO_Constraint_Visitor visitor) [pure 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.

Implemented in TAO_Literal_Constraint, TAO_Property_Constraint, TAO_Unary_Constraint, TAO_Binary_Constraint, and TAO_Noop_Constraint.

virtual TAO_Expression_Type TAO_Constraint::expr_type ( void  ) const [pure virtual]

Return the expression type represented by this node.

Implemented in TAO_Literal_Constraint, TAO_Property_Constraint, TAO_Unary_Constraint, TAO_Binary_Constraint, and TAO_Noop_Constraint.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines