#include <PSDL_Node_Visitor.h>
Inheritance diagram for TAO_PSDL_Node_Visitor:
|
Definition at line 8 of file PSDL_Node_Visitor.cpp. References ACE_NEW.
00009 : identifiers_ (0), 00010 predefined_type_ (0), 00011 count_ (0), 00012 node_visitor_ (0) 00013 { 00014 ACE_NEW (this->visitor_factory_, 00015 TAO_PSDL_Visitor_Factory); 00016 } |
|
Definition at line 18 of file PSDL_Node_Visitor.cpp.
00019 { 00020 } |
|
To check if the identifier_type is a predefined type or one that is defined in the idl in case. Definition at line 586 of file PSDL_Node_Visitor.cpp. References ACE_CString, TAO_PSDL_Scope::find(), TAO_PSDL_Scope::instance(), ACE_OS::strcmp(), and TAO_PSDL_Scope::to_lower_case(). Referenced by TAO_PSDL_Exception_Visitor::print_class_for_exception(), TAO_PSDL_Type_Dcl_Visitor::print_for_simple_typedefs(), TAO_PSDL_Type_Dcl_Visitor::visit_type_declarator(), and TAO_PSDL_Struct_Visitor::visit_type_spec().
00588 { 00589 ACE_CString identifier_name = identifier; 00590 TAO_PSDL_Scope::instance ()->to_lower_case (identifier_name); 00591 00592 int result = 00593 TAO_PSDL_Scope::instance ()->find (identifier_name, 00594 identifier_type); 00595 00596 if (result == 0) 00597 { 00598 // check if the base type is a predefined base type defined in 00599 // PSDL.yy 00600 if (ACE_OS::strcmp (identifier_type.c_str (), "enum") == 0) 00601 return 0; 00602 00603 // The way I am deciding is trying to find the idn 00604 result = TAO_PSDL_Scope::instance ()->find (identifier_type); 00605 00606 if (result == 0) 00607 { 00608 return 0; 00609 } 00610 else 00611 { 00612 return 1; 00613 } 00614 } 00615 00616 // identifier_name is a predefined type like char *. 00617 identifier_type = identifier_name; 00618 00619 return 1; 00620 } |
|
Reimplemented in TAO_PSDL_Interface_Visitor, TAO_PSDL_Struct_Visitor, and TAO_PSDL_Type_Dcl_Visitor. Definition at line 638 of file PSDL_Node_Visitor.cpp. Referenced by visit_interface_dcl(), and visit_predefined_type().
00639 {
00640 return;
00641 }
|
|
Reimplemented in TAO_PSDL_Struct_Visitor. Definition at line 644 of file PSDL_Node_Visitor.cpp. Referenced by visit_predefined_type().
00645 {
00646 return;
00647 }
|
|
Definition at line 623 of file PSDL_Node_Visitor.cpp. References ACE_OS::strcmp(). Referenced by TAO_PSDL_Exception_Visitor::print_class_for_exception(), TAO_PSDL_Type_Dcl_Visitor::print_for_simple_typedefs(), and TAO_PSDL_Struct_Visitor::visit_type_spec().
00624 { 00625 if (ACE_OS::strcmp (identifier_type.c_str (), "char *") == 0) 00626 { 00627 return "CORBA::String"; 00628 } 00629 else if (ACE_OS::strcmp (identifier_type.c_str (), "long") == 0) 00630 { 00631 return "CORBA::Long"; 00632 } 00633 else 00634 return identifier_type; 00635 } |
|
Reimplemented in Dump_Visitor, and TAO_PSDL_Scope_Visitor. Definition at line 124 of file PSDL_Node_Visitor.cpp. Referenced by TAO_PSDL_Abstract_Storagehome::accept().
00125 {
00126 return 0;
00127 }
|
|
Reimplemented in Dump_Visitor, and TAO_PSDL_Scope_Visitor. Definition at line 148 of file PSDL_Node_Visitor.cpp. Referenced by TAO_PSDL_Abstract_Storagehome_Body::accept().
00149 {
00150 return 0;
00151 }
|
|
Reimplemented in Dump_Visitor, and TAO_PSDL_Scope_Visitor. Definition at line 136 of file PSDL_Node_Visitor.cpp. Referenced by TAO_PSDL_Abstract_Storagehome_Dcl::accept().
00137 {
00138 return 0;
00139 }
|
|
Reimplemented in Dump_Visitor, and TAO_PSDL_Scope_Visitor. Definition at line 130 of file PSDL_Node_Visitor.cpp. Referenced by TAO_PSDL_Abstract_Storagehome_Fwd_Dcl::accept().
00131 {
00132 return 0;
00133 }
|
|
Reimplemented in Dump_Visitor, and TAO_PSDL_Scope_Visitor. Definition at line 142 of file PSDL_Node_Visitor.cpp. Referenced by TAO_PSDL_Abstract_Storagehome_Header::accept().
00143 {
00144 return 0;
00145 }
|
|
Reimplemented in Dump_Visitor, and TAO_PSDL_Scope_Visitor. Definition at line 159 of file PSDL_Node_Visitor.cpp. Referenced by TAO_PSDL_Abstract_Storagehome_Inh_Spec::accept().
00159 { return 0; }
|
|
Reimplemented in Dump_Visitor, and TAO_PSDL_Scope_Visitor. Definition at line 154 of file PSDL_Node_Visitor.cpp. Referenced by TAO_PSDL_Abstract_Storagehome_Member::accept().
00155 {
00156 return 0;
00157 }
|
|
Reimplemented in Dump_Visitor, and TAO_PSDL_Scope_Visitor. Definition at line 160 of file PSDL_Node_Visitor.cpp. Referenced by TAO_PSDL_Abstract_Storagehome_Name::accept().
00160 { return 0; }
|
|
Reimplemented in Dump_Visitor, and TAO_PSDL_Scope_Visitor. Definition at line 61 of file PSDL_Node_Visitor.cpp. Referenced by TAO_PSDL_Abstract_Storagetype::accept().
00062 { return 0; }
|
|
Reimplemented in Dump_Visitor, and TAO_PSDL_Scope_Visitor. Definition at line 82 of file PSDL_Node_Visitor.cpp. Referenced by TAO_PSDL_Abstract_Storagetype_Body::accept().
00083 {
00084 return 0;
00085 }
|
|
Reimplemented in Dump_Visitor, and TAO_PSDL_Scope_Visitor. Definition at line 65 of file PSDL_Node_Visitor.cpp. Referenced by TAO_PSDL_Abstract_Storagetype_Dcl::accept().
00066 {
00067 return 0;
00068 }
|
|
Reimplemented in Dump_Visitor, and TAO_PSDL_Scope_Visitor. Definition at line 71 of file PSDL_Node_Visitor.cpp. Referenced by TAO_PSDL_Abstract_Storagetype_Fwd_Dcl::accept().
00072 {
00073 return 0;
00074 }
|
|
Reimplemented in Dump_Visitor, and TAO_PSDL_Scope_Visitor. Definition at line 77 of file PSDL_Node_Visitor.cpp. Referenced by TAO_PSDL_Abstract_Storagetype_Header::accept().
00078 {
00079 return 0;
00080 }
|
|
Reimplemented in Dump_Visitor, and TAO_PSDL_Scope_Visitor. Definition at line 94 of file PSDL_Node_Visitor.cpp. Referenced by TAO_PSDL_Abstract_Storagetype_Inh_Spec::accept().
00095 {
00096 return 0;
00097 }
|
|
Reimplemented in Dump_Visitor, and TAO_PSDL_Scope_Visitor. Definition at line 88 of file PSDL_Node_Visitor.cpp. Referenced by TAO_PSDL_Abstract_Storagetype_Member::accept().
00089 {
00090 return 0;
00091 }
|
|
Reimplemented in Dump_Visitor, and TAO_PSDL_Scope_Visitor. Definition at line 100 of file PSDL_Node_Visitor.cpp. Referenced by TAO_PSDL_Abstract_Storagetype_Name::accept().
00101 {
00102 return 0;
00103 }
|
|
Reimplemented in Dump_Visitor, and TAO_PSDL_Scope_Visitor. Definition at line 118 of file PSDL_Node_Visitor.cpp. Referenced by TAO_PSDL_Abstract_Storagetype_Ref_Type::accept().
00119 {
00120 return 0;
00121 }
|
|
Reimplemented in Dump_Visitor, and TAO_PSDL_Scope_Visitor. Definition at line 406 of file PSDL_Node_Visitor.cpp. Referenced by TAO_PSDL_Add_Expr::accept().
00406 { return 0; }
|
|
Reimplemented in Dump_Visitor, and TAO_PSDL_Scope_Visitor. Definition at line 404 of file PSDL_Node_Visitor.cpp. Referenced by TAO_PSDL_And_Expr::accept().
00404 { return 0; }
|
|
Reimplemented in Dump_Visitor, and TAO_PSDL_Scope_Visitor. Definition at line 557 of file PSDL_Node_Visitor.cpp. Referenced by TAO_PSDL_Array_Declarator::accept().
00557 { return 0; }
|
|
Reimplemented in Dump_Visitor, and TAO_PSDL_Scope_Visitor. Definition at line 568 of file PSDL_Node_Visitor.cpp. Referenced by TAO_PSDL_Attr_Dcl::accept().
00569 {
00570 return 0;
00571 }
|
|
Reimplemented in Dump_Visitor, and TAO_PSDL_Scope_Visitor. Definition at line 248 of file PSDL_Node_Visitor.cpp. References TAO_PSDL_Node::accept(), and TAO_PSDL_Base_Type_Spec::type_of_base_type_spec(). Referenced by TAO_PSDL_Base_Type_Spec::accept().
00249 { 00250 00251 00252 if (base_type_spec->type_of_base_type_spec ()->accept (this) == -1) 00253 return -1; 00254 00255 return 0; 00256 } |
|
Reimplemented in Dump_Visitor, and TAO_PSDL_Scope_Visitor. Definition at line 396 of file PSDL_Node_Visitor.cpp. Referenced by TAO_PSDL_Case::accept().
00396 { return 0; }
|
|
Reimplemented in Dump_Visitor, and TAO_PSDL_Scope_Visitor. Definition at line 397 of file PSDL_Node_Visitor.cpp. Referenced by TAO_PSDL_Case_Label::accept().
00397 { return 0; }
|
|
Reimplemented in Dump_Visitor, and TAO_PSDL_Scope_Visitor. Definition at line 163 of file PSDL_Node_Visitor.cpp. Referenced by TAO_PSDL_Catalog::accept().
00163 { return 0; }
|
|
Reimplemented in Dump_Visitor, and TAO_PSDL_Scope_Visitor. Definition at line 166 of file PSDL_Node_Visitor.cpp. Referenced by TAO_PSDL_Catalog_Body::accept().
00166 { return 0; }
|
|
Reimplemented in Dump_Visitor, and TAO_PSDL_Scope_Visitor. Definition at line 164 of file PSDL_Node_Visitor.cpp. Referenced by TAO_PSDL_Catalog_Inh_Spec::accept().
00164 { return 0; }
|
|
Reimplemented in Dump_Visitor, and TAO_PSDL_Scope_Visitor. Definition at line 167 of file PSDL_Node_Visitor.cpp. Referenced by TAO_PSDL_Catalog_Member::accept().
00167 { return 0; }
|
|
Reimplemented in Dump_Visitor, and TAO_PSDL_Scope_Visitor. Definition at line 165 of file PSDL_Node_Visitor.cpp. Referenced by TAO_PSDL_Catalog_Name::accept().
00165 { return 0; }
|
|
Reimplemented in Dump_Visitor, and TAO_PSDL_Scope_Visitor. Definition at line 314 of file PSDL_Node_Visitor.cpp. Referenced by TAO_PSDL_Complex_Declarator::accept().
00315 {
00316 return 0;
00317 }
|
|
Reimplemented in Dump_Visitor, and TAO_PSDL_Scope_Visitor. Definition at line 399 of file PSDL_Node_Visitor.cpp. Referenced by TAO_PSDL_Const_Dcl::accept().
00399 { return 0; }
|
|
Reimplemented in Dump_Visitor, and TAO_PSDL_Scope_Visitor. Definition at line 401 of file PSDL_Node_Visitor.cpp. Referenced by TAO_PSDL_Const_Exp::accept().
00401 { return 0; }
|
|
Reimplemented in Dump_Visitor, and TAO_PSDL_Scope_Visitor. Definition at line 400 of file PSDL_Node_Visitor.cpp. Referenced by TAO_PSDL_Const_Type::accept().
00400 { return 0; }
|
|
Reimplemented in Dump_Visitor, and TAO_PSDL_Scope_Visitor. Definition at line 456 of file PSDL_Node_Visitor.cpp. Referenced by TAO_PSDL_Constr_Forward_Decl::accept().
00457 {
00458 return 0;
00459 }
|
|
Reimplemented in Dump_Visitor, and TAO_PSDL_Scope_Visitor. Definition at line 268 of file PSDL_Node_Visitor.cpp. Referenced by TAO_PSDL_Constr_Type_Spec::accept().
00269 {
00270 return 0;
00271 }
|
|
Reimplemented in Dump_Visitor, and TAO_PSDL_Scope_Visitor. Definition at line 451 of file PSDL_Node_Visitor.cpp. Referenced by TAO_PSDL_Context_Expr::accept().
00451 { return 0; }
|
|
Reimplemented in Dump_Visitor, TAO_PSDL_Scope_Visitor, and TAO_PSDL_Struct_Visitor. Definition at line 288 of file PSDL_Node_Visitor.cpp. References TAO_PSDL_Node::accept(), and TAO_PSDL_Declarator::type_of_declarator(). Referenced by TAO_PSDL_Declarator::accept().
00289 { 00290 if (declarator->type_of_declarator ()->accept (this) == -1) 00291 return -1; 00292 return 0; 00293 } |
|
Reimplemented in Dump_Visitor, and TAO_PSDL_Scope_Visitor. Definition at line 274 of file PSDL_Node_Visitor.cpp. References TAO_PSDL_Node::accept(), TAO_PSDL_Declarators::declarator(), and TAO_PSDL_Declarators::set_of_declarators(). Referenced by TAO_PSDL_Declarators::accept().
00275 { 00276 if (declarators->declarator ()->accept (this) == -1) 00277 return -1; 00278 00279 if (declarators->set_of_declarators () != 0) 00280 { 00281 if (declarators->set_of_declarators ()->accept (this) == -1) 00282 return -1; 00283 } 00284 return 0; 00285 } |
|
Reimplemented in Dump_Visitor, and TAO_PSDL_Scope_Visitor. Definition at line 37 of file PSDL_Node_Visitor.cpp. References TAO_PSDL_Node::accept(), and TAO_PSDL_Definition::definition_type(). Referenced by TAO_PSDL_Definition::accept().
00038 { 00039 if (definition->definition_type ()->accept (this) == -1) 00040 return -1; 00041 00042 return 0; 00043 } |
|
Reimplemented in Dump_Visitor, and TAO_PSDL_Scope_Visitor. Definition at line 398 of file PSDL_Node_Visitor.cpp. Referenced by TAO_PSDL_Element_Spec::accept().
00398 { return 0; }
|
|
Reimplemented in Dump_Visitor, TAO_PSDL_Enum_Type_Visitor, and TAO_PSDL_Scope_Visitor. Definition at line 559 of file PSDL_Node_Visitor.cpp. Referenced by TAO_PSDL_Enumerator::accept().
00559 { return 0; }
|
|
Reimplemented in Dump_Visitor, TAO_PSDL_Exception_Visitor, and TAO_PSDL_Scope_Visitor. Definition at line 412 of file PSDL_Node_Visitor.cpp. References TAO_PSDL_Visitor_Factory::make_visitor(), node_visitor_, TAO_PSDL_EXCEPTION, and visitor_factory_. Referenced by TAO_PSDL_Except_Dcl::accept().
00413 { 00414 int type = TAO_PSDL_EXCEPTION; 00415 this->node_visitor_ = 00416 this->visitor_factory_->make_visitor (type); 00417 00418 if (this->node_visitor_ != 0) 00419 return this->node_visitor_->visit_except_dcl (except_dcl); 00420 00421 /* 00422 if (except_dcl->identifier ()->accept (this) == -1) 00423 return -1; 00424 00425 if (except_dcl->member () != 0) 00426 { 00427 if (except_dcl->member ()->accept (&body_visitor) == -1) 00428 return -1; 00429 } 00430 */ 00431 return -1; 00432 } |
|
Reimplemented in Dump_Visitor, and TAO_PSDL_Scope_Visitor. Definition at line 530 of file PSDL_Node_Visitor.cpp. References TAO_PSDL_Node::accept(), TAO_PSDL_Export_Dcl::type_of_export_one(), and TAO_PSDL_Export_Dcl::type_of_export_two(). Referenced by TAO_PSDL_Export_Dcl::accept().
00531 { 00532 if (export_dcl->type_of_export_one ()->accept (this) == -1) 00533 return -1; 00534 00535 if (export_dcl->type_of_export_two () != 0) 00536 { 00537 if (export_dcl->type_of_export_two ()->accept (this) == -1) 00538 return -1; 00539 } 00540 00541 return 0; 00542 } |
|
Reimplemented in Dump_Visitor, and TAO_PSDL_Scope_Visitor. Definition at line 574 of file PSDL_Node_Visitor.cpp. Referenced by TAO_PSDL_Factory_Dcl::accept().
00575 {
00576 return 0;
00577 }
|
|
Reimplemented in Dump_Visitor, and TAO_PSDL_Scope_Visitor. Definition at line 565 of file PSDL_Node_Visitor.cpp. Referenced by TAO_PSDL_Factory_Parameters::accept().
00565 { return 0; }
|
|
Reimplemented in Dump_Visitor, and TAO_PSDL_Scope_Visitor. Definition at line 558 of file PSDL_Node_Visitor.cpp. Referenced by TAO_PSDL_Fixed_Array_Size::accept().
00558 { return 0; }
|
|
Reimplemented in Dump_Visitor, and TAO_PSDL_Scope_Visitor. Definition at line 453 of file PSDL_Node_Visitor.cpp. Referenced by TAO_PSDL_Fixed_Pt_Type::accept().
00453 { return 0; }
|
|
Reimplemented in Dump_Visitor, TAO_PSDL_Interface_Visitor, and TAO_PSDL_Scope_Visitor. Definition at line 504 of file PSDL_Node_Visitor.cpp. References TAO_PSDL_Visitor_Factory::make_visitor(), node_visitor_, TAO_PSDL_INTERFACE, and visitor_factory_. Referenced by TAO_PSDL_Forward_Dcl::accept().
00505 { 00506 int type = TAO_PSDL_INTERFACE; 00507 this->node_visitor_ = 00508 this->visitor_factory_->make_visitor (type); 00509 00510 if (this->node_visitor_ != 0) 00511 return this->node_visitor_->visit_forward_dcl (forward_dcl); 00512 00513 return -1; 00514 } |
|
Reimplemented in Dump_Visitor, TAO_PSDL_Enum_Type_Visitor, TAO_PSDL_Exception_Visitor, TAO_PSDL_Interface_Visitor, TAO_PSDL_Scope_Visitor, TAO_PSDL_Struct_Visitor, and TAO_PSDL_Type_Dcl_Visitor. Definition at line 192 of file PSDL_Node_Visitor.cpp. References ACE_Array_Base< ACE_CString >::size(), and TAO_PSDL_Identifier::value(). Referenced by TAO_PSDL_Identifier::accept().
00193 { 00194 if (this->identifiers_.size () == 0) 00195 { 00196 this->identifiers_.size (1); 00197 this->count_ = 0; 00198 } 00199 00200 this->identifiers_ [this->count_] = identifier->value (); 00201 ++this->count_; 00202 00203 return 0; 00204 } |
|
Reimplemented in Dump_Visitor, and TAO_PSDL_Scope_Visitor. Definition at line 562 of file PSDL_Node_Visitor.cpp. Referenced by TAO_PSDL_Init_Dcl::accept().
00562 { return 0; }
|
|
Reimplemented in Dump_Visitor, and TAO_PSDL_Scope_Visitor. Definition at line 564 of file PSDL_Node_Visitor.cpp. Referenced by TAO_PSDL_Init_Param_Decl::accept().
00564 { return 0; }
|
|
Reimplemented in Dump_Visitor, and TAO_PSDL_Scope_Visitor. Definition at line 563 of file PSDL_Node_Visitor.cpp. Referenced by TAO_PSDL_Init_Param_Decls::accept().
00563 { return 0; }
|
|
Reimplemented in Dump_Visitor, and TAO_PSDL_Scope_Visitor. Definition at line 462 of file PSDL_Node_Visitor.cpp. References TAO_PSDL_Node::accept(), and TAO_PSDL_Interface::type_of_dcl(). Referenced by TAO_PSDL_Interface::accept().
00463 { 00464 if (interf->type_of_dcl ()->accept (this) == -1) 00465 return -1; 00466 00467 return 0; 00468 } |
|
Reimplemented in Dump_Visitor, and TAO_PSDL_Scope_Visitor. Definition at line 471 of file PSDL_Node_Visitor.cpp. References TAO_PSDL_Node::accept(), TAO_PSDL_Interface_Body::export_variable(), and TAO_PSDL_Interface_Body::interface_body(). Referenced by TAO_PSDL_Interface_Body::accept().
00472 { 00473 if (interface_body->export_variable ()->accept (this) == -1) 00474 return -1; 00475 00476 if (interface_body->interface_body () != 0) 00477 { 00478 if (interface_body->interface_body ()->accept (this) == -1) 00479 return -1; 00480 00481 } 00482 return 0; 00483 } |
|
Reimplemented in Dump_Visitor, TAO_PSDL_Interface_Visitor, and TAO_PSDL_Scope_Visitor. Definition at line 486 of file PSDL_Node_Visitor.cpp. References gen_code_for_si(), TAO_PSDL_Visitor_Factory::make_visitor(), node_visitor_, TAO_PSDL_INTERFACE, and visitor_factory_. Referenced by TAO_PSDL_Interface_Dcl::accept().
00487 { 00488 int type = TAO_PSDL_INTERFACE; 00489 this->node_visitor_ = 00490 this->visitor_factory_->make_visitor (type); 00491 00492 if (this->node_visitor_ != 0) 00493 { 00494 this->node_visitor_->visit_interface_dcl (interface_dcl); 00495 this->node_visitor_->gen_code_for_si (); 00496 } 00497 else 00498 return -1; 00499 00500 return 0; 00501 } |
|
Reimplemented in Dump_Visitor, TAO_PSDL_Interface_Visitor, and TAO_PSDL_Scope_Visitor. Definition at line 517 of file PSDL_Node_Visitor.cpp. References TAO_PSDL_Visitor_Factory::make_visitor(), node_visitor_, and visitor_factory_. Referenced by TAO_PSDL_Interface_Header::accept().
00518 { 00519 int type = 325; 00520 this->node_visitor_ = 00521 this->visitor_factory_->make_visitor (type); 00522 00523 if (this->node_visitor_ != 0) 00524 return this->node_visitor_->visit_interface_header (interface_header); 00525 else 00526 return -1; 00527 } |
|
Reimplemented in Dump_Visitor, and TAO_PSDL_Scope_Visitor. Definition at line 544 of file PSDL_Node_Visitor.cpp. Referenced by TAO_PSDL_Interface_Inheritance_Spec::accept().
00544 { return 0; }
|
|
Reimplemented in Dump_Visitor, and TAO_PSDL_Scope_Visitor. Definition at line 545 of file PSDL_Node_Visitor.cpp. Referenced by TAO_PSDL_Interface_Name::accept().
00545 { return 0; }
|
|
Reimplemented in Dump_Visitor, and TAO_PSDL_Scope_Visitor. Definition at line 162 of file PSDL_Node_Visitor.cpp. Referenced by TAO_PSDL_Key_Dcl::accept().
00162 { return 0; }
|
|
Reimplemented in Dump_Visitor, and TAO_PSDL_Scope_Visitor. Definition at line 560 of file PSDL_Node_Visitor.cpp. Referenced by TAO_PSDL_Literal::accept().
00560 { return 0; }
|
|
Reimplemented in Dump_Visitor, and TAO_PSDL_Scope_Visitor. Definition at line 161 of file PSDL_Node_Visitor.cpp. Referenced by TAO_PSDL_Local_Op_Dcl::accept().
00161 { return 0; }
|
|
Reimplemented in Dump_Visitor, and TAO_PSDL_Scope_Visitor. Definition at line 367 of file PSDL_Node_Visitor.cpp. References TAO_PSDL_Node::accept(), TAO_PSDL_Member::declarators(), and TAO_PSDL_Member::type_spec(). Referenced by TAO_PSDL_Member::accept().
00368 { 00369 if (member->type_spec ()->accept (this) == -1) 00370 return -1; 00371 00372 if (member->declarators ()->accept (this) == -1) 00373 return -1; 00374 00375 return 0; 00376 } |
|
Reimplemented in Dump_Visitor, TAO_PSDL_Exception_Visitor, and TAO_PSDL_Scope_Visitor. Definition at line 352 of file PSDL_Node_Visitor.cpp. References TAO_PSDL_Node::accept(), TAO_PSDL_Member_List::member(), and TAO_PSDL_Member_List::member_list(). Referenced by TAO_PSDL_Member_List::accept().
00353 { 00354 if (member_list->member ()->accept (this) == -1) 00355 return -1; 00356 00357 if (member_list->member_list () != 0) 00358 { 00359 if (member_list->member_list ()->accept (this) == -1) 00360 return -1; 00361 } 00362 00363 return 0; 00364 } |
|
Reimplemented in Dump_Visitor, TAO_PSDL_Module_Visitor, and TAO_PSDL_Scope_Visitor. Definition at line 46 of file PSDL_Node_Visitor.cpp. References TAO_PSDL_Visitor_Factory::make_visitor(), node_visitor_, TAO_PSDL_Node::type_of_node(), and visitor_factory_. Referenced by TAO_PSDL_Module::accept().
00047 { 00048 this->node_visitor_ = 00049 this->visitor_factory_->make_visitor (module->type_of_node ()); 00050 00051 if (this->node_visitor_ != 0) 00052 { 00053 return this->node_visitor_->visit_module (module); 00054 } 00055 else 00056 { 00057 return -1; 00058 } 00059 } |
|
Reimplemented in Dump_Visitor, and TAO_PSDL_Scope_Visitor. Definition at line 407 of file PSDL_Node_Visitor.cpp. Referenced by TAO_PSDL_Mult_Expr::accept().
00407 { return 0; }
|
|
Reimplemented in Dump_Visitor, and TAO_PSDL_Scope_Visitor. Definition at line 435 of file PSDL_Node_Visitor.cpp. Referenced by TAO_PSDL_Op_Dcl::accept().
00436 {
00437 return 0;
00438 }
|
|
Reimplemented in Dump_Visitor, and TAO_PSDL_Scope_Visitor. Definition at line 447 of file PSDL_Node_Visitor.cpp. Referenced by TAO_PSDL_Op_Type_Spec::accept().
00447 { return 0; }
|
|
Reimplemented in Dump_Visitor, and TAO_PSDL_Scope_Visitor. Definition at line 402 of file PSDL_Node_Visitor.cpp. Referenced by TAO_PSDL_Or_Expr::accept().
00402 { return 0; }
|
|
Reimplemented in Dump_Visitor, and TAO_PSDL_Scope_Visitor. Definition at line 449 of file PSDL_Node_Visitor.cpp. Referenced by TAO_PSDL_Param_Dcl::accept().
00449 { return 0; }
|
|
Reimplemented in Dump_Visitor, and TAO_PSDL_Scope_Visitor. Definition at line 452 of file PSDL_Node_Visitor.cpp. Referenced by TAO_PSDL_Param_Type_Spec::accept().
00452 { return 0; }
|
|
Reimplemented in Dump_Visitor, and TAO_PSDL_Scope_Visitor. Definition at line 448 of file PSDL_Node_Visitor.cpp. Referenced by TAO_PSDL_Parameter_Dcls::accept().
00448 { return 0; }
|
|
Reimplemented in Dump_Visitor, and TAO_PSDL_Scope_Visitor. Referenced by TAO_PSDL_Positive_Int_Const::accept(). |
|
Reimplemented in Dump_Visitor, TAO_PSDL_Enum_Type_Visitor, TAO_PSDL_Exception_Visitor, TAO_PSDL_Scope_Visitor, TAO_PSDL_Struct_Visitor, and TAO_PSDL_Type_Dcl_Visitor. Definition at line 320 of file PSDL_Node_Visitor.cpp. References gen_code_for_si(), gen_code_for_sinline(), TAO_PSDL_Visitor_Factory::make_visitor(), node_visitor_, TAO_PSDL_Predefined_Type::type_one(), TAO_PSDL_Predefined_Type::type_three(), TAO_PSDL_Predefined_Type::type_two(), and visitor_factory_. Referenced by TAO_PSDL_Predefined_Type::accept().
00321 { 00322 if (predefined_type->type_one () != 0) 00323 { 00324 // @@ mainly for case 291:struct as of now. 00325 this->node_visitor_ = 00326 this->visitor_factory_->make_visitor (predefined_type->type_one ()); 00327 00328 if (this->node_visitor_ != 0) 00329 { 00330 int result = 00331 this->node_visitor_->visit_predefined_type (predefined_type); 00332 00333 if (result != 0) 00334 return result; 00335 00336 this->node_visitor_->gen_code_for_si (); 00337 this->node_visitor_->gen_code_for_sinline (); 00338 } 00339 } 00340 00341 if (predefined_type->type_two () != 0) 00342 {} 00343 00344 if (predefined_type->type_three () != 0) 00345 {} 00346 00347 // @@ Abt predefined PSDL_Nodes later. 00348 return 0; 00349 } |
|
Reimplemented in Dump_Visitor, and TAO_PSDL_Scope_Visitor. Definition at line 409 of file PSDL_Node_Visitor.cpp. Referenced by TAO_PSDL_Primary_Expr::accept().
00409 { return 0; }
|
|
Reimplemented in Dump_Visitor, and TAO_PSDL_Scope_Visitor. Definition at line 186 of file PSDL_Node_Visitor.cpp. Referenced by TAO_PSDL_Primary_Key_Dcl::accept().
00187 {
00188 return 0;
00189 }
|
|
Reimplemented in Dump_Visitor, and TAO_PSDL_Scope_Visitor. Definition at line 446 of file PSDL_Node_Visitor.cpp. Referenced by TAO_PSDL_Provides_Dcl::accept().
00446 { return 0; }
|
|
Reimplemented in Dump_Visitor, and TAO_PSDL_Scope_Visitor. Definition at line 174 of file PSDL_Node_Visitor.cpp. Referenced by TAO_PSDL_Psdl_Concrete_State_Type::accept().
00174 { return 0; }
|
|
Reimplemented in Dump_Visitor, and TAO_PSDL_Scope_Visitor. Definition at line 106 of file PSDL_Node_Visitor.cpp. Referenced by TAO_PSDL_Psdl_State_Dcl::accept().
00107 {
00108 return 0;
00109 }
|
|
Reimplemented in Dump_Visitor, and TAO_PSDL_Scope_Visitor. Definition at line 112 of file PSDL_Node_Visitor.cpp. Referenced by TAO_PSDL_Psdl_State_Type_Spec::accept().
00113 {
00114 return 0;
00115 }
|
|
Reimplemented in Dump_Visitor, and TAO_PSDL_Scope_Visitor. Definition at line 450 of file PSDL_Node_Visitor.cpp. Referenced by TAO_PSDL_Raises_Expr::accept().
00450 { return 0; }
|
|
Reimplemented in Dump_Visitor, and TAO_PSDL_Scope_Visitor. Definition at line 175 of file PSDL_Node_Visitor.cpp. Referenced by TAO_PSDL_Ref_Rep_Directive::accept().
00175 { return 0; }
|
|
Reimplemented in Dump_Visitor, and TAO_PSDL_Scope_Visitor. Definition at line 546 of file PSDL_Node_Visitor.cpp. Referenced by TAO_PSDL_Scoped_Name::accept().
00546 { return 0; }
|
|
Reimplemented in Dump_Visitor, and TAO_PSDL_Scope_Visitor. Definition at line 405 of file PSDL_Node_Visitor.cpp. Referenced by TAO_PSDL_Shift_Expr::accept().
00405 { return 0; }
|
|
Reimplemented in Dump_Visitor, and TAO_PSDL_Scope_Visitor. Definition at line 296 of file PSDL_Node_Visitor.cpp. References TAO_PSDL_Node::accept(), TAO_PSDL_Simple_Declarator::identifier(), and TAO_PSDL_Simple_Declarator::simple_declarator(). Referenced by TAO_PSDL_Simple_Declarator::accept().
00297 { 00298 if (simple_declarator->identifier ()->accept (this) == -1) 00299 return -1; 00300 00301 if (simple_declarator->simple_declarator () != 0) 00302 { 00303 if (simple_declarator->simple_declarator ()->accept (this) == -1) 00304 return -1; 00305 } 00306 00307 return 0; 00308 } |
|
Reimplemented in Dump_Visitor, and TAO_PSDL_Scope_Visitor. Definition at line 311 of file PSDL_Node_Visitor.cpp. Referenced by TAO_PSDL_Simple_Declarator_List::accept().
00311 { return 0; }
|
|
Reimplemented in Dump_Visitor, and TAO_PSDL_Scope_Visitor. Definition at line 239 of file PSDL_Node_Visitor.cpp. References TAO_PSDL_Node::accept(), and TAO_PSDL_Simple_Type_Spec::type_of_simple_type_spec(). Referenced by TAO_PSDL_Simple_Type_Spec::accept().
00240 { 00241 if (simple_type_spec->type_of_simple_type_spec ()->accept (this) == -1) 00242 return -1; 00243 00244 return 0; 00245 } |
|
Reimplemented in Dump_Visitor, and TAO_PSDL_Scope_Visitor. Definition at line 23 of file PSDL_Node_Visitor.cpp. References TAO_PSDL_Node::accept(), TAO_PSDL_Specification::definition(), and TAO_PSDL_Specification::specification(). Referenced by TAO_PSDL_Specification::accept().
00024 { 00025 if (specification->definition ()->accept (this) == -1) 00026 return -1; 00027 00028 if (specification->specification () != 0) 00029 { 00030 if (specification->specification ()->accept (this) == -1) 00031 return -1; 00032 } 00033 return 0; 00034 } |
|
Reimplemented in Dump_Visitor, and TAO_PSDL_Scope_Visitor. Definition at line 561 of file PSDL_Node_Visitor.cpp. Referenced by TAO_PSDL_State_Member::accept().
00561 { return 0; }
|
|
Reimplemented in Dump_Visitor, and TAO_PSDL_Scope_Visitor. Definition at line 176 of file PSDL_Node_Visitor.cpp. Referenced by TAO_PSDL_Storagehome::accept().
00176 { return 0; }
|
|
Reimplemented in Dump_Visitor, and TAO_PSDL_Scope_Visitor. Definition at line 178 of file PSDL_Node_Visitor.cpp. Referenced by TAO_PSDL_Storagehome_Body::accept().
00178 { return 0; }
|
|
Reimplemented in Dump_Visitor, and TAO_PSDL_Scope_Visitor. Definition at line 177 of file PSDL_Node_Visitor.cpp. Referenced by TAO_PSDL_Storagehome_Header::accept().
00177 { return 0; }
|
|
Reimplemented in Dump_Visitor, and TAO_PSDL_Scope_Visitor. Definition at line 183 of file PSDL_Node_Visitor.cpp. Referenced by TAO_PSDL_Storagehome_Impl_Spec::accept().
00183 { return 0; }
|
|
Reimplemented in Dump_Visitor, and TAO_PSDL_Scope_Visitor. Definition at line 180 of file PSDL_Node_Visitor.cpp. Referenced by TAO_PSDL_Storagehome_Inh_Spec::accept().
00180 { return 0; }
|
|
Reimplemented in Dump_Visitor, and TAO_PSDL_Scope_Visitor. Definition at line 179 of file PSDL_Node_Visitor.cpp. Referenced by TAO_PSDL_Storagehome_Member::accept().
00179 { return 0; }
|
|
Reimplemented in Dump_Visitor, and TAO_PSDL_Scope_Visitor. Definition at line 181 of file PSDL_Node_Visitor.cpp. Referenced by TAO_PSDL_Storagehome_Name::accept().
00181 { return 0; }
|
|
Reimplemented in Dump_Visitor, and TAO_PSDL_Scope_Visitor. Definition at line 445 of file PSDL_Node_Visitor.cpp. Referenced by TAO_PSDL_Storagehome_Scope::accept().
00445 { return 0; }
|
|
Reimplemented in Dump_Visitor, and TAO_PSDL_Scope_Visitor. Definition at line 440 of file PSDL_Node_Visitor.cpp. Referenced by TAO_PSDL_Storagetype::accept().
00440 { return 0; }
|
|
Reimplemented in Dump_Visitor, and TAO_PSDL_Scope_Visitor. Definition at line 444 of file PSDL_Node_Visitor.cpp. Referenced by TAO_PSDL_Storagetype_Body::accept().
00444 { return 0; }
|
|
Reimplemented in Dump_Visitor, and TAO_PSDL_Scope_Visitor. Definition at line 441 of file PSDL_Node_Visitor.cpp. Referenced by TAO_PSDL_Storagetype_Dcl::accept().
00441 { return 0; }
|
|
Reimplemented in Dump_Visitor, and TAO_PSDL_Scope_Visitor. Definition at line 442 of file PSDL_Node_Visitor.cpp. Referenced by TAO_PSDL_Storagetype_Fwd_Dcl::accept().
00442 { return 0; }
|
|
Reimplemented in Dump_Visitor, and TAO_PSDL_Scope_Visitor. Definition at line 443 of file PSDL_Node_Visitor.cpp. Referenced by TAO_PSDL_Storagetype_Header::accept().
00443 { return 0; }
|
|
Reimplemented in Dump_Visitor, and TAO_PSDL_Scope_Visitor. Definition at line 171 of file PSDL_Node_Visitor.cpp. Referenced by TAO_PSDL_Storagetype_Impl_Spec::accept().
00171 { return 0; }
|
|
Reimplemented in Dump_Visitor, and TAO_PSDL_Scope_Visitor. Definition at line 169 of file PSDL_Node_Visitor.cpp. Referenced by TAO_PSDL_Storagetype_Inh_Spec::accept().
00169 { return 0; }
|
|
Reimplemented in Dump_Visitor, and TAO_PSDL_Scope_Visitor. Definition at line 168 of file PSDL_Node_Visitor.cpp. Referenced by TAO_PSDL_Storagetype_Member::accept().
00168 { return 0; }
|
|
Reimplemented in Dump_Visitor, and TAO_PSDL_Scope_Visitor. Definition at line 170 of file PSDL_Node_Visitor.cpp. Referenced by TAO_PSDL_Storagetype_Name::accept().
00170 { return 0; }
|
|
Reimplemented in Dump_Visitor, and TAO_PSDL_Scope_Visitor. Definition at line 172 of file PSDL_Node_Visitor.cpp. Referenced by TAO_PSDL_Storagetype_Ref_Type::accept().
00172 { return 0; }
|
|
Reimplemented in Dump_Visitor, and TAO_PSDL_Scope_Visitor. Definition at line 173 of file PSDL_Node_Visitor.cpp. Referenced by TAO_PSDL_Store_Directive::accept().
00173 { return 0; }
|
|
Reimplemented in Dump_Visitor, and TAO_PSDL_Scope_Visitor. Definition at line 391 of file PSDL_Node_Visitor.cpp. Referenced by TAO_PSDL_Switch_Body::accept().
00392 {
00393 return 0;
00394 }
|
|
Reimplemented in Dump_Visitor, and TAO_PSDL_Scope_Visitor. Definition at line 385 of file PSDL_Node_Visitor.cpp. Referenced by TAO_PSDL_Switch_Type_Spec::accept().
00386 {
00387 return 0;
00388 }
|
|
Reimplemented in Dump_Visitor, and TAO_PSDL_Scope_Visitor. Definition at line 259 of file PSDL_Node_Visitor.cpp. References TAO_PSDL_Node::accept(), and TAO_PSDL_Template_Type_Spec::type_of_template_type_spec(). Referenced by TAO_PSDL_Template_Type_Spec::accept().
00260 { 00261 if (template_type_spec->type_of_template_type_spec ()->accept (this) == -1) 00262 return -1; 00263 00264 return 0; 00265 } |
|
Reimplemented in Dump_Visitor, and TAO_PSDL_Scope_Visitor. Definition at line 207 of file PSDL_Node_Visitor.cpp. References TAO_PSDL_Node::accept(), and TAO_PSDL_Type_Dcl::type_of_type_dcl(). Referenced by TAO_PSDL_Type_Dcl::accept().
00208 { 00209 if (type_dcl->type_of_type_dcl ()->accept (this) == -1) 00210 return -1; 00211 00212 return 0; 00213 } |
|
Reimplemented in Dump_Visitor, TAO_PSDL_Scope_Visitor, TAO_PSDL_Type_Dcl_Visitor, and TAO_PSDL_Typecode_Defn. Definition at line 216 of file PSDL_Node_Visitor.cpp. References TAO_PSDL_Visitor_Factory::make_visitor(), node_visitor_, TAO_PSDL_TYPEDEF, and visitor_factory_. Referenced by TAO_PSDL_Type_Declarator::accept().
00217 { 00218 int type = TAO_PSDL_TYPEDEF; 00219 this->node_visitor_ = 00220 this->visitor_factory_->make_visitor (type); 00221 00222 // Generates code into the client header 00223 if (this->node_visitor_ != 0) 00224 return this->node_visitor_->visit_type_declarator (type_declarator); 00225 else 00226 return -1; 00227 } |
|
Reimplemented in Dump_Visitor, TAO_PSDL_Scope_Visitor, and TAO_PSDL_Struct_Visitor. Definition at line 230 of file PSDL_Node_Visitor.cpp. References TAO_PSDL_Node::accept(), and TAO_PSDL_Type_Spec::type_of_type_spec(). Referenced by TAO_PSDL_Type_Spec::accept().
00231 { 00232 if (type_spec->type_of_type_spec ()->accept (this) == -1) 00233 return -1; 00234 00235 return 0; 00236 } |
|
Reimplemented in Dump_Visitor, and TAO_PSDL_Scope_Visitor. Definition at line 408 of file PSDL_Node_Visitor.cpp. Referenced by TAO_PSDL_Unary_Expr::accept().
00408 { return 0; }
|
|
Reimplemented in Dump_Visitor, and TAO_PSDL_Scope_Visitor. Definition at line 379 of file PSDL_Node_Visitor.cpp. Referenced by TAO_PSDL_Union_Type::accept().
00380 {
00381 return 0;
00382 }
|
|
Reimplemented in Dump_Visitor, and TAO_PSDL_Scope_Visitor. Definition at line 547 of file PSDL_Node_Visitor.cpp. Referenced by TAO_PSDL_Value::accept().
00547 { return 0; }
|
|
Reimplemented in Dump_Visitor, and TAO_PSDL_Scope_Visitor. Definition at line 551 of file PSDL_Node_Visitor.cpp. Referenced by TAO_PSDL_Value_Abs_Dcl::accept().
00551 { return 0; }
|
|
Reimplemented in Dump_Visitor, and TAO_PSDL_Scope_Visitor. Definition at line 550 of file PSDL_Node_Visitor.cpp. Referenced by TAO_PSDL_Value_Box_Dcl::accept().
00550 { return 0; }
|
|
Reimplemented in Dump_Visitor, and TAO_PSDL_Scope_Visitor. Definition at line 548 of file PSDL_Node_Visitor.cpp. Referenced by TAO_PSDL_Value_Common_Base::accept().
00548 { return 0; }
|
|
Reimplemented in Dump_Visitor, and TAO_PSDL_Scope_Visitor. Definition at line 552 of file PSDL_Node_Visitor.cpp. Referenced by TAO_PSDL_Value_Dcl::accept().
00552 { return 0; }
|
|
Reimplemented in Dump_Visitor, and TAO_PSDL_Scope_Visitor. Definition at line 556 of file PSDL_Node_Visitor.cpp. Referenced by TAO_PSDL_Value_Element::accept().
00556 { return 0; }
|
|
Reimplemented in Dump_Visitor, and TAO_PSDL_Scope_Visitor. Definition at line 549 of file PSDL_Node_Visitor.cpp. Referenced by TAO_PSDL_Value_Forward_Dcl::accept().
00549 { return 0; }
|
|
Reimplemented in Dump_Visitor, and TAO_PSDL_Scope_Visitor. Definition at line 553 of file PSDL_Node_Visitor.cpp. Referenced by TAO_PSDL_Value_Header::accept().
00553 { return 0; }
|
|
Reimplemented in Dump_Visitor, and TAO_PSDL_Scope_Visitor. Definition at line 554 of file PSDL_Node_Visitor.cpp. Referenced by TAO_PSDL_Value_Inheritance_Spec::accept().
00554 { return 0; }
|
|
Reimplemented in Dump_Visitor, and TAO_PSDL_Scope_Visitor. Definition at line 555 of file PSDL_Node_Visitor.cpp. Referenced by TAO_PSDL_Value_Name::accept().
00555 { return 0; }
|
|
Reimplemented in Dump_Visitor, and TAO_PSDL_Scope_Visitor. Definition at line 403 of file PSDL_Node_Visitor.cpp. Referenced by TAO_PSDL_Xor_Expr::accept().
00403 { return 0; }
|
|
Definition at line 363 of file PSDL_Node_Visitor.h. |
|
Definition at line 361 of file PSDL_Node_Visitor.h. |
|
Definition at line 364 of file PSDL_Node_Visitor.h. Referenced by visit_except_dcl(), visit_forward_dcl(), visit_interface_dcl(), visit_interface_header(), visit_module(), visit_predefined_type(), and visit_type_declarator(). |
|
Definition at line 362 of file PSDL_Node_Visitor.h. |
|
Definition at line 365 of file PSDL_Node_Visitor.h. Referenced by visit_except_dcl(), visit_forward_dcl(), visit_interface_dcl(), visit_interface_header(), visit_module(), visit_predefined_type(), and visit_type_declarator(). |