TAO_CosTrader 3.1.4
Loading...
Searching...
No Matches
Public Member Functions | List of all members
TAO_Constraint Class Referenceabstract

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]

Public Member Functions

virtual int accept (TAO_Constraint_Visitor *visitor)=0
 
virtual TAO_Expression_Type expr_type () const =0
 Return the expression type represented by this node.
 
virtual ~TAO_Constraint ()
 

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

◆ ~TAO_Constraint()

virtual TAO_Constraint::~TAO_Constraint ( )
inlinevirtual

Member Function Documentation

◆ accept()

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_Noop_Constraint, TAO_Binary_Constraint, TAO_Unary_Constraint, TAO_Property_Constraint, and TAO_Literal_Constraint.

◆ expr_type()

virtual TAO_Expression_Type TAO_Constraint::expr_type ( ) const
pure virtual

Return the expression type represented by this node.

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


The documentation for this class was generated from the following file: