Changes in src/Graph/BondGraph.hpp [42ffb5:0763ce]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Graph/BondGraph.hpp
r42ffb5 r0763ce 359 359 } 360 360 361 /** Checks whether the bond degree for each atom on the set matches with its valency. 362 * 363 * @param Set Range with atoms 364 * @return true - bond degrees match valency, false - bond degree correction is needed 365 */ 366 template <class container_type, 367 class iterator_type, 368 class const_iterator_type> 369 bool checkBondDegree( 370 AtomSetMixin<container_type,iterator_type,const_iterator_type> &Set) const 371 { 372 std::set<atom *> allatoms; 373 for(iterator_type AtomRunner = Set.begin(); AtomRunner != Set.end(); ++AtomRunner) 374 allatoms.insert(*AtomRunner); 375 return checkBondDegree(allatoms); 376 } 377 361 378 /** correct bond degree by comparing valence and bond degree. 362 379 * correct Bond degree of each bond by checking both bond partners for a mismatch between valence and current sum of bond degrees, … … 472 489 } 473 490 491 bool checkBondDegree(const std::set<atom *> &allatoms) const; 492 474 493 /** Calculates the bond degree for each atom on the set. 475 494 *
Note:
See TracChangeset
for help on using the changeset viewer.