Changes in src/Graph/BondGraph.cpp [db7e6d:829761]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Graph/BondGraph.cpp
rdb7e6d r829761 26 26 #include "Graph/BondGraph.hpp" 27 27 #include "Box.hpp" 28 #include " element.hpp"28 #include "Element/element.hpp" 29 29 #include "CodePatterns/Info.hpp" 30 30 #include "CodePatterns/Log.hpp" … … 32 32 #include "CodePatterns/Verbose.hpp" 33 33 #include "molecule.hpp" 34 #include " parser.hpp"35 #include " periodentafel.hpp"34 #include "Element/periodentafel.hpp" 35 #include "Fragmentation/MatrixContainer.hpp" 36 36 #include "LinearAlgebra/Vector.hpp" 37 37 #include "World.hpp" … … 39 39 40 40 const double BondGraph::BondThreshold = 0.4; //!< CSD threshold in bond check which is the width of the interval whose center is the sum of the covalent radii 41 42 BondGraph::BondGraph() : 43 BondLengthMatrix(NULL), 44 IsAngstroem(true) 45 {} 41 46 42 47 BondGraph::BondGraph(bool IsA) : … … 47 52 BondGraph::~BondGraph() 48 53 { 54 CleanupBondLengthTable(); 55 } 56 57 void BondGraph::CleanupBondLengthTable() 58 { 49 59 if (BondLengthMatrix != NULL) { 50 60 delete(BondLengthMatrix); … … 63 73 LOG(1, "MatrixContainer for Bond length already present, removing."); 64 74 delete(BondLengthMatrix); 75 BondLengthMatrix = NULL; 65 76 } 66 77 TempContainer = new MatrixContainer; … … 222 233 } 223 234 235 bool BondGraph::operator==(const BondGraph &other) const 236 { 237 if (IsAngstroem != other.IsAngstroem) 238 return false; 239 if (((BondLengthMatrix != NULL) && (other.BondLengthMatrix == NULL)) 240 || ((BondLengthMatrix == NULL) && (other.BondLengthMatrix != NULL))) 241 return false; 242 if ((BondLengthMatrix != NULL) && (other.BondLengthMatrix != NULL)) 243 if (*BondLengthMatrix != *other.BondLengthMatrix) 244 return false; 245 return true; 246 }
Note:
See TracChangeset
for help on using the changeset viewer.