HOG2
Public Member Functions | Private Attributes | List of all members
FourBitArray Class Reference

#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
 

Detailed Description

Definition at line 16 of file FourBitArray.h.

Constructor & Destructor Documentation

◆ FourBitArray()

FourBitArray::FourBitArray ( uint64_t  numEntries = 0)

Definition at line 18 of file FourBitArray.cpp.

References mem, and Resize().

◆ ~FourBitArray()

FourBitArray::~FourBitArray ( )

Definition at line 24 of file FourBitArray.cpp.

References mem.

Member Function Documentation

◆ Clear()

void FourBitArray::Clear ( )

Definition at line 34 of file FourBitArray.cpp.

References entries, and mem.

◆ FillMax()

void FourBitArray::FillMax ( )

Definition at line 29 of file FourBitArray.cpp.

References entries, and mem.

Referenced by MinBloomFilter::MinBloomFilter().

◆ Get()

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().

◆ Read()

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().

◆ Resize()

void FourBitArray::Resize ( uint64_t  newMaxEntries)

Definition at line 39 of file FourBitArray.cpp.

References entries, and mem.

Referenced by FourBitArray(), and Read().

◆ Set()

void FourBitArray::Set ( uint64_t  index,
uint8_t  val 
)

Definition at line 62 of file FourBitArray.cpp.

References mem.

Referenced by MinBloomFilter::Insert().

◆ Size()

uint64_t FourBitArray::Size ( ) const

Definition at line 47 of file FourBitArray.cpp.

References entries.

Referenced by MinBloomFilter::Analyze().

◆ Write()

void FourBitArray::Write ( const char *  file)

Definition at line 73 of file FourBitArray.cpp.

References entries, and mem.

Referenced by MinBloomFilter::~MinBloomFilter().

Member Data Documentation

◆ entries

uint64_t FourBitArray::entries
private

Definition at line 31 of file FourBitArray.h.

Referenced by Clear(), FillMax(), Read(), Resize(), Size(), and Write().

◆ mem

uint8_t* FourBitArray::mem
private

Definition at line 30 of file FourBitArray.h.

Referenced by Clear(), FillMax(), FourBitArray(), Get(), Read(), Resize(), Set(), Write(), and ~FourBitArray().


The documentation for this class was generated from the following files: