blob: 5abdba89e19b9eb8b38940595b331456d51c415e (
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
|
// This may look like C, but it's really -*- C++ -*-
#ifndef AST_TEMPLATE_MODULE_REF_H
#define AST_TEMPLATE_MODULE_REF_H
#include "ast_field.h"
#include "fe_utils.h"
class AST_Template_Module;
class TAO_IDL_FE_Export AST_Template_Module_Ref
: public virtual AST_Field
{
public:
AST_Template_Module_Ref (UTL_ScopedName *n,
AST_Template_Module *ref,
UTL_StrList *param_refs);
virtual ~AST_Template_Module_Ref (void);
AST_Template_Module *ref (void) const;
UTL_StrList *param_refs (void) const;
// Narrowing.
DEF_NARROW_FROM_DECL (AST_Template_Module_Ref);
// AST Dumping.
virtual void dump (ACE_OSTREAM_TYPE &o);
// Cleanup function.
virtual void destroy (void);
// Visiting.
virtual int ast_accept (ast_visitor *visitor);
// If IDL module has been created in a scope corresponding
// to this node. That's the one we want to match, NOT this
// AST_Template_Module_Ref, and it occurs in the scope right
// after this node, so we'll match what we're looking for on
// the next iteration of the search. So for this immediate
// adjustment we return no match.
virtual AST_Decl *adjust_found (bool ignore_fwd, bool full_def_only);
/// Accessors for the member.
bool processed (void) const;
void processed (bool val);
static AST_Decl::NodeType const NT;
private:
UTL_StrList *param_refs_;
/// Flag to prevent multiple module creations when we encounter
/// 'chained' alias declarations.
bool processed_;
};
#endif // AST_TEMPLATE_MODULE_REF_H
|