Changeset 70d034 for src/Atom/AtomSet.hpp
- Timestamp:
- Jul 20, 2017, 9:38:38 AM (8 years ago)
- Branches:
- ForceAnnealing_with_BondGraph_continued
- Children:
- 44441a
- Parents:
- 9d3846
- git-author:
- Frederik Heber <frederik.heber@…> (06/24/17 11:22:59)
- git-committer:
- Frederik Heber <frederik.heber@…> (07/20/17 09:38:38)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Atom/AtomSet.hpp
r9d3846 r70d034 16 16 17 17 18 #include <algorithm> 18 19 #include <functional> 20 #include <limits> 19 21 #include <numeric> 20 #include <algorithm> 22 23 #include <boost/bind.hpp> 21 24 #include <boost/foreach.hpp> 22 #include <limits>23 25 24 26 /** … … 79 81 size_t getMaxTrajectorySize() const; 80 82 83 void sortByIds(); 84 81 85 private: 82 86 template<class Function> … … 201 205 } 202 206 207 template <class container_type, 208 class iterator_type, 209 class const_iterator_type> 210 inline void AtomSetMixin<container_type,iterator_type,const_iterator_type>::sortByIds(){ 211 std::sort(this->begin(), this->end(), 212 boost::bind(std::less<atomId_t>(), 213 boost::bind(&atom::getId, _1), 214 boost::bind(&atom::getId, _2))); 215 } 216 203 217 // allows simpler definition of AtomSets 204 218 #define ATOMSET(container_type) AtomSetMixin<container_type<atom*> >
Note:
See TracChangeset
for help on using the changeset viewer.