5 #ifndef agent_index_vector_h
6 #define agent_index_vector_h
10 #include <boost/dynamic_bitset.hpp>
14 template <
typename EntryType>
26 <<
" entries in destructor");
32 EntryType
At(
size_t index)
const {
41 size_t index =
bitmap_.find_first();
56 if (size == 0 || size <= index) {
72 void Update(
size_t index, EntryType entry) {
94 typedef boost::dynamic_bitset<>
Bitmap;
size_t InsertAtIndex(uint32_t index, EntryType entry)
DISALLOW_COPY_AND_ASSIGN(IndexVector)
std::vector< EntryType > EntryTable
boost::dynamic_bitset Bitmap
size_t Insert(EntryType entry)
void Update(size_t index, EntryType entry)
static const size_t kGrowSize
EntryType At(size_t index) const
void Remove(size_t index)
#define LOG(_Level, _Msg)