38#ifndef __MEM_RUBY_COMMON_EXPECTEDMAP_HH__
39#define __MEM_RUBY_COMMON_EXPECTEDMAP_HH__
43#include <unordered_map>
58template<
typename RespType,
typename DataType>
63 template<
typename Type>
70 return static_cast<std::size_t
>(
t);
229template<
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)
Copyright (c) 2024 - Pranith Kumar Copyright (c) 2020 Inria All rights reserved.
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)