Polaris: GSAPathMap.cc Source File

GSAPathMap.cc

Go to the documentation of this file.
00001 ///
00002 #ifdef POLARIS_GNU_PRAGMAS
00003 #pragma implementation
00004 #endif
00005 ///
00006 #include <stream.h>
00007 
00008 #include "Collection/Map.h"
00009 
00010 #include "GSAPathMap.h"
00011 
00012 template class Map<Statement,GSAPathMap>;
00013 template class ProtoMap<Statement,GSAPathMap>;
00014 template class TypedBaseMap<Statement,GSAPathMap>;
00015 template class KeyIterator<Statement,GSAPathMap>;
00016 template ostream & operator << (ostream &, const Map<Statement,GSAPathMap> &);
00017 
00018 void
00019 GSAPathMap::print(ostream &o) const
00020 {
00021     for (int i=0; i<children.entries(); ++i)
00022         if (children[i]) o << i << *children[i] << endl;
00023 }
00024 
00025 ostream & operator << (ostream &o, const GSAPathMap &a)
00026 {
00027     a.print(o);
00028     return o;
00029 }
00030 
 © 1995-2005 University of Illinois, Urbana-Champaign. All rights reserved.  Fri Mar 25 23:05:54 2005