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

#include <NonCountingBloomFilter.hh>

Inheritance diagram for NonCountingBloomFilter:
AbstractBloomFilter

Public Member Functions

 NonCountingBloomFilter (int head, int tail)
 
 ~NonCountingBloomFilter ()
 
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
 
int operator[] (const int index) 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_offset
 
int m_filter_size_bits
 

Detailed Description

Definition at line 38 of file NonCountingBloomFilter.hh.

Constructor & Destructor Documentation

NonCountingBloomFilter::NonCountingBloomFilter ( int  head,
int  tail 
)

Definition at line 37 of file NonCountingBloomFilter.cc.

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

NonCountingBloomFilter::~NonCountingBloomFilter ( )

Definition at line 48 of file NonCountingBloomFilter.cc.

Member Function Documentation

void NonCountingBloomFilter::clear ( )
virtual

Implements AbstractBloomFilter.

Definition at line 53 of file NonCountingBloomFilter.cc.

References ArmISA::i.

void NonCountingBloomFilter::decrement ( Addr  addr)
virtual

Implements AbstractBloomFilter.

Definition at line 67 of file NonCountingBloomFilter.cc.

int NonCountingBloomFilter::get_index ( Addr  addr)
private

Definition at line 145 of file NonCountingBloomFilter.cc.

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

int NonCountingBloomFilter::getCount ( Addr  addr)
virtual

Implements AbstractBloomFilter.

Definition at line 105 of file NonCountingBloomFilter.cc.

int NonCountingBloomFilter::getIndex ( Addr  addr)
virtual

Implements AbstractBloomFilter.

Definition at line 127 of file NonCountingBloomFilter.cc.

int NonCountingBloomFilter::getTotalCount ( )
virtual

Implements AbstractBloomFilter.

Definition at line 111 of file NonCountingBloomFilter.cc.

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

void NonCountingBloomFilter::increment ( Addr  addr)
virtual

Implements AbstractBloomFilter.

Definition at line 61 of file NonCountingBloomFilter.cc.

bool NonCountingBloomFilter::isSet ( Addr  addr)
virtual

Implements AbstractBloomFilter.

Definition at line 97 of file NonCountingBloomFilter.cc.

References ArmISA::i.

void NonCountingBloomFilter::merge ( AbstractBloomFilter other_filter)
virtual

Implements AbstractBloomFilter.

Definition at line 73 of file NonCountingBloomFilter.cc.

References ArmISA::i.

int NonCountingBloomFilter::operator[] ( const int  index) const
inline

Definition at line 62 of file NonCountingBloomFilter.hh.

References MipsISA::index, and m_filter.

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

Implements AbstractBloomFilter.

Definition at line 122 of file NonCountingBloomFilter.cc.

int NonCountingBloomFilter::readBit ( const int  index)
virtual

Implements AbstractBloomFilter.

Definition at line 133 of file NonCountingBloomFilter.cc.

References MipsISA::index.

void NonCountingBloomFilter::set ( Addr  addr)
virtual

Implements AbstractBloomFilter.

Definition at line 83 of file NonCountingBloomFilter.cc.

References ArmISA::i.

void NonCountingBloomFilter::unset ( Addr  addr)
virtual

Implements AbstractBloomFilter.

Definition at line 90 of file NonCountingBloomFilter.cc.

References ArmISA::i.

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

Implements AbstractBloomFilter.

Definition at line 139 of file NonCountingBloomFilter.cc.

References MipsISA::index.

Member Data Documentation

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

Definition at line 70 of file NonCountingBloomFilter.hh.

Referenced by operator[]().

int NonCountingBloomFilter::m_filter_size
private

Definition at line 71 of file NonCountingBloomFilter.hh.

int NonCountingBloomFilter::m_filter_size_bits
private

Definition at line 73 of file NonCountingBloomFilter.hh.

int NonCountingBloomFilter::m_offset
private

Definition at line 72 of file NonCountingBloomFilter.hh.


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

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