Public Member Functions | Private Attributes

TAO_PSDL_Type_Dcl Class Reference

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

#include <PSDL_Node.h>

Inheritance diagram for TAO_PSDL_Type_Dcl:
Inheritance graph
[legend]
Collaboration diagram for TAO_PSDL_Type_Dcl:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 TAO_PSDL_Type_Dcl (TAO_PSDL_Node *type_of_type_dcl)
 ****************************************************************
 TAO_PSDL_Type_Dcl (int key_word, TAO_PSDL_Node *type_of_type_dcl)
virtual ~TAO_PSDL_Type_Dcl (void)
int key_word (void) const
 Get the value.
TAO_PSDL_Nodetype_of_type_dcl (void) const
int accept (TAO_PSDL_Node_Visitor *visitor)
 = The Node methods.

Private Attributes

int key_word_
 The values.
TAO_PSDL_Nodetype_of_type_dcl_

Detailed Description

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

Definition at line 1388 of file PSDL_Node.h.


Constructor & Destructor Documentation

TAO_PSDL_Type_Dcl::TAO_PSDL_Type_Dcl ( TAO_PSDL_Node type_of_type_dcl  ) 

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

Definition at line 2054 of file PSDL_Node.cpp.

  : key_word_ (0),
    type_of_type_dcl_ (type_of_type_dcl)
{
}

TAO_PSDL_Type_Dcl::TAO_PSDL_Type_Dcl ( int  key_word,
TAO_PSDL_Node type_of_type_dcl 
)

Definition at line 2060 of file PSDL_Node.cpp.

  : key_word_ (key_word),
    type_of_type_dcl_ (type_of_type_dcl)
{
  this->type_ = key_word;

  this->psdl_scope_visitor ()->visit_type_dcl (this);

  // @@ why this if loop
  if (ACE_OS::strcmp (this->identifiers_[0].c_str (), "") == 0)
    {
      this->identifiers_[0] = this->psdl_scope_visitor ()->get_scoped_type ();
    }

  if (key_word != TAO_PSDL_TYPEDEF)
    {
      this->psdl_scope ()->check_name_in_scope (this->identifiers_[0],
                                                this->psdl_scope ());
    }

  this->psdl_scope ()->add_typedef (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_Type_Dcl::~TAO_PSDL_Type_Dcl ( void   )  [virtual]

Definition at line 2090 of file PSDL_Node.cpp.

{
  delete this->type_of_type_dcl_;
}


Member Function Documentation

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

= The Node methods.

Implements TAO_PSDL_Node.

Definition at line 2110 of file PSDL_Node.cpp.

{
  return visitor->visit_type_dcl  (this);
}

int TAO_PSDL_Type_Dcl::key_word ( void   )  const

Get the value.

Definition at line 2097 of file PSDL_Node.cpp.

{
  return this->key_word_;
}

TAO_PSDL_Node * TAO_PSDL_Type_Dcl::type_of_type_dcl ( void   )  const

Definition at line 2103 of file PSDL_Node.cpp.

{
  return this->type_of_type_dcl_;
}


Member Data Documentation

The values.

Definition at line 1408 of file PSDL_Node.h.

Definition at line 1409 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