25#ifndef CPU_SIMD_COLUMN_HH
26#define CPU_SIMD_COLUMN_HH
45 return _count *
sizeof(T) +
sizeof(std::size_t);
51 std::size_t currentBlock = 0;
52 bool* dataPtr =
nullptr;
54 registerVar(iBlock, sizeBlock, currentBlock, dataPtr, _count);
55 if (loadingMode && iBlock == 1) {
58 registerVar(iBlock, sizeBlock, currentBlock, dataPtr, *data(), _count);
73 return 2*_size +
sizeof(std::ptrdiff_t) +
sizeof(std::size_t);
79 std::size_t currentBlock = 0;
80 bool* dataPtr =
nullptr;
82 registerVar(iBlock, sizeBlock, currentBlock, dataPtr, _shift);
83 registerVar(iBlock, sizeBlock, currentBlock, dataPtr, _count);
84 registerVar(iBlock, sizeBlock, currentBlock, dataPtr, *_base, 2*_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.