#include <PSDL_Node.h>
Inheritance diagram for TAO_PSDL_Node:
Public Member Functions | |
TAO_PSDL_Node (void) | |
virtual | ~TAO_PSDL_Node (void) |
virtual int | accept (TAO_PSDL_Node_Visitor *visitor)=0 |
virtual int | type_of_node (void) const |
ACE_CString | get_identifier_type (void) |
ACE_CString | get_identifier_value (void) |
void | set_identifier (ACE_CString identifier) |
void | set_predefined_type (void) |
TAO_PSDL_Scope * | psdl_scope (void) |
Accessor methods. | |
TAO_PSDL_Scope_Visitor * | psdl_scope_visitor (void) |
Protected Attributes | |
int | type_ |
ACE_Array_Base< ACE_CString > | identifiers_ |
CORBA::ULong | count_ |
CORBA::Boolean | predefined_type_ |
TAO_PSDL_Scope * | psdl_scope_ |
Pointer to psdl_scope_. | |
TAO_PSDL_Scope_Visitor * | psdl_scope_visitor_ |
|
Definition at line 15 of file PSDL_Node.cpp.
00016 : identifiers_ (), 00017 count_ (0), 00018 predefined_type_ (0), 00019 psdl_scope_ (0), 00020 psdl_scope_visitor_ (0) 00021 { 00022 } |
|
Definition at line 24 of file PSDL_Node.cpp.
00025 { 00026 } |
|
|
Definition at line 53 of file PSDL_Node.cpp. References identifiers_.
00054 { 00055 // We are going to save such that the first element is the type of the 00056 // identifier and the second element is the actual identifier 00057 return this->identifiers_[0]; 00058 } |
|
Definition at line 61 of file PSDL_Node.cpp. References identifiers_.
00062 { 00063 // We are going to save such as the first element is the type of the 00064 // identifier and 00065 // the second element is the actual identifier 00066 return this->identifiers_[1]; 00067 } |
|
Accessor methods.
Definition at line 45 of file PSDL_Node.cpp. References TAO_PSDL_Scope::instance(), TAO_PSDL_Scope::pop_top_scope(), and psdl_scope_. Referenced by TAO_PSDL_Const_Dcl::TAO_PSDL_Const_Dcl(), TAO_PSDL_Member::TAO_PSDL_Member(), and TAO_PSDL_Type_Dcl::TAO_PSDL_Type_Dcl().
00046 { 00047 this->psdl_scope_ = TAO_PSDL_Scope::instance ()->pop_top_scope (); 00048 00049 return this->psdl_scope_; 00050 } |
|
Definition at line 36 of file PSDL_Node.cpp. References psdl_scope_visitor_. Referenced by TAO_PSDL_Const_Dcl::TAO_PSDL_Const_Dcl(), TAO_PSDL_Forward_Dcl::TAO_PSDL_Forward_Dcl(), TAO_PSDL_Member::TAO_PSDL_Member(), TAO_PSDL_Predefined_Type::TAO_PSDL_Predefined_Type(), TAO_PSDL_Raises_Expr::TAO_PSDL_Raises_Expr(), TAO_PSDL_Scoped_Name::TAO_PSDL_Scoped_Name(), and TAO_PSDL_Type_Dcl::TAO_PSDL_Type_Dcl().
00037 { 00038 if (this->psdl_scope_visitor_ == 0) 00039 this->psdl_scope_visitor_ = new TAO_PSDL_Scope_Visitor (this); 00040 00041 return this->psdl_scope_visitor_; 00042 } |
|
Definition at line 70 of file PSDL_Node.cpp. References identifiers_, and ACE_Array_Base< ACE_CString >::size(). Referenced by TAO_PSDL_Raises_Expr::TAO_PSDL_Raises_Expr(), TAO_PSDL_Scope_Visitor::visit_forward_dcl(), TAO_PSDL_Scope_Visitor::visit_identifier(), TAO_PSDL_Scope_Visitor::visit_op_type_spec(), TAO_PSDL_Scope_Visitor::visit_predefined_type(), TAO_PSDL_Scope_Visitor::visit_raises_expr(), and TAO_PSDL_Scope_Visitor::visit_type_dcl().
00071 { 00072 if (this->identifiers_.size () == 0) 00073 this->identifiers_.size (2); 00074 00075 this->identifiers_[this->count_] = identifier; 00076 ++this->count_; 00077 } |
|
Definition at line 80 of file PSDL_Node.cpp. References predefined_type_. Referenced by TAO_PSDL_Scope_Visitor::visit_forward_dcl(), TAO_PSDL_Scope_Visitor::visit_op_type_spec(), TAO_PSDL_Scope_Visitor::visit_predefined_type(), and TAO_PSDL_Scope_Visitor::visit_type_dcl().
00081 { 00082 this->predefined_type_ = 1; 00083 } |
|
Definition at line 29 of file PSDL_Node.cpp. Referenced by TAO_PSDL_Node_Visitor::visit_module().
00030 { 00031 return this->type_; 00032 } |
|
Definition at line 83 of file PSDL_Node.h. |
|
Definition at line 79 of file PSDL_Node.h. Referenced by get_identifier_type(), get_identifier_value(), and set_identifier(). |
|
Definition at line 90 of file PSDL_Node.h. Referenced by set_predefined_type(). |
|
Pointer to psdl_scope_.
Definition at line 92 of file PSDL_Node.h. Referenced by psdl_scope(). |
|
Definition at line 95 of file PSDL_Node.h. Referenced by psdl_scope_visitor(). |
|
Reimplemented in TAO_PSDL_Switch_Type_Spec, TAO_PSDL_Case_Label, TAO_PSDL_Const_Type, TAO_PSDL_Shift_Expr, TAO_PSDL_Add_Expr, TAO_PSDL_Mult_Expr, TAO_PSDL_Op_Type_Spec, TAO_PSDL_Constr_Forward_Decl, TAO_PSDL_Forward_Dcl, and TAO_PSDL_Interface_Header. Definition at line 75 of file PSDL_Node.h. |