Go to the documentation of this file.
38 #ifndef __MEM_RUBY_COMMON_EXPECTEDMAP_HH__
39 #define __MEM_RUBY_COMMON_EXPECTEDMAP_HH__
43 #include <unordered_map>
52 template<
typename RespType,
typename DataType>
57 template<
typename Type>
64 return static_cast<std::size_t
>(
t);
223 template<
typename RespType,
typename DataType>
232 #endif // __MEM_RUBY_COMMON_EXPECTEDMAP_HH__
bool hasReceivedData() const
bool receivedDataType(const DataType &val) const
bool receiveResp(const RespType &val)
void clear(int msg_chunks)
void setExpectedCount(int val)
bool hasReceivedResp() const
ExpectedState< DataType > expectedData
void addExpectedRespType(const RespType &val)
void addExpectedType(const Type &val)
std::ostream & operator<<(std::ostream &out, const ExpectedMap< RespType, DataType > &obj)
std::unordered_map< Type, bool, EnumClassHash > expectedTypes
bool receivedRespType(const RespType &val) const
ExpectedState< RespType > expectedResp
bool receivedType(const Type &val) const
void print(std::ostream &out) const
bool increaseReceived(const Type &val)
void addExpectedDataType(const DataType &val)
std::size_t operator()(Type t) const
void addExpectedCount(int val)
bool receiveData(const DataType &val)
void clear(int dataChunks)
Generated on Tue Jun 22 2021 15:28:29 for gem5 by doxygen 1.8.17