summaryrefslogtreecommitdiff
path: root/TAO/TAO_IDL/be_include/be_visitor_valuetype/valuetype.h
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/TAO_IDL/be_include/be_visitor_valuetype/valuetype.h')
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_valuetype/valuetype.h98
1 files changed, 52 insertions, 46 deletions
diff --git a/TAO/TAO_IDL/be_include/be_visitor_valuetype/valuetype.h b/TAO/TAO_IDL/be_include/be_visitor_valuetype/valuetype.h
index c07e68b2001..e88c4509dfb 100644
--- a/TAO/TAO_IDL/be_include/be_visitor_valuetype/valuetype.h
+++ b/TAO/TAO_IDL/be_include/be_visitor_valuetype/valuetype.h
@@ -1,111 +1,117 @@
+//
+// $Id$
+//
/* -*- c++ -*- */
-//=============================================================================
-/**
- * @file valuetype.h
- *
- * $Id$
- *
- * Concrete visitor for the Valuetype node.
- * This one provides the generic visitor for valuetypes from which others
- * will inherit.
- *
- *
- * @author Torsten Kuepper <kuepper2@lfa.uni-wuppertal.de> based on interface.h from Aniruddha Gokhale
- */
-//=============================================================================
-
+// ============================================================================
+//
+// = LIBRARY
+// TAO IDL
+//
+// = FILENAME
+// valuetype.h
+//
+// = DESCRIPTION
+// Concrete visitor for the Valuetype node.
+// This one provides the generic visitor for valuetypes from which others
+// will inherit.
+//
+// = AUTHOR
+// Torsten Kuepper <kuepper2@lfa.uni-wuppertal.de>
+// based on interface.h from Aniruddha Gokhale
+//
+// ============================================================================
#ifndef _BE_VALUETYPE_VALUETYPE_H_
#define _BE_VALUETYPE_VALUETYPE_H_
-/**
- * @class be_visitor_valuetype
- *
- * @brief be_visitor_valuetype
- *
- * This is a concrete visitor for valuetype that abstracts all common tasks
- */
class be_visitor_valuetype : public be_visitor_scope
{
+ //
+ // = TITLE
+ // be_visitor_valuetype
+ //
+ // = DESCRIPTION
+ // This is a concrete visitor for valuetype that abstracts all common tasks
+ //
public:
- /// constructor
be_visitor_valuetype (be_visitor_context *ctx);
+ // constructor
- /// destructor
~be_visitor_valuetype (void);
+ // destructor
public:
- /// visit the scope of the valuetype node
- /// (in public/private field order)
virtual int visit_valuetype_scope (be_valuetype *node);
+ // visit the scope of the valuetype node
+ // (in public/private field order)
virtual void begin_public ();
virtual void begin_private ();
// =visit methods on all elements syntactically valid in a Valuetype scope
- /// visit attribute
virtual int visit_attribute (be_attribute *node);
+ // visit attribute
- /// visit a constant
virtual int visit_constant (be_constant *node);
+ // visit a constant
- /// visit an enum
virtual int visit_enum (be_enum *node);
+ // visit an enum
- /// visit exception (not used)
virtual int visit_exception (be_exception *node);
+ // visit exception (not used)
- /// visit a structure
virtual int visit_structure (be_structure *node);
+ // visit a structure
- /// visit a forward declared structure
virtual int visit_structure_fwd (be_structure_fwd *node);
+ // visit a forward declared structure
- /// visit a union
virtual int visit_union (be_union *node);
+ // visit a union
- /// visit a forward declared union
virtual int visit_union_fwd (be_union_fwd *node);
+ // visit a forward declared union
- /// visit the typedef node
virtual int visit_typedef (be_typedef *node);
+ // visit the typedef node
- /// visit a field
virtual int visit_field (be_field *node);
+ // visit a field
// =helper methods for generation of fields
- /// private data fields for scope
int gen_pd (be_valuetype *node);
+ // private data fields for scope
- /// private data for field
int gen_field_pd (be_field *node);
+ // private data for field
- /// generate the _init class definition
virtual int gen_init_defn (be_valuetype *node);
+ // generate the _init class definition
- /// generate the _init implementation
virtual int gen_init_impl (be_valuetype *node);
+ // generate the _init implementation
- /// Recursively generate args for the initializing constuctor.
void gen_obv_init_constructor_args (be_valuetype *node,
unsigned long &index);
+ // Recursively generate args for the initializing constuctor.
protected:
- /// check is VT needs a RefCounter mix-in in OBV_ class
- /// suppose that we are deciding for this node
static bool obv_need_ref_counter (be_valuetype *node);
+ // check is VT needs a RefCounter mix-in in OBV_ class
+ // suppose that we are deciding for this node
- /// recurse down the inheritance tree to see
- /// if node or one of its OBV_ base class already has RefCounter
static bool obv_have_ref_counter (be_valuetype *node);
+ // recurse down the inheritance tree to see
+ // if node or one of its OBV_ base class already has RefCounter
- /// Predicate common to _ch and _cs visitors.
bool is_amh_exception_holder (be_valuetype *node);
+ // Predicate common to _ch and _cs visitors.
};
#endif /* _BE_VALUETYPE_VALUETYPE_H_ */