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

#include <NetDest.hh>

Public Member Functions

 NetDest ()
 
 NetDest (int bit_size)
 
NetDestoperator= (const Set &obj)
 
 ~NetDest ()
 
void add (MachineID newElement)
 
void addNetDest (const NetDest &netDest)
 
void setNetDest (MachineType machine, const Set &set)
 
void remove (MachineID oldElement)
 
void removeNetDest (const NetDest &netDest)
 
void clear ()
 
void broadcast ()
 
void broadcast (MachineType machine)
 
int count () const
 
bool isEqual (const NetDest &netDest) const
 
NetDest OR (const NetDest &orNetDest) const
 
NetDest AND (const NetDest &andNetDest) const
 
bool intersectionIsNotEmpty (const NetDest &other_netDest) const
 
bool intersectionIsEmpty (const NetDest &other_netDest) const
 
bool isSuperset (const NetDest &test) const
 
bool isSubset (const NetDest &test) const
 
bool isElement (MachineID element) const
 
bool isBroadcast () const
 
bool isEmpty () const
 
std::vector< NodeIDgetAllDest ()
 
MachineID smallestElement () const
 
MachineID smallestElement (MachineType machine) const
 
void resize ()
 
int getSize () const
 
NodeID elementAt (MachineID index)
 
void print (std::ostream &out) const
 

Private Member Functions

int vecIndex (MachineID m) const
 
NodeID bitIndex (NodeID index) const
 

Private Attributes

std::vector< Setm_bits
 

Detailed Description

Definition at line 39 of file NetDest.hh.

Constructor & Destructor Documentation

NetDest::NetDest ( )

Definition at line 33 of file NetDest.cc.

References resize().

NetDest::NetDest ( int  bit_size)
explicit
NetDest::~NetDest ( )
inline

Definition at line 49 of file NetDest.hh.

Member Function Documentation

void NetDest::add ( MachineID  newElement)
void NetDest::addNetDest ( const NetDest netDest)

Definition at line 46 of file NetDest.cc.

References getSize(), ArmISA::i, and m_bits.

NetDest NetDest::AND ( const NetDest andNetDest) const

Definition at line 204 of file NetDest.cc.

References getSize(), ArmISA::i, and m_bits.

Referenced by PerfectSwitch::operateMessageBuffer().

NodeID NetDest::bitIndex ( NodeID  index) const
inlineprivate

Definition at line 106 of file NetDest.hh.

References MipsISA::index.

Referenced by add(), elementAt(), isElement(), and remove().

void NetDest::broadcast ( )

Definition at line 87 of file NetDest.cc.

void NetDest::broadcast ( MachineType  machine)

Definition at line 96 of file NetDest.cc.

References add(), and ArmISA::i.

void NetDest::clear ( )

Definition at line 79 of file NetDest.cc.

References ArmISA::i, and m_bits.

Referenced by NetworkInterface::flitisizeMessage().

int NetDest::count ( ) const
NodeID NetDest::elementAt ( MachineID  index)

Definition at line 132 of file NetDest.cc.

References bitIndex(), m_bits, MachineID::num, and vecIndex().

std::vector< NodeID > NetDest::getAllDest ( )

Definition at line 106 of file NetDest.cc.

References ArmISA::i, isElement(), ArmISA::j, and m_bits.

Referenced by NetworkInterface::flitisizeMessage().

int NetDest::getSize ( ) const
inline

Definition at line 88 of file NetDest.hh.

References m_bits.

Referenced by add(), addNetDest(), AND(), intersectionIsNotEmpty(), isSuperset(), OR(), and removeNetDest().

bool NetDest::intersectionIsEmpty ( const NetDest other_netDest) const

Referenced by intersectionIsNotEmpty().

bool NetDest::intersectionIsNotEmpty ( const NetDest other_netDest) const
bool NetDest::isBroadcast ( ) const

Definition at line 168 of file NetDest.cc.

References ArmISA::i, and m_bits.

Referenced by network_message_to_size().

bool NetDest::isElement ( MachineID  element) const
bool NetDest::isEmpty ( ) const

Definition at line 180 of file NetDest.cc.

References ArmISA::i, and m_bits.

Referenced by PersistentTable::markEntries(), and PersistentTable::okToIssueStarving().

bool NetDest::isEqual ( const NetDest netDest) const

Definition at line 272 of file NetDest.cc.

References ArmISA::i, and m_bits.

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

Definition at line 76 of file NetDest.hh.

References isSuperset().

Referenced by PersistentTable::persistentRequestLock().

bool NetDest::isSuperset ( const NetDest test) const

Definition at line 228 of file NetDest.cc.

References getSize(), ArmISA::i, and m_bits.

Referenced by isSubset().

NetDest& NetDest::operator= ( const Set obj)
NetDest NetDest::OR ( const NetDest orNetDest) const

Definition at line 192 of file NetDest.cc.

References getSize(), ArmISA::i, and m_bits.

void NetDest::print ( std::ostream &  out) const

Definition at line 258 of file NetDest.cc.

References ArmISA::i, isElement(), ArmISA::j, and m_bits.

Referenced by operator<<().

void NetDest::remove ( MachineID  oldElement)

Definition at line 64 of file NetDest.cc.

References bitIndex(), m_bits, MachineID::num, and vecIndex().

Referenced by PersistentTable::persistentRequestUnlock().

void NetDest::removeNetDest ( const NetDest netDest)

Definition at line 70 of file NetDest.cc.

References getSize(), ArmISA::i, and m_bits.

Referenced by NetworkInterface::flitisizeMessage(), and PerfectSwitch::operateMessageBuffer().

void NetDest::resize ( )

Definition at line 247 of file NetDest.cc.

References ArmISA::i, and m_bits.

Referenced by NetDest().

void NetDest::setNetDest ( MachineType  machine,
const Set set 
)

Definition at line 55 of file NetDest.cc.

References m_bits.

MachineID NetDest::smallestElement ( ) const

Definition at line 138 of file NetDest.cc.

References count(), ArmISA::i, isElement(), ArmISA::j, m_bits, and panic.

Referenced by PersistentTable::findSmallest().

MachineID NetDest::smallestElement ( MachineType  machine) const

Definition at line 153 of file NetDest.cc.

References isElement(), ArmISA::j, m_bits, panic, and X86ISA::size().

int NetDest::vecIndex ( MachineID  m) const
inlineprivate

Definition at line 99 of file NetDest.hh.

References m_bits, and MachineID::type.

Referenced by add(), elementAt(), isElement(), and remove().

Member Data Documentation

std::vector<Set> NetDest::m_bits
private

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