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

#include <flitBuffer.hh>

Public Member Functions

 flitBuffer ()
 
 flitBuffer (int maximum_size)
 
bool isReady (Cycles curTime)
 
bool isEmpty ()
 
void print (std::ostream &out) const
 
bool isFull ()
 
void setMaxSize (int maximum)
 
int getSize () const
 
flitgetTopFlit ()
 
flitpeekTopFlit ()
 
void insert (flit *flt)
 
uint32_t functionalWrite (Packet *pkt)
 

Private Attributes

std::vector< flit * > m_buffer
 
int max_size
 

Detailed Description

Definition at line 44 of file flitBuffer.hh.

Constructor & Destructor Documentation

flitBuffer::flitBuffer ( )

Definition at line 36 of file flitBuffer.cc.

References INFINITE_, and max_size.

flitBuffer::flitBuffer ( int  maximum_size)

Definition at line 41 of file flitBuffer.cc.

References max_size.

Member Function Documentation

uint32_t flitBuffer::functionalWrite ( Packet pkt)
int flitBuffer::getSize ( ) const
inline

Definition at line 55 of file flitBuffer.hh.

References m_buffer.

Referenced by NetworkInterface::wakeup().

flit* flitBuffer::getTopFlit ( )
inline
void flitBuffer::insert ( flit flt)
inline
bool flitBuffer::isEmpty ( )

Definition at line 47 of file flitBuffer.cc.

References m_buffer.

bool flitBuffer::isFull ( )

Definition at line 70 of file flitBuffer.cc.

References m_buffer, and max_size.

bool flitBuffer::isReady ( Cycles  curTime)
flit* flitBuffer::peekTopFlit ( )
inline
void flitBuffer::print ( std::ostream &  out) const

Definition at line 64 of file flitBuffer.cc.

References m_buffer.

Referenced by operator<<().

void flitBuffer::setMaxSize ( int  maximum)

Definition at line 76 of file flitBuffer.cc.

References max_size.

Member Data Documentation

std::vector<flit *> flitBuffer::m_buffer
private
int flitBuffer::max_size
private

Definition at line 83 of file flitBuffer.hh.

Referenced by flitBuffer(), isFull(), and setMaxSize().


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

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