14#ifndef OR_TOOLS_BASE_BITMAP_H_
15#define OR_TOOLS_BASE_BITMAP_H_
45 map_(new
uint64[array_size_]) {
59 assert(max_size_ == 0 ||
index < max_size_);
63 assert(max_size_ == 0 ||
index < max_size_);
73 memset(map_, (
value ? 0xFF : 0x00), array_size_ *
sizeof(*map_));
void Resize(uint32 size, bool fill=false)
bool Get(uint32 index) const
Bitmap(uint32 size, bool fill=false)
void Set(uint32 index, bool value)
uint64 BitPos64(uint64 pos)
uint64 BitLength64(uint64 size)
void SetBit64(uint64 *const bitset, uint64 pos)
bool IsBitSet64(const uint64 *const bitset, uint64 pos)
void ClearBit64(uint64 *const bitset, uint64 pos)
uint64 BitOffset64(uint64 pos)
The vehicle routing library lets one model and solve generic vehicle routing problems ranging from th...
uint64 BitLength64(uint64 size)