HOG2
|
#include <FourBitArray.h>
Public Member Functions | |
FourBitArray (uint64_t numEntries=0) | |
~FourBitArray () | |
void | FillMax () |
void | Clear () |
void | Resize (uint64_t newMaxEntries) |
uint64_t | Size () const |
uint8_t | Get (uint64_t index) const |
void | Set (uint64_t index, uint8_t val) |
void | Write (const char *) |
void | Read (const char *) |
Private Attributes | |
uint8_t * | mem |
uint64_t | entries |
Definition at line 16 of file FourBitArray.h.
FourBitArray::FourBitArray | ( | uint64_t | numEntries = 0 | ) |
Definition at line 18 of file FourBitArray.cpp.
FourBitArray::~FourBitArray | ( | ) |
Definition at line 24 of file FourBitArray.cpp.
References mem.
void FourBitArray::Clear | ( | ) |
Definition at line 34 of file FourBitArray.cpp.
void FourBitArray::FillMax | ( | ) |
Definition at line 29 of file FourBitArray.cpp.
Referenced by MinBloomFilter::MinBloomFilter().
uint8_t FourBitArray::Get | ( | uint64_t | index | ) | const |
Definition at line 52 of file FourBitArray.cpp.
References mem.
Referenced by MinBloomFilter::Analyze(), MinBloomFilter::Contains(), and MinBloomFilter::Insert().
void FourBitArray::Read | ( | const char * | file | ) |
Definition at line 81 of file FourBitArray.cpp.
References entries, mem, and Resize().
Referenced by MinBloomFilter::Load(), and MinBloomFilter::MinBloomFilter().
void FourBitArray::Resize | ( | uint64_t | newMaxEntries | ) |
Definition at line 39 of file FourBitArray.cpp.
Referenced by FourBitArray(), and Read().
void FourBitArray::Set | ( | uint64_t | index, |
uint8_t | val | ||
) |
Definition at line 62 of file FourBitArray.cpp.
References mem.
Referenced by MinBloomFilter::Insert().
uint64_t FourBitArray::Size | ( | ) | const |
Definition at line 47 of file FourBitArray.cpp.
References entries.
Referenced by MinBloomFilter::Analyze().
void FourBitArray::Write | ( | const char * | file | ) |
Definition at line 73 of file FourBitArray.cpp.
Referenced by MinBloomFilter::~MinBloomFilter().
|
private |
|
private |
Definition at line 30 of file FourBitArray.h.
Referenced by Clear(), FillMax(), FourBitArray(), Get(), Read(), Resize(), Set(), Write(), and ~FourBitArray().