2 //=============================================================================
6 * Extension of class AST_Array that provides additional means for C++
9 * @author Copyright 1994-1995 by Sun Microsystems
10 * @author Inc. and Aniruddha Gokhale
12 //=============================================================================
18 #include "ast_array.h"
24 class be_array
: public virtual AST_Array
,
25 public virtual be_type
28 be_array (UTL_ScopedName
*n
,
34 ~be_array () override
= default;
36 /// Generate dimensions. If slice == 1, generate dimensions for the slice
38 int gen_dimensions (TAO_OutStream
*os
,
39 unsigned short slice
= 0);
41 /// Overridden from class be_type.
42 void gen_ostream_operator (TAO_OutStream
*os
,
43 bool use_underscore
) override
;
44 void gen_member_ostream_operator (TAO_OutStream
*os
,
45 const char *instance_name
,
47 bool accessor
) override
;
50 int accept (be_visitor
*visitor
) override
;
53 void destroy () override
;
56 /// Create a name for us.
57 virtual int create_name ();
59 void compute_tc_name () override
;