ROSE 0.11.145.192
AstNodeVisitMapping.h
1// Author: Markus Schordan
2// $Id: AstNodeVisitMapping.h,v 1.2 2006/04/24 00:21:32 dquinlan Exp $
3
4#ifndef ASTNODEVISITMAPPING_H
5#define ASTNODEVISITMAPPING_H
6
7#include <map>
8#include <string>
9#include "AstProcessing.h"
10
12public:
13 AstNodeVisitMapping(int pn):pagenum(pn) {}
14 typedef std::map<std::string,int> MappingType;
15 typedef MappingType::value_type MappingPairType;
16 MappingType address_pagenum;
17 int pagenum;
18 void visit(SgNode* node);
19};
20
21#endif
void visit(SgNode *node)
this method is called at every traversed node.
This class represents the base class for all IR nodes within Sage III.