gem5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Private Member Functions | Private Attributes | List of all members
LSB_CountingBloomFilter Class Reference

#include <LSB_CountingBloomFilter.hh>

Inheritance diagram for LSB_CountingBloomFilter:
AbstractBloomFilter

Public Member Functions

 LSB_CountingBloomFilter (int head, int tail)
 
 ~LSB_CountingBloomFilter ()
 
void clear ()
 
void increment (Addr addr)
 
void decrement (Addr addr)
 
void merge (AbstractBloomFilter *other_filter)
 
void set (Addr addr)
 
void unset (Addr addr)
 
bool isSet (Addr addr)
 
int getCount (Addr addr)
 
int getTotalCount ()
 
int getIndex (Addr addr)
 
int readBit (const int index)
 
void writeBit (const int index, const int value)
 
void print (std::ostream &out) const
 
- Public Member Functions inherited from AbstractBloomFilter
virtual ~AbstractBloomFilter ()
 

Private Member Functions

int get_index (Addr addr)
 

Private Attributes

std::vector< int > m_filter
 
int m_filter_size
 
int m_filter_size_bits
 
int m_count_bits
 
int m_count
 

Detailed Description

Definition at line 38 of file LSB_CountingBloomFilter.hh.

Constructor & Destructor Documentation

LSB_CountingBloomFilter::LSB_CountingBloomFilter ( int  head,
int  tail 
)

Definition at line 36 of file LSB_CountingBloomFilter.cc.

References ArmISA::clear(), and floorLog2().

LSB_CountingBloomFilter::~LSB_CountingBloomFilter ( )

Definition at line 48 of file LSB_CountingBloomFilter.cc.

Member Function Documentation

void LSB_CountingBloomFilter::clear ( )
virtual

Implements AbstractBloomFilter.

Definition at line 53 of file LSB_CountingBloomFilter.cc.

References ArmISA::i.

void LSB_CountingBloomFilter::decrement ( Addr  addr)
virtual

Implements AbstractBloomFilter.

Definition at line 70 of file LSB_CountingBloomFilter.cc.

References ArmISA::i.

int LSB_CountingBloomFilter::get_index ( Addr  addr)
private

Definition at line 144 of file LSB_CountingBloomFilter.cc.

References bitSelect(), and RubySystem::getBlockSizeBits().

int LSB_CountingBloomFilter::getCount ( Addr  addr)
virtual

Implements AbstractBloomFilter.

Definition at line 103 of file LSB_CountingBloomFilter.cc.

int LSB_CountingBloomFilter::getIndex ( Addr  addr)
virtual

Implements AbstractBloomFilter.

Definition at line 120 of file LSB_CountingBloomFilter.cc.

int LSB_CountingBloomFilter::getTotalCount ( )
virtual

Implements AbstractBloomFilter.

Definition at line 109 of file LSB_CountingBloomFilter.cc.

References X86ISA::count, and ArmISA::i.

void LSB_CountingBloomFilter::increment ( Addr  addr)
virtual

Implements AbstractBloomFilter.

Definition at line 61 of file LSB_CountingBloomFilter.cc.

References ArmISA::i.

bool LSB_CountingBloomFilter::isSet ( Addr  addr)
virtual

Implements AbstractBloomFilter.

Definition at line 96 of file LSB_CountingBloomFilter.cc.

void LSB_CountingBloomFilter::merge ( AbstractBloomFilter other_filter)
virtual

Implements AbstractBloomFilter.

Definition at line 78 of file LSB_CountingBloomFilter.cc.

void LSB_CountingBloomFilter::print ( std::ostream &  out) const
virtual

Implements AbstractBloomFilter.

Definition at line 126 of file LSB_CountingBloomFilter.cc.

int LSB_CountingBloomFilter::readBit ( const int  index)
virtual

Implements AbstractBloomFilter.

Definition at line 131 of file LSB_CountingBloomFilter.cc.

void LSB_CountingBloomFilter::set ( Addr  addr)
virtual

Implements AbstractBloomFilter.

Definition at line 84 of file LSB_CountingBloomFilter.cc.

void LSB_CountingBloomFilter::unset ( Addr  addr)
virtual

Implements AbstractBloomFilter.

Definition at line 90 of file LSB_CountingBloomFilter.cc.

void LSB_CountingBloomFilter::writeBit ( const int  index,
const int  value 
)
virtual

Implements AbstractBloomFilter.

Definition at line 138 of file LSB_CountingBloomFilter.cc.

Member Data Documentation

int LSB_CountingBloomFilter::m_count
private

Definition at line 68 of file LSB_CountingBloomFilter.hh.

int LSB_CountingBloomFilter::m_count_bits
private

Definition at line 67 of file LSB_CountingBloomFilter.hh.

std::vector<int> LSB_CountingBloomFilter::m_filter
private

Definition at line 63 of file LSB_CountingBloomFilter.hh.

int LSB_CountingBloomFilter::m_filter_size
private

Definition at line 64 of file LSB_CountingBloomFilter.hh.

int LSB_CountingBloomFilter::m_filter_size_bits
private

Definition at line 65 of file LSB_CountingBloomFilter.hh.


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

Generated on Fri Jun 9 2017 13:04:14 for gem5 by doxygen 1.8.6