/* * KeySet.hpp * * Created on: Oct 20, 2011 * Author: heber */ #ifndef KEYSET_HPP_ #define KEYSET_HPP_ #ifdef HAVE_CONFIG_H #include #endif #include // bug in boost/serialization 1.58. set.hpp needs serialization.hpp included before #include #include #include class KeySet : public std::set { public: KeySet(); ~KeySet(); bool operator<(const KeySet &a) const; bool ScanBufferIntoKeySet(char *buffer); private: friend class boost::serialization::access; // serialization template void serialize(Archive& ar, const unsigned int version) { ar & boost::serialization::base_object< std::set >(*this); } }; typedef std::pair KeySetTestPair; #endif /* KEYSET_HPP_ */