31template<
typename T,
typename DESCRIPTOR, Platform PLATFORM>
34 std::size_t nBlock = 0;
35 for (
const auto& [_, serializable] : _serializationNames) {
36 nBlock += serializable->getNblock();
41template<
typename T,
typename DESCRIPTOR, Platform PLATFORM>
45 for (
const auto& [_, serializable] : _serializationNames) {
46 size += serializable->getSerializableSize();
51template<
typename T,
typename DESCRIPTOR, Platform PLATFORM>
54 std::size_t currentBlock = 0;
55 bool* dataPtr =
nullptr;
57 for (
const auto& [_, serializable] : _serializationNames) {
58 this->registerSerializableOfConstSize(iBlock, sizeBlock, currentBlock, dataPtr, *serializable, loadingMode);
std::size_t getSerializableSize() const override
Binary size for the serializer.
std::size_t getNblock() const override
Number of data blocks for the serializable interface.
bool * getBlock(std::size_t iBlock, std::size_t &sizeBlock, bool loadingMode) override
Return a pointer to the memory of the current block and its size for the serializable interface.
Top level namespace for all of OpenLB.