#include <Constraint_Nodes.h>
Inheritance diagram for TAO_Property_Constraint:
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_Constraint & | operator= (const TAO_Property_Constraint &) |
Private Attributes | |
char * | name_ |
The name of the property. |
Definition at line 192 of file Constraint_Nodes.h.
TAO_Property_Constraint::TAO_Property_Constraint | ( | const char * | name | ) |
Definition at line 265 of file Constraint_Nodes.cpp.
00266 : name_ (CORBA::string_dup (name)) 00267 { 00268 }
TAO_Property_Constraint::~TAO_Property_Constraint | ( | void | ) | [virtual] |
Definition at line 270 of file Constraint_Nodes.cpp.
References CORBA::string_free().
00271 { 00272 CORBA::string_free (this->name_); 00273 }
TAO_Property_Constraint::TAO_Property_Constraint | ( | const TAO_Property_Constraint & | ) | [private] |
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 276 of file Constraint_Nodes.cpp.
References TAO_Constraint_Visitor::visit_property().
00277 { 00278 return visitor->visit_property (this); 00279 }
TAO_Expression_Type TAO_Property_Constraint::expr_type | ( | void | ) | const [virtual] |
Return the expression type represented by this node.
Implements TAO_Constraint.
Definition at line 282 of file Constraint_Nodes.cpp.
References TAO_IDENT.
00283 { 00284 return TAO_IDENT; 00285 }
const char * TAO_Property_Constraint::name | ( | void | ) | const |
Returns the name of the property.
Definition at line 288 of file Constraint_Nodes.cpp.
References name_.
Referenced by TAO_Constraint_Validator::extract_type(), TAO_Constraint_Evaluator::visit_exist(), and TAO_Trader_Constraint_Evaluator::visit_property().
00289 { 00290 return name_; 00291 }
TAO_Property_Constraint& TAO_Property_Constraint::operator= | ( | const TAO_Property_Constraint & | ) | [private] |
char* TAO_Property_Constraint::name_ [private] |