gem5 [DEVELOP-FOR-25.0]
Loading...
Searching...
No Matches
gem5::ruby::ExpectedMap< RespType, DataType >::ExpectedState< Type > Struct Template Reference

Classes

struct  EnumClassHash
 

Public Member Functions

 ExpectedState ()
 
void clear (int msg_chunks)
 
void addExpectedType (const Type &val)
 
int received () const
 
bool increaseReceived (const Type &val)
 
bool receivedType (const Type &val) const
 

Private Attributes

int chunks
 
int currChunk
 
int numReceived
 
std::unordered_map< Type, bool, EnumClassHashexpectedTypes
 

Detailed Description

template<typename RespType, typename DataType>
template<typename Type>
struct gem5::ruby::ExpectedMap< RespType, DataType >::ExpectedState< Type >

Definition at line 64 of file ExpectedMap.hh.

Constructor & Destructor Documentation

◆ ExpectedState()

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

Definition at line 84 of file ExpectedMap.hh.

References chunks, currChunk, and numReceived.

Member Function Documentation

◆ addExpectedType()

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

Definition at line 98 of file ExpectedMap.hh.

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

◆ clear()

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

Definition at line 89 of file ExpectedMap.hh.

References chunks, currChunk, expectedTypes, and numReceived.

◆ increaseReceived()

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

Definition at line 106 of file ExpectedMap.hh.

References chunks, currChunk, expectedTypes, numReceived, and gem5::X86ISA::val.

◆ received()

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

Definition at line 103 of file ExpectedMap.hh.

References numReceived.

◆ receivedType()

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

Definition at line 122 of file ExpectedMap.hh.

References expectedTypes, gem5::ArmISA::i, and gem5::X86ISA::val.

Member Data Documentation

◆ chunks

template<typename RespType, typename DataType>
template<typename Type>
int gem5::ruby::ExpectedMap< RespType, DataType >::ExpectedState< Type >::chunks
private

Definition at line 78 of file ExpectedMap.hh.

Referenced by clear(), ExpectedState(), and increaseReceived().

◆ currChunk

template<typename RespType, typename DataType>
template<typename Type>
int gem5::ruby::ExpectedMap< RespType, DataType >::ExpectedState< Type >::currChunk
private

Definition at line 79 of file ExpectedMap.hh.

Referenced by clear(), ExpectedState(), and increaseReceived().

◆ expectedTypes

template<typename RespType, typename DataType>
template<typename Type>
std::unordered_map<Type, bool, EnumClassHash> gem5::ruby::ExpectedMap< RespType, DataType >::ExpectedState< Type >::expectedTypes
private

Definition at line 81 of file ExpectedMap.hh.

Referenced by addExpectedType(), clear(), increaseReceived(), and receivedType().

◆ numReceived

template<typename RespType, typename DataType>
template<typename Type>
int gem5::ruby::ExpectedMap< RespType, DataType >::ExpectedState< Type >::numReceived
private

Definition at line 80 of file ExpectedMap.hh.

Referenced by clear(), ExpectedState(), increaseReceived(), and received().


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

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