Changeset 24430b for src/Dynamics/BondVectors.hpp
- Timestamp:
- Nov 12, 2017, 8:48:39 AM (7 years ago)
- Branches:
- ForceAnnealing_with_BondGraph_continued_betteresults
- Children:
- 1f244c
- Parents:
- fd0b4a
- git-author:
- Frederik Heber <frederik.heber@…> (06/29/17 14:40:12)
- git-committer:
- Frederik Heber <frederik.heber@…> (11/12/17 08:48:39)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Dynamics/BondVectors.hpp
rfd0b4a r24430b 37 37 typedef std::map<bond::ptr, Vector> mapped_t; 38 38 39 /** Default cstor for class BondVectors. 40 * 41 */ 42 BondVectors(); 43 39 44 /** Prepares the internal container from the bonds of a range of atoms. 40 45 * … … 53 58 * \return const ref to internal container 54 59 */ 55 const container_t& getSorted() const 56 { 57 ASSERT( !container.empty(), 58 "BondVectors::getSorted() - empty internal container, not set properly?"); 59 return container; 60 } 60 const container_t& getSorted() const; 61 61 62 /** Calculates the bond vector for each bond in the internal container and 63 * returns them in same order as the internal container. 62 /** Getter for the Bondvectors. 64 63 * 65 64 * \param _step time step for which the bond vector is request 66 65 * \return a map from bond to bond vector 67 66 */ 68 mapped_tgetBondVectorsAtStep(const size_t &_step) const;67 const mapped_t& getBondVectorsAtStep(const size_t &_step) const; 69 68 70 69 /** Get the position in the internal container for a specific bond. … … 75 74 size_t getIndexForBond(const bond::ptr &_bond) const; 76 75 76 /** Gather the subset of BondVectors for the given atom. 77 * 78 * \param _walker atom to get BondVectors for 79 * \param _step time step for which the bond vector is request 80 */ 81 std::vector<Vector> getAtomsBondVectorsAtStep( 82 const atom &_walker, 83 const size_t &_step) const; 84 85 private: 86 /** Calculates the bond vector for each bond in the internal container. 87 * 88 * \param _step time step for which the bond vector is request 89 */ 90 void recalculateBondVectorsAtStep(const size_t &_step) const; 91 77 92 private: 78 93 //!> internal container for sorted bonds 79 94 container_t container; 95 96 //!> states whether map needs update or not 97 mutable bool map_is_dirty; 98 99 //!> contains the step for which the map was calculated 100 mutable size_t current_step_for_map; 101 102 //!> internal map for bond Bondvector association 103 mutable mapped_t current_mapped_vectors; 80 104 }; 81 105
Note:
See TracChangeset
for help on using the changeset viewer.