00001 // Author: Markus Schordan 00002 // $Id: AstNodeVisitMapping.h,v 1.2 2006/04/24 00:21:32 dquinlan Exp $ 00003 00004 #ifndef ASTNODEVISITMAPPING_H 00005 #define ASTNODEVISITMAPPING_H 00006 00007 #include <map> 00008 #include <string> 00009 #include "AstProcessing.h" 00010 00011 class AstNodeVisitMapping : public SgSimpleProcessing { 00012 public: 00013 AstNodeVisitMapping(int pn):pagenum(pn) {} 00014 typedef std::map<std::string,int> MappingType; 00015 typedef MappingType::value_type MappingPairType; 00016 MappingType address_pagenum; 00017 int pagenum; 00018 void visit(SgNode* node); 00019 }; 00020 00021 #endif
1.4.7