/home/runner/work/HiCR/HiCR/include/hicr/core/memorySpace.hpp Source File
HiCR
|
memorySpace.hpp
Go to the documentation of this file.
95 HICR_THROW_LOGIC("Increasing memory space usage beyond its capacity (current_usage + increase > capacity | %lu + %lu > %lu)\n", _usage, delta, _size);
107 if (delta > _usage) HICR_THROW_LOGIC("Decreasing memory space usage below zero (probably a bug in HiCR) (current_usage - decrease < 0 | %lu - %lu < 0)\n", _usage, delta);
153 if (input.contains(key) == false) HICR_THROW_LOGIC("The serialized object contains no '%s' key", key.c_str());
154 if (input[key].is_number_unsigned() == false) HICR_THROW_LOGIC("The '%s' entry is not a number", key.c_str());
159 if (input.contains(key) == false) HICR_THROW_LOGIC("The serialized object contains no '%s' key", key.c_str());
160 if (input[key].is_number_unsigned() == false) HICR_THROW_LOGIC("The '%s' entry is not a number", key.c_str());
Definition memorySpace.hpp:45
virtual void serializeImpl(nlohmann::json &output) const
Definition memorySpace.hpp:185
__INLINE__ nlohmann::json serialize() const
Definition memorySpace.hpp:117
__INLINE__ void deserialize(const nlohmann::json &input)
Definition memorySpace.hpp:143
virtual ~MemorySpace()=default
MemorySpace()=default
__INLINE__ void increaseUsage(const size_t delta)
Definition memorySpace.hpp:92
__INLINE__ void decreaseUsage(const size_t delta)
Definition memorySpace.hpp:105
virtual void deserializeImpl(const nlohmann::json &input)
Definition memorySpace.hpp:192
virtual __INLINE__ const size_t getSize() const
Definition memorySpace.hpp:75
Provides a failure model and corresponding exception classes.
Generated by