38 #ifndef __MEM_RUBY_COMMON_EXPECTEDMAP_HH__
39 #define __MEM_RUBY_COMMON_EXPECTEDMAP_HH__
43 #include <unordered_map>
58 template<
typename RespType,
typename DataType>
63 template<
typename Type>
70 return static_cast<std::size_t
>(
t);
229 template<
typename RespType,
typename DataType>
ExpectedState< DataType > expectedData
void print(std::ostream &out) const
bool hasReceivedResp() const
bool receivedRespType(const RespType &val) const
void addExpectedCount(int val)
void clear(int dataChunks)
bool receivedDataType(const DataType &val) const
void setExpectedCount(int val)
void addExpectedDataType(const DataType &val)
bool receiveResp(const RespType &val)
bool hasReceivedData() const
ExpectedState< RespType > expectedResp
bool receiveData(const DataType &val)
void addExpectedRespType(const RespType &val)
std::ostream & operator<<(std::ostream &os, const BoolVec &myvector)
Reference material can be found at the JEDEC website: UFS standard http://www.jedec....
std::size_t operator()(Type t) const
void addExpectedType(const Type &val)
bool receivedType(const Type &val) const
std::unordered_map< Type, bool, EnumClassHash > expectedTypes
bool increaseReceived(const Type &val)
void clear(int msg_chunks)