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

#include <Set.hh>

Public Member Functions

 Set ()
 
 Set (int size)
 
 Set (const Set &obj)
 
 ~Set ()
 
Setoperator= (const Set &obj)
 
void add (NodeID index)
 
void addSet (const Set &obj)
 
void remove (NodeID index)
 
void removeSet (const Set &obj)
 
void clear ()
 
void broadcast ()
 
int count () const
 
bool isEqual (const Set &obj) const
 
Set OR (const Set &obj) const
 
Set AND (const Set &obj) const
 
bool intersectionIsEmpty (const Set &obj) const
 
bool isSuperset (const Set &test) const
 
bool isSubset (const Set &test) const
 
bool isElement (NodeID element) const
 
bool isBroadcast () const
 
bool isEmpty () const
 
NodeID smallestElement () const
 
bool elementAt (int index) const
 
int getSize () const
 
void setSize (int size)
 
void print (std::ostream &out) const
 

Private Attributes

int m_nSize
 
std::bitset< NUMBER_BITS_PER_SETbits
 

Detailed Description

Definition at line 45 of file Set.hh.

Constructor & Destructor Documentation

Set::Set ( )
inline

Definition at line 53 of file Set.hh.

Set::Set ( int  size)
inline

Definition at line 55 of file Set.hh.

References fatal, and NUMBER_BITS_PER_SET.

Set::Set ( const Set obj)
inline

Definition at line 63 of file Set.hh.

Set::~Set ( )
inline

Definition at line 64 of file Set.hh.

Member Function Documentation

void Set::add ( NodeID  index)
inline

Definition at line 74 of file Set.hh.

References bits.

Referenced by AccessTraceForAddress::update().

void Set::addSet ( const Set obj)
inline

Definition at line 84 of file Set.hh.

References bits, and m_nSize.

Referenced by AddressProfiler::profileGetS(), and AddressProfiler::profileGetX().

Set Set::AND ( const Set obj) const
inline

Definition at line 149 of file Set.hh.

References bits, m_nSize, and MipsISA::r.

void Set::broadcast ( )
inline

Definition at line 114 of file Set.hh.

References bits, ArmISA::j, m_nSize, and NUMBER_BITS_PER_SET.

void Set::clear ( )
inline

Definition at line 109 of file Set.hh.

References bits.

int Set::count ( ) const
inline
bool Set::elementAt ( int  index) const
inline

Definition at line 202 of file Set.hh.

References bits, and MipsISA::index.

int Set::getSize ( ) const
inline

Definition at line 204 of file Set.hh.

References m_nSize.

bool Set::intersectionIsEmpty ( const Set obj) const
inline

Definition at line 159 of file Set.hh.

References bits, and MipsISA::r.

bool Set::isBroadcast ( ) const
inline

Definition at line 185 of file Set.hh.

References bits, and m_nSize.

bool Set::isElement ( NodeID  element) const
inline

Definition at line 179 of file Set.hh.

References bits.

bool Set::isEmpty ( ) const
inline

Definition at line 190 of file Set.hh.

References bits.

bool Set::isEqual ( const Set obj) const
inline

Definition at line 131 of file Set.hh.

References bits, and m_nSize.

bool Set::isSubset ( const Set test) const
inline

Definition at line 177 of file Set.hh.

References isSuperset().

bool Set::isSuperset ( const Set test) const
inline

Definition at line 170 of file Set.hh.

References bits, m_nSize, and MipsISA::r.

Referenced by isSubset().

Set& Set::operator= ( const Set obj)
inline

Definition at line 66 of file Set.hh.

References bits, and m_nSize.

Set Set::OR ( const Set obj) const
inline

Definition at line 139 of file Set.hh.

References bits, m_nSize, and MipsISA::r.

void Set::print ( std::ostream &  out) const
inline

Definition at line 217 of file Set.hh.

References bits, and m_nSize.

Referenced by operator<<().

void Set::remove ( NodeID  index)
inline

Definition at line 94 of file Set.hh.

References bits, and MipsISA::index.

Referenced by AddressProfiler::profileGetS(), and AddressProfiler::profileGetX().

void Set::removeSet ( const Set obj)
inline

Definition at line 103 of file Set.hh.

References bits, and m_nSize.

void Set::setSize ( int  size)
inline

Definition at line 207 of file Set.hh.

References bits, fatal, m_nSize, NUMBER_BITS_PER_SET, and X86ISA::size().

NodeID Set::smallestElement ( ) const
inline

Definition at line 192 of file Set.hh.

References bits, ArmISA::i, m_nSize, and panic.

Member Data Documentation

std::bitset<NUMBER_BITS_PER_SET> Set::bits
private
int Set::m_nSize
private

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

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