#include "util/yet_another_bit_vector.h"
#include <algorithm>
#include <utility>
#include "util/osp_logging.h"
namespace openscreen {
namespace {
constexpr uint64_t MakeBitmask(int begin, int count) { … }
}
YetAnotherBitVector::YetAnotherBitVector() : … { … }
YetAnotherBitVector::YetAnotherBitVector(int size,
YetAnotherBitVector::Fill fill) { … }
YetAnotherBitVector::~YetAnotherBitVector() { … }
YetAnotherBitVector::YetAnotherBitVector(YetAnotherBitVector&& other) noexcept
: … { … }
YetAnotherBitVector& YetAnotherBitVector::operator=(
YetAnotherBitVector&& other) noexcept { … }
bool YetAnotherBitVector::IsSet(int pos) const { … }
void YetAnotherBitVector::Set(int pos) { … }
void YetAnotherBitVector::Clear(int pos) { … }
void YetAnotherBitVector::Resize(int new_size, YetAnotherBitVector::Fill fill) { … }
void YetAnotherBitVector::SetAll() { … }
void YetAnotherBitVector::ClearAll() { … }
void YetAnotherBitVector::ShiftRight(int steps) { … }
int YetAnotherBitVector::FindFirstSet() const { … }
int YetAnotherBitVector::CountBitsSet(int begin, int end) const { … }
void YetAnotherBitVector::InitializeForNewSize(int new_size, Fill fill) { … }
const uint64_t* YetAnotherBitVector::Select(int* pos) const { … }
constexpr int YetAnotherBitVector::kBitsPerInteger;
constexpr uint64_t YetAnotherBitVector::kAllBitsSet;
constexpr uint64_t YetAnotherBitVector::kNoBitsSet;
}