![]() |
OpenLB 1.8.1
|
#include <columnVector.h>
Inheritance diagram for olb::ColumnVector< COLUMN, D >:
Collaboration diagram for olb::ColumnVector< COLUMN, D >:Classes | |
| class | const_ptr |
| Read-only proxy for accessing a column vector entry. More... | |
| class | ptr |
| Proxy for accessing a column vector entry. More... | |
Public Member Functions | |
| ColumnVector (std::size_t count) | |
| ColumnVector (ColumnVector &&rhs) | |
| std::size_t | getSize () const |
| const COLUMN & | operator[] (unsigned iDim) const |
| COLUMN & | operator[] (unsigned iDim) |
| auto | getRow (std::size_t i) const |
| Return copy of data at index i. | |
| auto | setRow (std::size_t i, const Vector< typename COLUMN::value_t, D > &value) |
| ptr | getRowPointer (std::size_t i) |
| const_ptr | getRowPointer (std::size_t i) const |
| void | swap (std::size_t i, std::size_t j) |
| Swap contents of row i and row j. | |
| void | resize (std::size_t newCount) override |
| 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::ColumnVectorBase | |
| virtual | ~ColumnVectorBase () |
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 | |
Static Public Attributes | |
| static constexpr unsigned | d = D |
Protected Attributes | |
| std::size_t | _count |
| Number of rows. | |
| std::array< COLUMN, D > | _column |
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. | |
Vector of columns.
Base storage of FieldArrayD and as such all field data including populations
Definition at line 58 of file columnVector.h.
|
inline |
Definition at line 70 of file columnVector.h.
|
inline |
Definition at line 77 of file columnVector.h.
|
overridevirtual |
Return a pointer to the memory of the current block and its size for the serializable interface.
Implements olb::Serializable.
Definition at line 167 of file columnVector.h.
|
overridevirtual |
Number of data blocks for the serializable interface.
Implements olb::Serializable.
Definition at line 155 of file columnVector.h.
References olb::ColumnVector< COLUMN, D >::getNblock().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
Return copy of data at index i.
Definition at line 97 of file columnVector.h.
References olb::Vector().
Here is the call graph for this function:
|
inline |
Definition at line 116 of file columnVector.h.
Here is the caller graph for this function:
|
inline |
Definition at line 121 of file columnVector.h.
|
overridevirtual |
Binary size for the serializer.
Implements olb::Serializable.
Definition at line 161 of file columnVector.h.
References olb::ColumnVector< COLUMN, D >::getSerializableSize().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
|
inline |
Definition at line 91 of file columnVector.h.
|
inline |
Definition at line 86 of file columnVector.h.
|
overridevirtual |
Reimplemented from olb::Serializable.
Definition at line 180 of file columnVector.h.
|
inlineoverridevirtual |
Implements olb::ColumnVectorBase.
Reimplemented in olb::FieldArrayD< T, DESCRIPTOR, PLATFORM, FIELD >, olb::FieldArrayD< int, DESCRIPTOR, Platform::CPU_SISD, NORMAL >, olb::FieldArrayD< S, olb::descriptors::SPATIAL_DESCRIPTOR< 2 >, Platform::CPU_SISD, olb::descriptors::MATERIAL >, olb::FieldArrayD< T, DESCRIPTOR, Platform::CPU_SISD, NORMAL >, olb::FieldArrayD< T, DESCRIPTOR, Platform::CPU_SISD, olb::fields::PHYS_R >, olb::FieldArrayD< T, DESCRIPTOR, Platform::CPU_SISD, typename FUNCTOR::result_field >, and olb::FieldArrayD< T, olb::descriptors::SPATIAL_DESCRIPTOR< 2 >, Platform::CPU_SISD, olb::descriptors::MATERIAL >.
Definition at line 137 of file columnVector.h.
|
inline |
Definition at line 109 of file columnVector.h.
|
inline |
Swap contents of row i and row j.
Required to realize sorted column stores in CellIndexListD
Definition at line 130 of file columnVector.h.
|
protected |
Definition at line 62 of file columnVector.h.
|
protected |
Number of rows.
Definition at line 61 of file columnVector.h.
|
staticconstexpr |
Definition at line 68 of file columnVector.h.