| Polaris: DefLoc.cc Source File | ||
|
Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members
DefLoc.ccGo to the documentation of this file.00001 /// 00002 #ifdef POLARIS_GNU_PRAGMAS 00003 #pragma implementation 00004 #endif 00005 /// 00006 #include "ProgramUnit.h" 00007 #include "Expression/Expression.h" 00008 #include "Expression/IDExpr.h" 00009 #include "Statement/AssignmentStmt.h" 00010 00011 #include "DefLoc.h" 00012 00013 template class Map<Symbol,DefLoc>; 00014 template class ProtoMap<Symbol,DefLoc>; 00015 template class TypedBaseMap<Symbol,DefLoc>; 00016 template class KeyIterator<Symbol,DefLoc>; 00017 template ostream & operator << (ostream &, const Map<Symbol,DefLoc> &); 00018 00019 ostream & 00020 operator << (ostream & o, const DefLoc & p) 00021 { 00022 p.print(o); 00023 00024 return o; 00025 } 00026 00027 Listable * 00028 DefLoc::listable_clone() const 00029 { 00030 return new DefLoc(*this); 00031 } 00032 00033 int 00034 DefLoc::structures_OK() const 00035 { 00036 return 1; 00037 } 00038 00039 void 00040 DefLoc::print(ostream & o) const 00041 { 00042 o << "Defined in: "; 00043 if (_st.valid()) 00044 o << *_st; 00045 o << endl; 00046 } |
||
|