--- trunk/OOPSE/libmdtools/GenericData.cpp 2003/08/12 17:51:33 682 +++ trunk/OOPSE/libmdtools/GenericData.cpp 2004/04/19 03:52:27 1118 @@ -22,4 +22,23 @@ void ZConsParaData::sortByIndex(){ void ZConsParaData::sortByIndex(){ sort(data.begin(), data.end(), ZConsParaSortCriterion()); +} +bool ZConsParaData::isIndexUnique(){ + + for(int i = 0; i < (int)(data.size() - 1); i++) + for(int j = i + 1; j < (int)(data.size()); j++) + if(data[i].zconsIndex == data[j].zconsIndex) + return false; + + return true; +} + +AtomData::~AtomData(){ + vector::iterator i; + AtomInfo* atomInfo; + + for(atomInfo = beginAtomInfo(i); atomInfo; atomInfo = nextAtomInfo(i)) + delete atomInfo; + + data.clear(); } \ No newline at end of file