Changes in src/Graph/BondGraph.cpp [829761:db7e6d]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Graph/BondGraph.cpp
r829761 rdb7e6d 26 26 #include "Graph/BondGraph.hpp" 27 27 #include "Box.hpp" 28 #include " Element/element.hpp"28 #include "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 " Element/periodentafel.hpp"35 #include " Fragmentation/MatrixContainer.hpp"34 #include "parser.hpp" 35 #include "periodentafel.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 {}46 41 47 42 BondGraph::BondGraph(bool IsA) : … … 52 47 BondGraph::~BondGraph() 53 48 { 54 CleanupBondLengthTable();55 }56 57 void BondGraph::CleanupBondLengthTable()58 {59 49 if (BondLengthMatrix != NULL) { 60 50 delete(BondLengthMatrix); … … 73 63 LOG(1, "MatrixContainer for Bond length already present, removing."); 74 64 delete(BondLengthMatrix); 75 BondLengthMatrix = NULL;76 65 } 77 66 TempContainer = new MatrixContainer; … … 233 222 } 234 223 235 bool BondGraph::operator==(const BondGraph &other) const236 {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.