summaryrefslogtreecommitdiff
path: root/TAO/TAO_IDL/include/ast_union_fwd.h
blob: 96115d06b327965619dcf48a8400a65b2a8cd3e8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
// This may look like C, but it's really -*- C++ -*-
// $Id$

#ifndef _AST_UNION_FWD_AST_UNION_FWD_HH
#define _AST_UNION_FWD_AST_UNION_FWD_HH

#include "ast_type.h"

class AST_Union;

// Representation of a forward union declaration.

class TAO_IDL_FE_Export AST_UnionFwd : public virtual AST_Type
{
public:
  AST_UnionFwd (void);

  AST_UnionFwd (UTL_ScopedName *n);

  virtual ~AST_UnionFwd (void);

  AST_Union *full_definition (void);
  void set_full_definition (AST_Union *nfd);

  virtual idl_bool is_defined (void);

  // Cleanup function.
  virtual void destroy (void);

  // Narrowing.
  DEF_NARROW_METHODS1(AST_UnionFwd, AST_Type);
  DEF_NARROW_FROM_DECL(AST_UnionFwd);

  // AST Dumping.
  virtual void dump (ACE_OSTREAM_TYPE &);

  // Visiting.
  virtual int ast_accept (ast_visitor *visitor);

private:
  AST_Union *pd_full_definition;
  // The union this is a forward declaration of.
};

#endif           // _AST_UNION_FWD_AST_UNION_FWD_HH