Changes in src/Graph/BondGraph.hpp [829761:5e2f80]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Graph/BondGraph.hpp
r829761 r5e2f80 20 20 #include <iosfwd> 21 21 22 #include <boost/serialization/array.hpp>23 24 22 #include "AtomSet.hpp" 25 23 #include "Bond/bond.hpp" … … 28 26 #include "CodePatterns/Range.hpp" 29 27 #include "CodePatterns/Verbose.hpp" 30 #include "Element/element.hpp" 31 #include "Fragmentation/MatrixContainer.hpp" 28 #include "element.hpp" 32 29 #include "linkedcell.hpp" 33 30 #include "IPointCloud.hpp" … … 68 65 */ 69 66 bool LoadBondLengthTable(std::istream &input); 70 71 /** Removes allocated bond length table.72 *73 */74 void CleanupBondLengthTable();75 67 76 68 /** Determines the maximum of all element::CovalentRadius for elements present in \a &Set. … … 308 300 } 309 301 310 /** Equality comparator for class BondGraph.311 *312 * @param other other instance to compare to313 * @return true - if equal in every member variable, except static314 * \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 to321 * @return false - if equal in every member variable, except static322 * \a BondGraph::BondThreshold.323 */324 bool operator!=(const BondGraph &other) const {325 return !(*this == other);326 }327 328 302 private: 303 static const double BondThreshold; 329 304 330 305 /** Returns the BondLengthMatrix entry for a given index pair. … … 408 383 } 409 384 410 bool operator==(const periodentafel &other) const;411 412 bool operator!=(const periodentafel &other) const {413 return !(*this == other);414 }415 416 private:417 // default constructor for serialization418 BondGraph();419 420 friend class boost::serialization::access;421 // serialization422 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 distances431 static const double BondThreshold;432 385 //!> Matrix with bond lenth per two elements 433 386 MatrixContainer *BondLengthMatrix;
Note:
See TracChangeset
for help on using the changeset viewer.