Changeset 461a7f for src/Dynamics/BondVectors_impl.hpp
- Timestamp:
- Jul 20, 2017, 9:38:38 AM (8 years ago)
- Branches:
- ForceAnnealing_with_BondGraph_continued
- Children:
- cb80d4
- Parents:
- 12d20c
- git-author:
- Frederik Heber <frederik.heber@…> (06/29/17 14:40:12)
- git-committer:
- Frederik Heber <frederik.heber@…> (07/20/17 09:38:38)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Dynamics/BondVectors_impl.hpp
r12d20c r461a7f 21 21 #include "Atom/atom.hpp" 22 22 23 BondVectors::BondVectors() : 24 map_is_dirty(false), 25 current_step_for_map((size_t)-1) 26 {} 27 23 28 template <class T> 24 29 void BondVectors::setFromAtomRange( … … 36 41 std::sort(container.begin(), container.end()); 37 42 container.erase(std::unique(container.begin(), container.end()), container.end()); 43 map_is_dirty = true; 38 44 } 39 45 46 const BondVectors::mapped_t& 47 BondVectors::getBondVectorsAtStep(const size_t &_step) const 48 { 49 if (map_is_dirty || (current_step_for_map != _step)) 50 recalculateBondVectorsAtStep(_step); 51 return current_mapped_vectors; 52 } 53 54 const BondVectors::container_t& 55 BondVectors::getSorted() const 56 { 57 ASSERT( !container.empty(), 58 "BondVectors::getSorted() - empty internal container, not set properly?"); 59 return container; 60 } 40 61 41 62 #endif /* DYNAMICS_BONDVECTORS_IMPL_HPP_ */
Note:
See TracChangeset
for help on using the changeset viewer.