OpenLB 1.7
|
Cyclic column for usage in ColumnVector. More...
#include <column.h>
Public Types | |
using | value_t = T |
Public Types inherited from olb::AbstractCyclicColumn< T > | |
using | value_type = T |
Public Member Functions | |
CyclicColumn (std::size_t count) | |
CyclicColumn (CyclicColumn< T > &&rhs) | |
~CyclicColumn ()=default | |
const T & | operator[] (std::size_t i) const override |
T & | operator[] (std::size_t i) override |
std::size_t | size () const |
void | refresh () |
void | rotate (std::ptrdiff_t offset) |
void | resize (std::size_t count) |
void | setProcessingContext (ProcessingContext) |
std::size_t | getNblock () const override |
Number of data blocks for the serializable interface. | |
std::size_t | getSerializableSize () const override |
Binary size for the serializer. | |
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. | |
void | postLoad () override |
Public Member Functions inherited from olb::Serializable | |
virtual | ~Serializable ()=default |
template<bool includeLogOutputDir = true> | |
bool | save (std::string fileName="", const bool enforceUint=false) |
Save Serializable into file fileName | |
template<bool includeLogOutputDir = true> | |
bool | load (std::string fileName="", const bool enforceUint=false) |
Load Serializable from file fileName | |
bool | save (std::uint8_t *buffer) |
Save Serializable into buffer of length getSerializableSize | |
bool | load (const std::uint8_t *buffer) |
Load Serializable from buffer of length getSerializableSize | |
Additional Inherited Members | |
Protected Member Functions inherited from olb::Serializable | |
template<typename DataType > | |
void | registerVar (const std::size_t iBlock, std::size_t &sizeBlock, std::size_t ¤tBlock, bool *&dataPtr, const DataType &data, const size_t arrayLength=1) const |
Register primitive data types (int , double , ...) or arrays of those. | |
template<typename DataType > | |
void | registerSerializableOfConstSize (const std::size_t iBlock, std::size_t &sizeBlock, std::size_t ¤tBlock, bool *&dataPtr, DataType &data, const bool loadingMode=false) |
Register Serializable object of constant size. | |
template<typename DataType > | |
void | registerSerializablesOfConstSize (const std::size_t iBlock, std::size_t &sizeBlock, std::size_t ¤tBlock, bool *&dataPtr, DataType *data, const size_t arrayLength, const bool loadingMode=false) |
Register an array of Serializable objects of constant size. | |
Cyclic column for usage in ColumnVector.
Column type used for propagatable population storage using the branching PS pattern.
using olb::cpu::sisd::CyclicColumn< T >::value_t = T |
|
inline |
|
inline |
Definition at line 151 of file column.h.
References olb::cpu::sisd::CyclicColumn< T >::refresh().
|
default |
|
overridevirtual |
Return a pointer to the memory of the current block and its size for the serializable interface.
Implements olb::Serializable.
Definition at line 79 of file column.hh.
|
overridevirtual |
Number of data blocks for the serializable interface.
Implements olb::Serializable.
Definition at line 67 of file column.hh.
|
overridevirtual |
Binary size for the serializer.
Implements olb::Serializable.
Definition at line 73 of file column.hh.
|
inlineoverridevirtual |
Implements olb::AbstractCyclicColumn< T >.
Definition at line 162 of file column.h.
|
inlineoverridevirtual |
Implements olb::AbstractCyclicColumn< T >.
Definition at line 167 of file column.h.
|
inlineoverridevirtual |
Reimplemented from olb::Serializable.
Definition at line 219 of file column.h.
References olb::cpu::sisd::CyclicColumn< T >::refresh().
|
inline |
Definition at line 177 of file column.h.
References olb::cpu::sisd::CyclicColumn< T >::size().
|
inline |
|
inline |
Definition at line 193 of file column.h.
References olb::cpu::sisd::CyclicColumn< T >::refresh(), and olb::cpu::sisd::CyclicColumn< T >::size().
|
inline |
|
inline |