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
BlockBloomFilter Class Reference

#include <BlockBloomFilter.hh>

Inheritance diagram for BlockBloomFilter:
AbstractBloomFilter

Public Member Functions

 BlockBloomFilter (int size)
 
 ~BlockBloomFilter ()
 
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
 

Detailed Description

Definition at line 38 of file BlockBloomFilter.hh.

Constructor & Destructor Documentation

BlockBloomFilter::BlockBloomFilter ( int  size)

Definition at line 37 of file BlockBloomFilter.cc.

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

BlockBloomFilter::~BlockBloomFilter ( )

Definition at line 47 of file BlockBloomFilter.cc.

Member Function Documentation

void BlockBloomFilter::clear ( )
virtual

Implements AbstractBloomFilter.

Definition at line 52 of file BlockBloomFilter.cc.

References ArmISA::i.

void BlockBloomFilter::decrement ( Addr  addr)
virtual

Implements AbstractBloomFilter.

Definition at line 66 of file BlockBloomFilter.cc.

int BlockBloomFilter::get_index ( Addr  addr)
private
int BlockBloomFilter::getCount ( Addr  addr)
virtual

Implements AbstractBloomFilter.

Definition at line 99 of file BlockBloomFilter.cc.

int BlockBloomFilter::getIndex ( Addr  addr)
virtual

Implements AbstractBloomFilter.

Definition at line 118 of file BlockBloomFilter.cc.

int BlockBloomFilter::getTotalCount ( )
virtual

Implements AbstractBloomFilter.

Definition at line 105 of file BlockBloomFilter.cc.

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

void BlockBloomFilter::increment ( Addr  addr)
virtual

Implements AbstractBloomFilter.

Definition at line 60 of file BlockBloomFilter.cc.

bool BlockBloomFilter::isSet ( Addr  addr)
virtual

Implements AbstractBloomFilter.

Definition at line 92 of file BlockBloomFilter.cc.

References ArmISA::i.

void BlockBloomFilter::merge ( AbstractBloomFilter other_filter)
virtual

Implements AbstractBloomFilter.

Definition at line 72 of file BlockBloomFilter.cc.

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

Implements AbstractBloomFilter.

Definition at line 124 of file BlockBloomFilter.cc.

int BlockBloomFilter::readBit ( const int  index)
virtual

Implements AbstractBloomFilter.

Definition at line 129 of file BlockBloomFilter.cc.

References MipsISA::index.

void BlockBloomFilter::set ( Addr  addr)
virtual

Implements AbstractBloomFilter.

Definition at line 78 of file BlockBloomFilter.cc.

References ArmISA::i.

void BlockBloomFilter::unset ( Addr  addr)
virtual

Implements AbstractBloomFilter.

Definition at line 85 of file BlockBloomFilter.cc.

References ArmISA::i.

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

Implements AbstractBloomFilter.

Definition at line 135 of file BlockBloomFilter.cc.

References MipsISA::index.

Member Data Documentation

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

Definition at line 63 of file BlockBloomFilter.hh.

int BlockBloomFilter::m_filter_size
private

Definition at line 64 of file BlockBloomFilter.hh.

int BlockBloomFilter::m_filter_size_bits
private

Definition at line 65 of file BlockBloomFilter.hh.


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

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