22#ifndef _BINARYINDEX_HPP_
23#define _BINARYINDEX_HPP_
44 virtual void create(std::vector<Entry>& entries);
45 virtual size_t size()
const;
index implementation in a stream (intended for fstreams but any iostream works); find(string id) is O...
virtual EntryPtr find(const std::string &id) const
returns the entry for the specified string id, or null if the id is not in the index
virtual size_t size() const
returns the number of entries in the index
virtual EntryPtr find(size_t index) const
returns the entry for the specified ordinal index, or null if the ordinal is not in the index
BinaryIndexStream(boost::shared_ptr< std::iostream > indexStreamPtr)
boost::shared_ptr< Impl > impl_
virtual void create(std::vector< Entry > &entries)
create the index from specified list of entries; the list is non-const because the index implementati...
generic interface for creating and using an index on a stream of serialized objects
boost::shared_ptr< Entry > EntryPtr