Changes in src/Graph/BondGraph.hpp [5e2f80:829761]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Graph/BondGraph.hpp
r5e2f80 r829761 20 20 #include <iosfwd> 21 21 22 #include <boost/serialization/array.hpp> 23 22 24 #include "AtomSet.hpp" 23 25 #include "Bond/bond.hpp" … … 26 28 #include "CodePatterns/Range.hpp" 27 29 #include "CodePatterns/Verbose.hpp" 28 #include "element.hpp" 30 #include "Element/element.hpp" 31 #include "Fragmentation/MatrixContainer.hpp" 29 32 #include "linkedcell.hpp" 30 33 #include "IPointCloud.hpp" … … 65 68 */ 66 69 bool LoadBondLengthTable(std::istream &input); 70 71 /** Removes allocated bond length table. 72 * 73 */ 74 void CleanupBondLengthTable(); 67 75 68 76 /** Determines the maximum of all element::CovalentRadius for elements present in \a &Set. … … 300 308 } 301 309 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 302 328 private: 303 static const double BondThreshold;304 329 305 330 /** Returns the BondLengthMatrix entry for a given index pair. … … 383 408 } 384 409 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 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; 385 432 //!> Matrix with bond lenth per two elements 386 433 MatrixContainer *BondLengthMatrix;
Note:
See TracChangeset
for help on using the changeset viewer.