Public Member Functions | Protected Attributes

TAO_PSDL_Op_Dcl_Scope Class Reference

#include <PSDL_Op_Dcl_Scope.h>

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

List of all members.

Public Member Functions

 TAO_PSDL_Op_Dcl_Scope (TAO_PSDL_Scope *parent_scope)
int add_const_decl (ACE_CString identifier, ACE_CString identifier_type)
int add_member_decl (ACE_CString identifier, ACE_CString identifier_type)
void dump (CORBA::ULong depth)
 Function to help indent the output of the parse tree.
TAO_PSDL_Scopeparent_scope (void)
 Return the pointer to the parent scope.
Scope_Mapscope_map (void)
 Return the pointer to Scope_Map of the instance.

Protected Attributes

Scope_Map scope_map_
TAO_PSDL_Scopeparent_scope_

Detailed Description

Definition at line 28 of file PSDL_Op_Dcl_Scope.h.


Constructor & Destructor Documentation

TAO_PSDL_Op_Dcl_Scope::TAO_PSDL_Op_Dcl_Scope ( TAO_PSDL_Scope parent_scope  ) 

Definition at line 9 of file PSDL_Op_Dcl_Scope.cpp.

  : scope_map_ (),
    parent_scope_ (parent_scope)
{
}


Member Function Documentation

int TAO_PSDL_Op_Dcl_Scope::add_const_decl ( ACE_CString  identifier,
ACE_CString  identifier_type 
) [virtual]

Reimplemented from TAO_PSDL_Scope.

Definition at line 16 of file PSDL_Op_Dcl_Scope.cpp.

{
  return TAO_PSDL_Scope::instance ()->add_const_decl_to_scope (identifier,
                                                               identifier_type,
                                                               this);
}

int TAO_PSDL_Op_Dcl_Scope::add_member_decl ( ACE_CString  identifier,
ACE_CString  identifier_type 
) [virtual]

Reimplemented from TAO_PSDL_Scope.

Definition at line 25 of file PSDL_Op_Dcl_Scope.cpp.

{
  return TAO_PSDL_Scope::instance ()->add_member_decl_to_scope (identifier,
                                                                identifier_type,
                                                                this);
}

void TAO_PSDL_Op_Dcl_Scope::dump ( CORBA::ULong  depth  )  [virtual]

Function to help indent the output of the parse tree.

Reimplemented from TAO_PSDL_Scope.

Definition at line 34 of file PSDL_Op_Dcl_Scope.cpp.

{
  depth = depth + 5;

  for (Scope_Map_Iterator i = this->scope_map_.begin ();
       i != this->scope_map_.end ();
       ++i)
    {
      this->print_depth (depth);
      ACE_DEBUG ((LM_DEBUG,
                  "%s (%s)\n",
                  (*i).ext_id_.c_str (), (*i).int_id_));
    }
}

TAO_PSDL_Scope * TAO_PSDL_Op_Dcl_Scope::parent_scope ( void   )  [virtual]

Return the pointer to the parent scope.

Reimplemented from TAO_PSDL_Scope.

Definition at line 50 of file PSDL_Op_Dcl_Scope.cpp.

{
  return this->parent_scope_;
}

Scope_Map * TAO_PSDL_Op_Dcl_Scope::scope_map ( void   )  [virtual]

Return the pointer to Scope_Map of the instance.

Reimplemented from TAO_PSDL_Scope.

Definition at line 56 of file PSDL_Op_Dcl_Scope.cpp.

{
  return &this->scope_map_;
}


Member Data Documentation

Definition at line 49 of file PSDL_Op_Dcl_Scope.h.

Definition at line 48 of file PSDL_Op_Dcl_Scope.h.


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