- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Graph/CheckAgainstAdjacencyFile.hpp
r13a953 rec87e4 16 16 #include <iosfwd> 17 17 #include <map> 18 #include <set> 19 20 #include "types.hpp" 21 #include "World.hpp" 18 22 19 23 class atom; … … 21 25 class CheckAgainstAdjacencyFile 22 26 { 27 //!> Unit test is granted access to internal data 28 friend class CheckAgainstAdjacencyFileTest; 23 29 public: 24 CheckAgainstAdjacencyFile( );30 CheckAgainstAdjacencyFile(World::AtomSet::const_iterator AtomMapBegin, World::AtomSet::const_iterator AtomMapEnd); 25 31 ~CheckAgainstAdjacencyFile(); 26 32 27 bool operator()(std::i fstream &File, std::map<int, atom*> ListOfAtoms);33 bool operator()(std::istream &File); 28 34 29 35 private: 30 enum {MAXBONDS=8}; 31 32 int *CurrentBonds; 36 typedef std::set<atomId_t> KeysSet; 37 typedef std::set<atomId_t> ValuesSet; 38 typedef std::pair<atomId_t, atomId_t> AtomBondPair; 39 typedef std::multimap< atomId_t, atomId_t > AtomBondMap; 40 typedef std::pair<AtomBondMap::const_iterator, AtomBondMap::const_iterator> AtomBondRange; 41 AtomBondMap InternalAtomBondMap; 42 AtomBondMap ExternalAtomBondMap; 33 43 bool status; 34 44 int NonMatchNumber; 35 45 36 void CompareBonds(const atom *&Walker, size_t &CurrentBondsOfAtom, int AtomNr, std::map<int, atom*> &ListOfAtoms); 46 void CreateInternalMap(World::AtomSet::const_iterator &AtomMapBegin, World::AtomSet::const_iterator &AtomMapEnd); 47 bool ParseInExternalMap(std::istream &File); 48 bool CompareInternalExternalMap(); 37 49 }; 38 50
Note:
See TracChangeset
for help on using the changeset viewer.