diff options
author | parsons <parsons@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2000-10-04 00:25:03 +0000 |
---|---|---|
committer | parsons <parsons@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2000-10-04 00:25:03 +0000 |
commit | 2995c5b989a589a2a4c30a7b0c2ab72c61afaa94 (patch) | |
tree | 50b7dff62cf271729a43b2c110fa219946ebac6d /TAO/TAO_IDL/include/ast_module.h | |
parent | b6512b499b2a84c0520116d18d96c6014dea7d65 (diff) | |
download | ATCD-2995c5b989a589a2a4c30a7b0c2ab72c61afaa94.tar.gz |
ChangeLogTag: Tue Oct 3 19:20:14 2000 Jeff Parsons <parsons@cs.wustl.edu>
Diffstat (limited to 'TAO/TAO_IDL/include/ast_module.h')
-rw-r--r-- | TAO/TAO_IDL/include/ast_module.h | 71 |
1 files changed, 38 insertions, 33 deletions
diff --git a/TAO/TAO_IDL/include/ast_module.h b/TAO/TAO_IDL/include/ast_module.h index 24922866297..7b8959b053c 100644 --- a/TAO/TAO_IDL/include/ast_module.h +++ b/TAO/TAO_IDL/include/ast_module.h @@ -62,53 +62,48 @@ NOTE: SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are trademarks or registered trademarks of Sun Microsystems, Inc. - */ +*/ #ifndef _AST_MODULE_AST_MODULE_HH #define _AST_MODULE_AST_MODULE_HH -// Representation of module +// Representation of module. // // NOTE: add(AST_EnumValue *) is defined here because enums can // be defined manifest locally; the constants defined in these // enums are inserted in the enclosing scope. -/* -** DEPENDENCIES: ast_decl.hh, utl_scope.hh, utl_scoped_name.hh, utl_strlist.hh -** -** USE: Included from ast.hh -*/ - class TAO_IDL_FE_Export AST_Module : public virtual AST_Decl, public virtual UTL_Scope { public: - // Operations + // Operations. - // Constructor(s) - AST_Module (); + // Constructor(s) and destructor. + AST_Module (void); AST_Module (UTL_ScopedName *n, UTL_StrList *p); virtual ~AST_Module (void); - // Narrowing + // Narrowing. DEF_NARROW_METHODS2(AST_Module, AST_Decl, UTL_Scope); DEF_NARROW_FROM_DECL(AST_Module); DEF_NARROW_FROM_SCOPE(AST_Module); - // AST Dumping - virtual void dump(ostream &o); + // AST Dumping. + virtual void dump (ostream &o); - // involved in OBV_ namespace generation - void set_has_nested_valuetype (); - idl_bool has_nested_valuetype (); + // Involved in OBV_ namespace generation. + void set_has_nested_valuetype (void); + idl_bool has_nested_valuetype (void); // Allows adding an interface to a later point // The interface i is inserted after interface ix, if // ix is not null. - int be_add_interface (AST_Interface *i, AST_Interface *ix = 0); + int be_add_interface (AST_Interface *i, + AST_Interface *ix = 0); // The first time 'module CORBA' is seen, add predefined types // TypeCode, TCKind and ValueBase to its scope. @@ -127,24 +122,34 @@ public: virtual void destroy (void); private: - friend void fe_populate(AST_Module *m); - friend int tao_yyparse(); + friend void fe_populate (AST_Module *m); + friend int tao_yyparse (void); // Scope Management Protocol - virtual AST_PredefinedType *fe_add_predefined_type(AST_PredefinedType *t); - virtual AST_Module *fe_add_module(AST_Module *m); - // Add the current interface i before interface ix - virtual AST_Interface *fe_add_interface(AST_Interface *i); - virtual AST_InterfaceFwd *fe_add_interface_fwd(AST_InterfaceFwd *i); - virtual AST_Constant *fe_add_constant(AST_Constant *c); - virtual AST_Exception *fe_add_exception(AST_Exception *e); - virtual AST_Union *fe_add_union(AST_Union *u); - virtual AST_Structure *fe_add_structure(AST_Structure *s); - virtual AST_Enum *fe_add_enum(AST_Enum *e); - virtual AST_EnumVal *fe_add_enum_val(AST_EnumVal *v); - virtual AST_Typedef *fe_add_typedef(AST_Typedef *t); - virtual AST_Native *fe_add_native (AST_Native *n); + virtual AST_PredefinedType *fe_add_predefined_type (AST_PredefinedType *t); + + virtual AST_Module *fe_add_module (AST_Module *m); + + virtual AST_Interface *fe_add_interface (AST_Interface *i); + + virtual AST_InterfaceFwd *fe_add_interface_fwd (AST_InterfaceFwd *i); + + virtual AST_Constant *fe_add_constant (AST_Constant *c); + + virtual AST_Exception *fe_add_exception (AST_Exception *e); + + virtual AST_Union *fe_add_union (AST_Union *u); + + virtual AST_Structure *fe_add_structure (AST_Structure *s); + + virtual AST_Enum *fe_add_enum (AST_Enum *e); + + virtual AST_EnumVal *fe_add_enum_val (AST_EnumVal *v); + + virtual AST_Typedef *fe_add_typedef (AST_Typedef *t); + + virtual AST_Native *fe_add_native (AST_Native *n); idl_bool pd_has_nested_valuetype; |