TAO_Property_Constraint Class Reference

TAO_Property_Constraint represents a property whose value is determined by the offer being evaluated. More...

#include <Constraint_Nodes.h>

Inheritance diagram for TAO_Property_Constraint:

Inheritance graph
[legend]
Collaboration diagram for TAO_Property_Constraint:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 TAO_Property_Constraint (const char *name)
virtual ~TAO_Property_Constraint (void)
virtual int accept (TAO_Constraint_Visitor *visitor)
virtual TAO_Expression_Type expr_type (void) const
 Return the expression type represented by this node.

const char * name (void) const
 Returns the name of the property.


Private Member Functions

 TAO_Property_Constraint (const TAO_Property_Constraint &)
TAO_Property_Constraintoperator= (const TAO_Property_Constraint &)

Private Attributes

char * name_
 The name of the property.


Detailed Description

TAO_Property_Constraint represents a property whose value is determined by the offer being evaluated.

Definition at line 194 of file Constraint_Nodes.h.


Constructor & Destructor Documentation

TAO_Property_Constraint::TAO_Property_Constraint const char *  name  ) 
 

Definition at line 264 of file Constraint_Nodes.cpp.

00265   : name_ (CORBA::string_dup (name))
00266 {
00267 }

TAO_Property_Constraint::~TAO_Property_Constraint void   )  [virtual]
 

Definition at line 269 of file Constraint_Nodes.cpp.

References CORBA::string_free().

00270 {
00271   CORBA::string_free (this->name_);
00272 }

TAO_Property_Constraint::TAO_Property_Constraint const TAO_Property_Constraint  )  [private]
 


Member Function Documentation

int TAO_Property_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 275 of file Constraint_Nodes.cpp.

References TAO_Constraint_Visitor::visit_property().

00276 {
00277   return visitor->visit_property (this);
00278 }

virtual TAO_Expression_Type TAO_Property_Constraint::expr_type void   )  const [inline, virtual]
 

Return the expression type represented by this node.

Implements TAO_Constraint.

Definition at line 204 of file Constraint_Nodes.h.

References TAO_Expression_Type, and TAO_IDENT.

00205     { return TAO_IDENT; }

const char * TAO_Property_Constraint::name void   )  const
 

Returns the name of the property.

Definition at line 281 of file Constraint_Nodes.cpp.

Referenced by TAO_Constraint_Validator::extract_type(), TAO_Constraint_Evaluator::visit_exist(), and TAO_Trader_Constraint_Evaluator::visit_property().

00282 {
00283   return name_;
00284 }

TAO_Property_Constraint& TAO_Property_Constraint::operator= const TAO_Property_Constraint  )  [private]
 


Member Data Documentation

char* TAO_Property_Constraint::name_ [private]
 

The name of the property.

Definition at line 216 of file Constraint_Nodes.h.


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