22 #ifndef _MEMORYINDEX_HPP_ 23 #define _MEMORYINDEX_HPP_ 43 virtual void create(std::vector<Entry>& entries);
44 virtual size_t size()
const;
45 virtual EntryPtr find(
const std::string&
id)
const;
46 virtual EntryPtr find(
size_t index)
const;
50 boost::shared_ptr<Impl>
impl_;
58 #endif // _MEMORYINDEX_HPP_
boost::shared_ptr< Impl > impl_
index implementation in memory; find(string id) is O(logN); find(ordinal index) is O(1); memory footp...
boost::shared_ptr< Entry > EntryPtr
generic interface for creating and using an index on a stream of serialized objects ...