ROSE
0.9.6a
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
AstNodePtrs.h
Go to the documentation of this file.
1
// Author: Markus Schordan
2
// $Id: AstNodePtrs.h,v 1.3 2008/01/08 02:56:38 dquinlan Exp $
3
4
#ifndef ASTNODEPTRS_H
5
#define ASTNODEPTRS_H
6
7
#include <string>
8
#include <iomanip>
9
#include "
AstProcessing.h
"
10
11
// DQ (8/10/2004):
12
// This class appears to return a list of all traversed AST nodes. It is equivalent to the
13
// AstQuery operator with the input variant V_SgNode. Not sure how important this mechanism
14
// is (appears to be used in ASTConsistencyTests.[Ch]).
15
16
struct
AstNodePtrSynAttr
17
{
18
SgNode
*
node
;
19
AstNodePtrSynAttr
() {
node
= NULL; }
20
};
21
22
class
AstNodePtrs
:
public
SgBottomUpProcessing
<AstNodePtrSynAttr>
23
{
24
public
:
25
AstNodePtrs
();
26
~AstNodePtrs
();
27
protected
:
28
typedef
std::vector<SgNode*>
AstNodePointersList
;
29
virtual
AstNodePtrSynAttr
evaluateSynthesizedAttribute
(
SgNode
* node,
SynthesizedAttributesList
);
30
virtual
void
visitWithAstNodePointersList
(
SgNode
* node,
AstNodePointersList
l) {}
31
private
:
32
};
33
34
#endif
rose-edg4x
src
midend
astProcessing
AstNodePtrs.h
Generated on Mon May 5 2014 17:28:49 for ROSE by
1.8.4