#include <PSDL_Node.h>
Inheritance diagram for TAO_PSDL_Const_Dcl:
Public Member Functions | |
TAO_PSDL_Const_Dcl (TAO_PSDL_Node *const_type, TAO_PSDL_Node *identifier, TAO_PSDL_Node *const_exp) | |
**************************************************************** | |
virtual | ~TAO_PSDL_Const_Dcl (void) |
TAO_PSDL_Node * | const_type (void) const |
Get the value. | |
TAO_PSDL_Node * | identifier (void) const |
TAO_PSDL_Node * | const_exp (void) const |
int | accept (TAO_PSDL_Node_Visitor *visitor) |
= The Node methods. | |
Private Attributes | |
TAO_PSDL_Node * | const_type_ |
The values. | |
TAO_PSDL_Node * | identifier_ |
TAO_PSDL_Node * | const_exp_ |
Definition at line 1920 of file PSDL_Node.h.
|
****************************************************************
Definition at line 2974 of file PSDL_Node.cpp. References TAO_PSDL_Scope::add_const_decl(), TAO_PSDL_Node::psdl_scope(), TAO_PSDL_Node::psdl_scope_visitor(), and TAO_PSDL_Scope_Visitor::visit_const_dcl().
02977 : const_type_ (const_type), 02978 identifier_ (identifier), 02979 const_exp_ (const_exp) 02980 { 02981 this->psdl_scope_visitor ()->visit_const_dcl (this); 02982 02983 this->psdl_scope ()->add_const_decl (this->identifiers_[1], 02984 this->identifiers_[0]); 02985 02986 // We dont these values of the identifiers anymore as they have been 02987 // added to the corresponding AST. So, set count to 'zero' again. 02988 this->count_ = 0; 02989 02990 } |
|
Definition at line 2992 of file PSDL_Node.cpp. References const_type_.
02993 { 02994 delete this->const_type_; 02995 delete this->identifier_; 02996 delete this->const_exp_; 02997 } |
|
= The Node methods.
Implements TAO_PSDL_Node. Definition at line 3020 of file PSDL_Node.cpp. References TAO_PSDL_Node_Visitor::visit_const_dcl().
03021 { 03022 return visitor->visit_const_dcl (this); 03023 } |
|
Definition at line 3013 of file PSDL_Node.cpp. Referenced by TAO_PSDL_Scope_Visitor::visit_const_dcl(), and Dump_Visitor::visit_const_dcl().
03014 { 03015 return this->const_exp_; 03016 } |
|
Get the value.
Definition at line 3001 of file PSDL_Node.cpp. References const_type_. Referenced by TAO_PSDL_Scope_Visitor::visit_const_dcl(), and Dump_Visitor::visit_const_dcl().
03002 { 03003 return this->const_type_; 03004 } |
|
Definition at line 3007 of file PSDL_Node.cpp. Referenced by TAO_PSDL_Scope_Visitor::visit_const_dcl(), and Dump_Visitor::visit_const_dcl().
03008 { 03009 return this->identifier_; 03010 } |
|
Definition at line 1942 of file PSDL_Node.h. |
|
The values.
Definition at line 1940 of file PSDL_Node.h. Referenced by const_type(), and ~TAO_PSDL_Const_Dcl(). |
|
Definition at line 1941 of file PSDL_Node.h. |