2 //=============================================================================
4 * @file be_union_branch.h
6 * Extension of class AST_UnionBranch that provides additional means for C++
9 * @author Copyright 1994-1995 by Sun Microsystems
10 * @author Inc. and Aniruddha Gokhale
12 //=============================================================================
14 #ifndef BE_UNION_BRANCH_H
15 #define BE_UNION_BRANCH_H
18 #include "ast_union_branch.h"
26 class be_union_branch
: public virtual AST_UnionBranch
,
27 public virtual be_field
30 be_union_branch (UTL_LabelList
*ll
,
34 /// Generate the label value (as in a switch/case statement).
35 int gen_label_value (TAO_OutStream
*os
,
36 unsigned long index
= 0);
38 /// Generate the default label value (as in a switch/case statement).
39 int gen_default_label_value (TAO_OutStream
*os
,
43 virtual int accept (be_visitor
*visitor
);
46 virtual void destroy (void);
49 DEF_NARROW_FROM_DECL (be_union_branch
);