Public Member Functions | Private Attributes

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 2970 of file PSDL_Node.cpp.

  : const_type_ (const_type),
    identifier_ (identifier),
    const_exp_ (const_exp)
{
  this->psdl_scope_visitor ()->visit_const_dcl (this);

  this->psdl_scope ()->add_const_decl (this->identifiers_[1],
                                       this->identifiers_[0]);

  // We dont these values of the identifiers anymore as they have been
  // added to the corresponding AST. So, set count to 'zero' again.
  this->count_ = 0;

}

TAO_PSDL_Const_Dcl::~TAO_PSDL_Const_Dcl ( void   )  [virtual]

Definition at line 2988 of file PSDL_Node.cpp.

{
  delete this->const_type_;
  delete this->identifier_;
  delete this->const_exp_;
}


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 3016 of file PSDL_Node.cpp.

{
  return visitor->visit_const_dcl (this);
}

TAO_PSDL_Node * TAO_PSDL_Const_Dcl::const_exp ( void   )  const

Definition at line 3009 of file PSDL_Node.cpp.

{
  return this->const_exp_;
}

TAO_PSDL_Node * TAO_PSDL_Const_Dcl::const_type ( void   )  const

Get the value.

Definition at line 2997 of file PSDL_Node.cpp.

{
  return this->const_type_;
}

TAO_PSDL_Node * TAO_PSDL_Const_Dcl::identifier ( void   )  const

Definition at line 3003 of file PSDL_Node.cpp.

{
  return this->identifier_;
}


Member Data Documentation

Definition at line 1942 of file PSDL_Node.h.

The values.

Definition at line 1940 of file PSDL_Node.h.

Definition at line 1941 of file PSDL_Node.h.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Friends Defines