00001 // chains.C 00002 // 00003 // 9/15/98 MDJ: The chains class holds both UDChains and DUChains. The 00004 // UDChains hold a chain of definitions that reach each use. Conversely 00005 // the DUChains hold a chain of uses for each definition. 00006 // 00007 00008 #include "chains.H" 00009 00010 // Constructor 00011 chains::chains() { 00012 00013 UDChains = new legoHash <legoOprd *, oprdList *, legoHash_lt_pointer>; 00014 DUChains = new legoHash <legoOprd *, oprdList *, legoHash_lt_pointer>; 00015 00016 } 00017 00018 // Copy Constructor 00019 //chains::chains( const chains &src ) { 00020 // 00021 // // Use the copy constructors of the STL data structures 00022 // UDChains = new legoHash <legoOprd *, oprdList *, legoHash_lt_pointer> (src->GetUDchains()); 00023 // DUChains = new legoHash <legoOprd *, oprdList *, legoHash_lt_pointer> (src->GetDUchains()); 00024 // 00025 //} 00026 00027 // Destructor 00028 chains::~chains() { 00029 00030 // for now assume that simple delete doesn't leak. Need to verify what 00031 // really happens in STL 00032 delete UDChains; 00033 delete DUChains; 00034 00035 } 00036
1.3.2