#include <RandLMFilter.h>
Public Member Functions | |
BitFilter (uint64_t bits) | |
BitFilter (Moses::FileHandler *fin, bool loaddata=true) | |
virtual bool | testBit (uint64_t location) |
virtual bool | setBit (uint64_t location) |
virtual bool | clearBit (uint64_t location) |
bool | save (Moses::FileHandler *fout) |
float | rho (uint64_t limit=0) |
Protected Member Functions | |
bool | load (Moses::FileHandler *fin) |
Definition at line 284 of file RandLMFilter.h.
randlm::BitFilter::BitFilter | ( | uint64_t | bits | ) | [inline] |
Definition at line 287 of file RandLMFilter.h.
randlm::BitFilter::BitFilter | ( | Moses::FileHandler * | fin, | |
bool | loaddata = true | |||
) | [inline] |
Definition at line 288 of file RandLMFilter.h.
References load().
virtual bool randlm::BitFilter::clearBit | ( | uint64_t | location | ) | [inline, virtual] |
Definition at line 303 of file RandLMFilter.h.
References randlm::Filter< uint8_t >::addresses_, and randlm::Filter< uint8_t >::data_.
Referenced by OnlineRLM< T >::markPrefix().
bool randlm::BitFilter::load | ( | Moses::FileHandler * | fin | ) | [inline, protected] |
Definition at line 323 of file RandLMFilter.h.
References rho().
Referenced by BitFilter().
float randlm::BitFilter::rho | ( | uint64_t | limit = 0 |
) | [inline] |
Definition at line 313 of file RandLMFilter.h.
References randlm::Filter< uint8_t >::cells_, randlm::Filter< uint8_t >::data_, and range.
Referenced by load(), and save().
bool randlm::BitFilter::save | ( | Moses::FileHandler * | fout | ) | [inline, virtual] |
Reimplemented from randlm::Filter< uint8_t >.
Definition at line 308 of file RandLMFilter.h.
References rho().
Referenced by OnlineRLM< T >::save().
virtual bool randlm::BitFilter::setBit | ( | uint64_t | location | ) | [inline, virtual] |
Definition at line 298 of file RandLMFilter.h.
References randlm::Filter< uint8_t >::addresses_, and randlm::Filter< uint8_t >::data_.
Referenced by OnlineRLM< T >::markPrefix(), and OnlineRLM< T >::markQueried().
virtual bool randlm::BitFilter::testBit | ( | uint64_t | location | ) | [inline, virtual] |
Definition at line 294 of file RandLMFilter.h.
References randlm::Filter< uint8_t >::addresses_, and randlm::Filter< uint8_t >::data_.
Referenced by OnlineRLM< T >::countHits(), OnlineRLM< T >::countPrefixes(), OnlineRLM< T >::heurDelete(), and OnlineRLM< T >::removeNonMarked().