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;
EntryType At(size_t index) const
DISALLOW_COPY_AND_ASSIGN(IndexVector)
std::vector< EntryType > EntryTable
static const size_t kGrowSize
void Remove(size_t index)
size_t Insert(EntryType entry)
boost::dynamic_bitset Bitmap
#define LOG(_Level, _Msg)
void Update(size_t index, EntryType entry)
size_t InsertAtIndex(uint32_t index, EntryType entry)