Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Graph/BondGraph.hpp

    r5e2f80 r829761  
    2020#include <iosfwd>
    2121
     22#include <boost/serialization/array.hpp>
     23
    2224#include "AtomSet.hpp"
    2325#include "Bond/bond.hpp"
     
    2628#include "CodePatterns/Range.hpp"
    2729#include "CodePatterns/Verbose.hpp"
    28 #include "element.hpp"
     30#include "Element/element.hpp"
     31#include "Fragmentation/MatrixContainer.hpp"
    2932#include "linkedcell.hpp"
    3033#include "IPointCloud.hpp"
     
    6568   */
    6669  bool LoadBondLengthTable(std::istream &input);
     70
     71  /** Removes allocated bond length table.
     72   *
     73   */
     74  void CleanupBondLengthTable();
    6775
    6876  /** Determines the maximum of all element::CovalentRadius for elements present in \a &Set.
     
    300308  }
    301309
     310  /** Equality comparator for class BondGraph.
     311   *
     312   * @param other other instance to compare to
     313   * @return true - if equal in every member variable, except static
     314   *         \a BondGraph::BondThreshold.
     315   */
     316  bool operator==(const BondGraph &other) const;
     317
     318  /** Unequality comparator for class BondGraph.
     319   *
     320   * @param other other instance to compare to
     321   * @return false - if equal in every member variable, except static
     322   *         \a BondGraph::BondThreshold.
     323   */
     324  bool operator!=(const BondGraph &other) const {
     325    return !(*this == other);
     326  }
     327
    302328private:
    303   static const double BondThreshold;
    304329
    305330  /** Returns the BondLengthMatrix entry for a given index pair.
     
    383408  }
    384409
     410  bool operator==(const periodentafel &other) const;
     411
     412  bool operator!=(const periodentafel &other) const {
     413    return !(*this == other);
     414  }
     415
     416private:
     417  // default constructor for serialization
     418  BondGraph();
     419
     420  friend class boost::serialization::access;
     421  // serialization
     422  template<class Archive>
     423  void serialize(Archive & ar, const unsigned int version)
     424  {
     425    //ar & const_cast<double &>(BondThreshold);
     426    ar & BondLengthMatrix;
     427    ar & IsAngstroem;
     428  }
     429
     430  //!> half width of the interval for allowed bond distances
     431  static const double BondThreshold;
    385432  //!> Matrix with bond lenth per two elements
    386433  MatrixContainer *BondLengthMatrix;
Note: See TracChangeset for help on using the changeset viewer.