25#ifndef CPU_SISD_COLUMN_HH
26#define CPU_SISD_COLUMN_HH
47 return _count *
sizeof(T) +
sizeof(std::size_t);
53 std::size_t currentBlock = 0;
54 bool* dataPtr =
nullptr;
56 registerVar(iBlock, sizeBlock, currentBlock, dataPtr, _count);
57 if (loadingMode && iBlock == 1) {
60 registerVar(iBlock, sizeBlock, currentBlock, dataPtr, *data(), _count);
75 return _count *
sizeof(T) +
sizeof(std::ptrdiff_t) +
sizeof(std::size_t);
81 std::size_t currentBlock = 0;
82 bool* dataPtr =
nullptr;
84 registerVar(iBlock, sizeBlock, currentBlock, dataPtr, _shift);
85 registerVar(iBlock, sizeBlock, currentBlock, dataPtr, _count);
86 registerVar(iBlock, sizeBlock, currentBlock, dataPtr, *_data.get(), _count);
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.
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.
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.
std::size_t getSerializableSize() const override
Binary size for the serializer.
Top level namespace for all of OpenLB.