Revert "Use a variable on the stack to not have a temporary in the call"
[ACE_TAO.git] / TAO / TAO_IDL / be / be_native.cpp
blob8bc0e1eb352df4d37377eb7ee21e6313d53f7ac7
2 //=============================================================================
3 /**
4 * @file be_native.cpp
6 * The native IDL type
8 * @author Aniruddha Gokhale
9 */
10 //=============================================================================
12 #include "be_native.h"
13 #include "be_visitor.h"
15 be_native::be_native (UTL_ScopedName *n)
16 : COMMON_Base (),
17 AST_Decl (AST_Decl::NT_native,
18 n),
19 AST_Type (AST_Decl::NT_native,
20 n),
21 AST_ConcreteType (AST_Decl::NT_native,
22 n),
23 UTL_Scope (AST_Decl::NT_native),
24 AST_Structure (AST_Decl::NT_native,
26 true,
27 false),
28 AST_Exception (n,
29 true,
30 false),
31 AST_Native (n),
32 be_decl (AST_Decl::NT_native,
33 n),
34 be_type (AST_Decl::NT_native,
35 n),
36 be_structure (n,
37 true,
38 false),
39 be_exception (n,
40 true,
41 false)
45 int
46 be_native::gen_typecode ()
48 return 0;
51 long
52 be_native::tc_size ()
54 return 0;
57 void
58 be_native::destroy ()
60 this->be_exception::destroy ();
61 this->AST_Native::destroy ();
64 int
65 be_native::accept (be_visitor *visitor)
67 return visitor->visit_native (this);