blob: 045c1357e8b7994218dd587d92bae4e9a1387d3f (
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
|
// This may look like C, but it's really -*- C++ -*-
#ifndef _AST_HOME_AST_HOME_HH
#define _AST_HOME_AST_HOME_HH
#include "ast_interface.h"
class AST_Home;
class AST_Component;
class AST_ValueType;
class TAO_IDL_FE_Export AST_Home : public virtual AST_Interface
{
public:
AST_Home (UTL_ScopedName *n,
AST_Home *base_home,
AST_Component *managed_component,
AST_Type *primary_key,
AST_Type **supports,
long n_supports,
AST_Interface **supports_flat,
long n_supports_flat);
virtual ~AST_Home ();
// Extend lookup to the base home.
virtual AST_Decl *look_in_inherited (UTL_ScopedName *e,
bool full_def_only);
// Extend lookup to the supported interfaces.
virtual AST_Decl *look_in_supported (UTL_ScopedName *e,
bool full_def_only);
// Overridden for homes from the UTL_Scope method.
virtual AST_Decl *special_lookup (UTL_ScopedName *,
bool full_def_only,
AST_Decl *&final_parent_decl);
// Accessors.
AST_Home *base_home () const;
AST_Type **supports () const;
long n_supports () const;
AST_Component *managed_component () const;
AST_Type *primary_key () const;
void transfer_scope_elements (AST_Interface *dst);
// Cleanup function.
virtual void destroy ();
// AST Dumping.
virtual void dump (ACE_OSTREAM_TYPE &o);
// Visiting.
virtual int ast_accept (ast_visitor *visitor);
static AST_Decl::NodeType const NT;
private:
// Scope Management Protocol.
friend int tao_yyparse ();
friend class ast_visitor_tmpl_module_inst;
virtual AST_Factory *fe_add_factory (AST_Factory *f);
virtual AST_Finder *fe_add_finder (AST_Finder *f);
private:
AST_Home *pd_base_home;
AST_Component *pd_managed_component;
AST_Type *pd_primary_key;
bool owns_primary_key_;
};
#endif // _AST_HOME_AST_HOME_HH
|