TAO_PSDL_Const_Dcl Class Reference

**************************************************************** More...

#include <PSDL_Node.h>

Inheritance diagram for TAO_PSDL_Const_Dcl:

Inheritance graph
[legend]
Collaboration diagram for TAO_PSDL_Const_Dcl:

Collaboration graph
[legend]
List of all members.

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_Nodeconst_type (void) const
 Get the value.
TAO_PSDL_Nodeidentifier (void) const
TAO_PSDL_Nodeconst_exp (void) const
int accept (TAO_PSDL_Node_Visitor *visitor)
 = The Node methods.

Private Attributes

TAO_PSDL_Nodeconst_type_
 The values.
TAO_PSDL_Nodeidentifier_
TAO_PSDL_Nodeconst_exp_

Detailed Description

****************************************************************

Definition at line 1920 of file PSDL_Node.h.


Constructor & Destructor Documentation

TAO_PSDL_Const_Dcl::TAO_PSDL_Const_Dcl ( TAO_PSDL_Node const_type,
TAO_PSDL_Node identifier,
TAO_PSDL_Node const_exp 
)

****************************************************************

Definition at line 2974 of file PSDL_Node.cpp.

References TAO_PSDL_Scope::add_const_decl(), TAO_PSDL_Node::count_, 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 }

TAO_PSDL_Const_Dcl::~TAO_PSDL_Const_Dcl ( void   )  [virtual]

Definition at line 2992 of file PSDL_Node.cpp.

References const_exp_, const_type_, and identifier_.

02993 {
02994   delete this->const_type_;
02995   delete this->identifier_;
02996   delete this->const_exp_;
02997 }


Member Function Documentation

int TAO_PSDL_Const_Dcl::accept ( TAO_PSDL_Node_Visitor visitor  )  [virtual]

= 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 }

TAO_PSDL_Node * TAO_PSDL_Const_Dcl::const_exp ( void   )  const

Definition at line 3013 of file PSDL_Node.cpp.

References const_exp_.

Referenced by TAO_PSDL_Scope_Visitor::visit_const_dcl(), and Dump_Visitor::visit_const_dcl().

03014 {
03015   return this->const_exp_;
03016 }

TAO_PSDL_Node * TAO_PSDL_Const_Dcl::const_type ( void   )  const

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 }

TAO_PSDL_Node * TAO_PSDL_Const_Dcl::identifier ( void   )  const

Definition at line 3007 of file PSDL_Node.cpp.

References identifier_.

Referenced by TAO_PSDL_Scope_Visitor::visit_const_dcl(), and Dump_Visitor::visit_const_dcl().

03008 {
03009   return this->identifier_;
03010 }


Member Data Documentation

TAO_PSDL_Node* TAO_PSDL_Const_Dcl::const_exp_ [private]

Definition at line 1942 of file PSDL_Node.h.

Referenced by const_exp(), and ~TAO_PSDL_Const_Dcl().

TAO_PSDL_Node* TAO_PSDL_Const_Dcl::const_type_ [private]

The values.

Definition at line 1940 of file PSDL_Node.h.

Referenced by const_type(), and ~TAO_PSDL_Const_Dcl().

TAO_PSDL_Node* TAO_PSDL_Const_Dcl::identifier_ [private]

Definition at line 1941 of file PSDL_Node.h.

Referenced by identifier(), and ~TAO_PSDL_Const_Dcl().


The documentation for this class was generated from the following files:
Generated on Tue Feb 2 17:50:25 2010 for TAO_PSS by  doxygen 1.4.7