randlm::Filter< T > Class Template Reference

#include <RandLMFilter.h>

Inheritance diagram for randlm::Filter< T >:

Inheritance graph
[legend]
Collaboration diagram for randlm::Filter< T >:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 Filter (uint64_t addresses, int width)
 Filter (Moses::FileHandler *fin, bool loaddata=true)
virtual ~Filter ()
bool reset ()
count_t size ()
bool read (uint64_t address, T *value)
T read (uint64_t address)
bool write (uint64_t address, T value)
bool readWithFingerprint (uint64_t address, T finger, T *value)
bool writeWithFingerprint (uint64_t address, T finger, T value)
void printFilter (const std::string &prefix="", uint32_t truncate=64)
uint64_t getAddresses ()
int getWidth ()
int getCellWidth ()
uint32_t getCells ()
virtual bool save (Moses::FileHandler *out)

Protected Member Functions

bool loadHeader (Moses::FileHandler *fin)
bool loadData (Moses::FileHandler *fin)

Protected Attributes

uint64_t cells_
int cell_width_
int log_cell_width_
uint64_t addresses_
int width_
int first_bit_
T full_mask_
T address_mask_
Tdata_


Detailed Description

template<typename T>
class randlm::Filter< T >

Definition at line 41 of file RandLMFilter.h.


Constructor & Destructor Documentation

template<typename T>
randlm::Filter< T >::Filter ( uint64_t  addresses,
int  width 
) [inline]

Definition at line 44 of file RandLMFilter.h.

template<typename T>
randlm::Filter< T >::Filter ( Moses::FileHandler fin,
bool  loaddata = true 
) [inline]

Definition at line 64 of file RandLMFilter.h.

template<typename T>
virtual randlm::Filter< T >::~Filter (  )  [inline, virtual]

Definition at line 69 of file RandLMFilter.h.


Member Function Documentation

template<typename T>
uint64_t randlm::Filter< T >::getAddresses (  )  [inline]

Definition at line 213 of file RandLMFilter.h.

template<typename T>
uint32_t randlm::Filter< T >::getCells (  )  [inline]

Definition at line 222 of file RandLMFilter.h.

template<typename T>
int randlm::Filter< T >::getCellWidth (  )  [inline]

Definition at line 219 of file RandLMFilter.h.

template<typename T>
int randlm::Filter< T >::getWidth (  )  [inline]

Definition at line 216 of file RandLMFilter.h.

template<typename T>
bool randlm::Filter< T >::loadData ( Moses::FileHandler fin  )  [inline, protected]

Definition at line 263 of file RandLMFilter.h.

Referenced by randlm::Filter< uint8_t >::Filter().

Here is the caller graph for this function:

template<typename T>
bool randlm::Filter< T >::loadHeader ( Moses::FileHandler fin  )  [inline, protected]

Definition at line 250 of file RandLMFilter.h.

Referenced by randlm::Filter< uint8_t >::Filter().

Here is the caller graph for this function:

template<typename T>
void randlm::Filter< T >::printFilter ( const std::string &  prefix = "",
uint32_t  truncate = 64 
) [inline]

Definition at line 200 of file RandLMFilter.h.

template<typename T>
T randlm::Filter< T >::read ( uint64_t  address  )  [inline]

Definition at line 104 of file RandLMFilter.h.

template<typename T>
bool randlm::Filter< T >::read ( uint64_t  address,
T value 
) [inline]

Definition at line 82 of file RandLMFilter.h.

template<typename T>
bool randlm::Filter< T >::readWithFingerprint ( uint64_t  address,
T  finger,
T value 
) [inline]

Definition at line 152 of file RandLMFilter.h.

template<typename T>
bool randlm::Filter< T >::reset (  )  [inline]

Definition at line 72 of file RandLMFilter.h.

Referenced by OnlineRLM< T >::clearMarkings(), and randlm::Filter< uint8_t >::Filter().

Here is the caller graph for this function:

template<typename T>
virtual bool randlm::Filter< T >::save ( Moses::FileHandler out  )  [inline, virtual]

Reimplemented in randlm::BitFilter.

Definition at line 225 of file RandLMFilter.h.

template<typename T>
count_t randlm::Filter< T >::size (  )  [inline]

Definition at line 77 of file RandLMFilter.h.

template<typename T>
bool randlm::Filter< T >::write ( uint64_t  address,
T  value 
) [inline]

Definition at line 126 of file RandLMFilter.h.

template<typename T>
bool randlm::Filter< T >::writeWithFingerprint ( uint64_t  address,
T  finger,
T  value 
) [inline]

Definition at line 174 of file RandLMFilter.h.


Member Data Documentation

template<typename T>
T randlm::Filter< T >::address_mask_ [protected]

template<typename T>
uint64_t randlm::Filter< T >::addresses_ [protected]

template<typename T>
int randlm::Filter< T >::cell_width_ [protected]

template<typename T>
uint64_t randlm::Filter< T >::cells_ [protected]

template<typename T>
T* randlm::Filter< T >::data_ [protected]

template<typename T>
int randlm::Filter< T >::first_bit_ [protected]

template<typename T>
T randlm::Filter< T >::full_mask_ [protected]

template<typename T>
int randlm::Filter< T >::log_cell_width_ [protected]

template<typename T>
int randlm::Filter< T >::width_ [protected]


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

Generated on Mon Aug 17 00:35:01 2015 for Moses by  doxygen 1.5.9