summaryrefslogtreecommitdiff
path: root/TAO/TAO_IDL/be/be_finder.cpp
blob: 80540a5a1db11a5bbda9400d5bab824676cb5156 (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

//=============================================================================
/**
 *  @file    be_finder.cpp
 *
 *  Extension of class AST_Finder that provides additional means for C++
 *  mapping.
 *
 *  @author Jeff Parsons
 */
//=============================================================================


#include "be_finder.h"
#include "be_visitor.h"

be_finder::be_finder (UTL_ScopedName *n)
  : COMMON_Base (1,
                 0), //@@ Always local, never abstract
    AST_Decl (AST_Decl::NT_finder,
              n),
    UTL_Scope (AST_Decl::NT_finder),
    AST_Factory (n),
    AST_Finder (n),
    be_scope (AST_Decl::NT_finder),
    be_decl (AST_Decl::NT_finder,
             n),
    be_factory (n)
{
}

be_finder::~be_finder (void)
{
}

void
be_finder::destroy (void)
{
  // Call the destroy methods of our base classes.
  this->be_factory::destroy ();
  this->AST_Finder::destroy ();
}

int
be_finder::accept (be_visitor *visitor)
{
  return visitor->visit_finder (this);
}