Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Graph/BondGraph.cpp

    r829761 rdb7e6d  
    2626#include "Graph/BondGraph.hpp"
    2727#include "Box.hpp"
    28 #include "Element/element.hpp"
     28#include "element.hpp"
    2929#include "CodePatterns/Info.hpp"
    3030#include "CodePatterns/Log.hpp"
     
    3232#include "CodePatterns/Verbose.hpp"
    3333#include "molecule.hpp"
    34 #include "Element/periodentafel.hpp"
    35 #include "Fragmentation/MatrixContainer.hpp"
     34#include "parser.hpp"
     35#include "periodentafel.hpp"
    3636#include "LinearAlgebra/Vector.hpp"
    3737#include "World.hpp"
     
    3939
    4040const 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 {}
    4641
    4742BondGraph::BondGraph(bool IsA) :
     
    5247BondGraph::~BondGraph()
    5348{
    54   CleanupBondLengthTable();
    55 }
    56 
    57 void BondGraph::CleanupBondLengthTable()
    58 {
    5949  if (BondLengthMatrix != NULL) {
    6050    delete(BondLengthMatrix);
     
    7363    LOG(1, "MatrixContainer for Bond length already present, removing.");
    7464    delete(BondLengthMatrix);
    75     BondLengthMatrix = NULL;
    7665  }
    7766  TempContainer = new MatrixContainer;
     
    233222}
    234223
    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.