1
0
forked from fsfw/fsfw

Merge branch 'master' into gaisser_fixes_fixedMap

This commit is contained in:
2020-09-10 15:27:15 +02:00
7 changed files with 127 additions and 68 deletions

View File

@ -4,6 +4,7 @@
#include "ArrayList.h"
#include "../returnvalues/HasReturnvaluesIF.h"
#include <utility>
#include <type_traits>
/**
* \ingroup container
@ -14,6 +15,8 @@
*/
template<typename key_t, typename T>
class FixedMap: public SerializeIF {
static_assert (std::is_trivially_copyable<T>::value or std::is_base_of<SerializeIF, T>::value,
"Types used in FixedMap must either be trivial copy-able or a derived Class from SerializeIF to be serialize-able");
public:
static const uint8_t INTERFACE_ID = CLASS_ID::FIXED_MAP;
static const ReturnValue_t KEY_ALREADY_EXISTS = MAKE_RETURN_CODE(0x01);