gem5 [DEVELOP-FOR-25.0]
Loading...
Searching...
No Matches
gem5::ruby::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 gem5::ruby::ExpectedMap< RespType, DataType >

Definition at line 59 of file ExpectedMap.hh.

Constructor & Destructor Documentation

◆ ExpectedMap()

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

Definition at line 137 of file ExpectedMap.hh.

References expectedData, expectedResp, and totalExpected.

Member Function Documentation

◆ addExpectedCount()

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

Definition at line 168 of file ExpectedMap.hh.

References totalExpected, and gem5::X86ISA::val.

◆ addExpectedDataType()

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

Definition at line 160 of file ExpectedMap.hh.

References expectedData, and gem5::X86ISA::val.

◆ addExpectedRespType()

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

Definition at line 153 of file ExpectedMap.hh.

References expectedResp, and gem5::X86ISA::val.

◆ clear()

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

Definition at line 144 of file ExpectedMap.hh.

References expectedData, expectedResp, and totalExpected.

◆ expected()

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

Definition at line 180 of file ExpectedMap.hh.

References received(), and totalExpected.

Referenced by hasExpected(), and print().

◆ hasExpected()

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

Definition at line 183 of file ExpectedMap.hh.

References expected().

◆ hasReceivedData()

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

Definition at line 186 of file ExpectedMap.hh.

References expectedData.

◆ hasReceivedResp()

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

Definition at line 189 of file ExpectedMap.hh.

References expectedResp.

◆ print()

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

Definition at line 223 of file ExpectedMap.hh.

References expected().

Referenced by gem5::ruby::operator<<().

◆ received()

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

Definition at line 174 of file ExpectedMap.hh.

References expectedData, and expectedResp.

Referenced by expected(), receiveData(), and receiveResp().

◆ receiveData()

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

Definition at line 202 of file ExpectedMap.hh.

References expectedData, received(), totalExpected, and gem5::X86ISA::val.

◆ receivedDataType()

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

Definition at line 210 of file ExpectedMap.hh.

References expectedData, and gem5::X86ISA::val.

◆ receivedRespType()

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

Definition at line 217 of file ExpectedMap.hh.

References expectedResp, and gem5::X86ISA::val.

◆ receiveResp()

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

Definition at line 194 of file ExpectedMap.hh.

References expectedResp, received(), totalExpected, and gem5::X86ISA::val.

◆ setExpectedCount()

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

Definition at line 166 of file ExpectedMap.hh.

References totalExpected, and gem5::X86ISA::val.

Member Data Documentation

◆ expectedData

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

◆ expectedResp

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

◆ totalExpected

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

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

Generated on Mon May 26 2025 09:19:36 for gem5 by doxygen 1.13.2