3 #include <boost/unordered_map.hpp>
24 return std::equal(p1.begin(), p1.end(), p2.begin());
28 struct memb_hash: std::unary_function<ttranscribed, std::size_t>
33 const size_t length = p.size();
34 for (
size_t i = 0; i < length; ++i)
36 boost::hash_combine(seed, p(i));
42 typedef boost::unordered_map<ttranscribed, tfitvec,memb_hash,memb_equal> tmembermap;
43 tmembermap MemberHashMap;
53 #endif // CUNIQUEPOP_H
ublas::vector< double > ttranscribed
bool Insert(const tfitvec &fitness, const ttranscribed &popmember)
bool Find(const ttranscribed &popmember, tfitvec &fitness)
void PrintAll(std::ostream &output)
This class stores a single unique copy of each population member that is added to it...
ublas::vector< double > tfitvec