Changes to attempt to silence bcc64x
[ACE_TAO.git] / TAO / TAO_IDL / be / be_uses.cpp
blob46e35d90690568dd619620998db5a819465f189b
1 #include "be_uses.h"
2 #include "be_interface.h"
3 #include "be_visitor.h"
5 be_uses::be_uses (UTL_ScopedName *n,
6 AST_Type *uses_type,
7 bool is_multiple)
8 : COMMON_Base (false,
9 false),
10 AST_Decl (AST_Decl::NT_uses,
11 n),
12 AST_Field (AST_Decl::NT_uses,
13 uses_type,
14 n),
15 AST_Uses (n,
16 uses_type,
17 is_multiple),
18 be_decl (AST_Decl::NT_uses,
19 n),
20 be_field (uses_type,
21 n),
22 original_uses_ (nullptr)
26 be_uses::~be_uses ()
30 be_type *
31 be_uses::uses_type () const
33 return
34 dynamic_cast<be_type*> (
35 this->AST_Uses::uses_type ());
38 int
39 be_uses::accept (be_visitor *visitor)
41 return visitor->visit_uses (this);
44 void
45 be_uses::destroy ()
47 this->AST_Uses::destroy ();
48 this->be_field::destroy ();
51 void
52 be_uses::original_uses (be_uses *original_uses)
54 this->original_uses_ = original_uses;
57 be_uses *
58 be_uses::original_uses ()
60 return this->original_uses_;