gem5  v21.0.1.0
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Classes | Public Member Functions | Private Attributes | List of all members
ExpectedMap< RespType, DataType > Class Template Reference

#include <ExpectedMap.hh>

Classes

struct  ExpectedState
 

Public Member Functions

 ExpectedMap ()
 
void clear (int dataChunks)
 
void addExpectedRespType (const RespType &val)
 
void addExpectedDataType (const DataType &val)
 
void setExpectedCount (int val)
 
void addExpectedCount (int val)
 
int received () const
 
int expected () const
 
bool hasExpected () const
 
bool hasReceivedData () const
 
bool hasReceivedResp () const
 
bool receiveResp (const RespType &val)
 
bool receiveData (const DataType &val)
 
bool receivedDataType (const DataType &val) const
 
bool receivedRespType (const RespType &val) const
 
void print (std::ostream &out) const
 

Private Attributes

ExpectedState< DataType > expectedData
 
ExpectedState< RespType > expectedResp
 
int totalExpected
 

Detailed Description

template<typename RespType, typename DataType>
class ExpectedMap< RespType, DataType >

Definition at line 53 of file ExpectedMap.hh.

Constructor & Destructor Documentation

◆ ExpectedMap()

template<typename RespType , typename DataType >
ExpectedMap< RespType, DataType >::ExpectedMap ( )
inline

Definition at line 131 of file ExpectedMap.hh.

Member Function Documentation

◆ addExpectedCount()

template<typename RespType , typename DataType >
void ExpectedMap< RespType, DataType >::addExpectedCount ( int  val)
inline

◆ addExpectedDataType()

template<typename RespType , typename DataType >
void ExpectedMap< RespType, DataType >::addExpectedDataType ( const DataType &  val)
inline

◆ addExpectedRespType()

template<typename RespType , typename DataType >
void ExpectedMap< RespType, DataType >::addExpectedRespType ( const RespType &  val)
inline

◆ clear()

template<typename RespType , typename DataType >
void ExpectedMap< RespType, DataType >::clear ( int  dataChunks)
inline

◆ expected()

template<typename RespType , typename DataType >
int ExpectedMap< RespType, DataType >::expected ( ) const
inline

◆ hasExpected()

template<typename RespType , typename DataType >
bool ExpectedMap< RespType, DataType >::hasExpected ( ) const
inline

Definition at line 177 of file ExpectedMap.hh.

References ExpectedMap< RespType, DataType >::expected().

◆ hasReceivedData()

template<typename RespType , typename DataType >
bool ExpectedMap< RespType, DataType >::hasReceivedData ( ) const
inline

◆ hasReceivedResp()

template<typename RespType , typename DataType >
bool ExpectedMap< RespType, DataType >::hasReceivedResp ( ) const
inline

◆ print()

template<typename RespType , typename DataType >
void ExpectedMap< RespType, DataType >::print ( std::ostream &  out) const
inline

Definition at line 217 of file ExpectedMap.hh.

References ExpectedMap< RespType, DataType >::expected().

Referenced by operator<<().

◆ received()

template<typename RespType , typename DataType >
int ExpectedMap< RespType, DataType >::received ( ) const
inline

◆ receiveData()

template<typename RespType , typename DataType >
bool ExpectedMap< RespType, DataType >::receiveData ( const DataType &  val)
inline

◆ receivedDataType()

template<typename RespType , typename DataType >
bool ExpectedMap< RespType, DataType >::receivedDataType ( const DataType &  val) const
inline

◆ receivedRespType()

template<typename RespType , typename DataType >
bool ExpectedMap< RespType, DataType >::receivedRespType ( const RespType &  val) const
inline

◆ receiveResp()

template<typename RespType , typename DataType >
bool ExpectedMap< RespType, DataType >::receiveResp ( const RespType &  val)
inline

◆ setExpectedCount()

template<typename RespType , typename DataType >
void ExpectedMap< RespType, DataType >::setExpectedCount ( int  val)
inline

Member Data Documentation

◆ expectedData

template<typename RespType , typename DataType >
ExpectedState<DataType> ExpectedMap< RespType, DataType >::expectedData
private

◆ expectedResp

template<typename RespType , typename DataType >
ExpectedState<RespType> ExpectedMap< RespType, DataType >::expectedResp
private

◆ totalExpected

template<typename RespType , typename DataType >
int ExpectedMap< RespType, DataType >::totalExpected
private

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

Generated on Tue Jun 22 2021 15:28:38 for gem5 by doxygen 1.8.17