HOG2
|
#include <BitVector.h>
Public Member Functions | |
BitVector (uint64_t size) | |
BitVector (uint64_t size, const char *) | |
~BitVector () | |
void | clear () |
uint64_t | GetSize () |
bool | Get (uint64_t index) const |
void | Set (uint64_t index, bool value) |
void | SetTrue (uint64_t index) |
void | Save (const char *) |
void | Load (const char *) |
bool | Equals (BitVector *) |
uint64_t | GetNumSetBits () |
Private Attributes | |
uint64_t | size |
uint64_t | true_size |
storageElement * | storage |
int | fd |
Definition at line 34 of file BitVector.h.
BitVector::BitVector | ( | uint64_t | size | ) |
Definition at line 18 of file BitVector.cpp.
References size, storage, storageBitsPower, and true_size.
BitVector::BitVector | ( | uint64_t | size, |
const char * | fname | ||
) |
Definition at line 27 of file BitVector.cpp.
BitVector::~BitVector | ( | ) |
Definition at line 33 of file BitVector.cpp.
References storage.
void BitVector::clear | ( | ) |
Definition at line 75 of file BitVector.cpp.
bool BitVector::Equals | ( | BitVector * | bv | ) |
Definition at line 111 of file BitVector.cpp.
|
inline |
Definition at line 54 of file BitVector.h.
References storage, storageBitsPower, and storageMask.
Referenced by BloomFilter::Contains(), SharedAMapGroup::Explored(), SharedAMapGroup::OpenGLDraw(), SharedAMapGroup::SeenBefore(), and SharedAMapGroup::UpdateLocation().
uint64_t BitVector::GetNumSetBits | ( | ) |
Definition at line 120 of file BitVector.cpp.
Referenced by BloomFilter::Analyze().
|
inline |
Definition at line 40 of file BitVector.h.
References true_size.
Referenced by BloomFilter::Analyze().
void BitVector::Load | ( | const char * | file | ) |
Definition at line 51 of file BitVector.cpp.
References size, storage, storageBitsPower, and true_size.
Referenced by BitVector(), BloomFilter::BloomFilter(), and BloomFilter::Load().
void BitVector::Save | ( | const char * | file | ) |
Definition at line 38 of file BitVector.cpp.
References size, storage, and true_size.
Referenced by BloomFilter::~BloomFilter().
void BitVector::Set | ( | uint64_t | index, |
bool | value | ||
) |
Definition at line 88 of file BitVector.cpp.
References size, storage, storageBitsPower, and storageMask.
Referenced by SharedAMapGroup::UpdateLocation().
|
inline |
Definition at line 59 of file BitVector.h.
References storage, storageBitsPower, and storageMask.
Referenced by BloomFilter::Insert().
|
private |
Definition at line 51 of file BitVector.h.
|
private |
Definition at line 49 of file BitVector.h.
Referenced by BitVector(), clear(), Equals(), GetNumSetBits(), Load(), Save(), and Set().
|
private |
Definition at line 50 of file BitVector.h.
Referenced by BitVector(), clear(), Equals(), Get(), GetNumSetBits(), Load(), Save(), Set(), SetTrue(), and ~BitVector().
|
private |
Definition at line 49 of file BitVector.h.
Referenced by BitVector(), GetSize(), Load(), and Save().