OpenLB 1.8.1
Loading...
Searching...
No Matches
olb::ColumnVectorBase Struct Referenceabstract

Base of all ColumnVector specializations. More...

#include <columnVector.h>

+ Inheritance diagram for olb::ColumnVectorBase:
+ Collaboration diagram for olb::ColumnVectorBase:

Public Member Functions

virtual ~ColumnVectorBase ()
 
virtual void resize (std::size_t newCount)=0
 
- Public Member Functions inherited from olb::Serializable
virtual ~Serializable ()=default
 
virtual bool * getBlock (const std::size_t iBlock, std::size_t &sizeBlock, const bool loadingMode=false)=0
 Returns the address of the i-th block and its size.
 
virtual std::size_t getNblock () const =0
 Returns the number of blocks.
 
virtual std::size_t getSerializableSize () const =0
 Returns the binary size of the data to be saved.
 
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
 
virtual void postLoad ()
 

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 &currentBlock, 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 &currentBlock, 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 &currentBlock, bool *&dataPtr, DataType *data, const size_t arrayLength, const bool loadingMode=false)
 Register an array of Serializable objects of constant size.
 

Detailed Description

Base of all ColumnVector specializations.

Used in AnyFieldArray for anonymous reference to arbirary vector sizes.

Definition at line 47 of file columnVector.h.

Constructor & Destructor Documentation

◆ ~ColumnVectorBase()

virtual olb::ColumnVectorBase::~ColumnVectorBase ( )
inlinevirtual

Definition at line 48 of file columnVector.h.

48{ };

Member Function Documentation

◆ resize()

virtual void olb::ColumnVectorBase::resize ( std::size_t newCount)
pure virtual

Implemented in olb::ColumnVector< COLUMN, D >, olb::ColumnVector< ImplementationOf< FIELD::template column_type< T >, PLATFORM >::type, DESCRIPTOR::template size< FIELD >()>, olb::ColumnVector< ImplementationOf< NORMAL::template column_type< int >, PLATFORM >::type, DESCRIPTOR::template size< NORMAL >()>, olb::ColumnVector< ImplementationOf< NORMAL::template column_type< T >, PLATFORM >::type, DESCRIPTOR::template size< NORMAL >()>, olb::ColumnVector< ImplementationOf< olb::descriptors::MATERIAL::template column_type< S >, PLATFORM >::type, olb::descriptors::SPATIAL_DESCRIPTOR< 2 >::template size< olb::descriptors::MATERIAL >()>, olb::ColumnVector< ImplementationOf< olb::descriptors::MATERIAL::template column_type< T >, PLATFORM >::type, olb::descriptors::SPATIAL_DESCRIPTOR< 2 >::template size< olb::descriptors::MATERIAL >()>, olb::ColumnVector< ImplementationOf< olb::fields::PHYS_R::template column_type< T >, PLATFORM >::type, DESCRIPTOR::template size< olb::fields::PHYS_R >()>, olb::ColumnVector< ImplementationOf< typename FUNCTOR::result_field::template column_type< T >, PLATFORM >::type, DESCRIPTOR::template size< typename FUNCTOR::result_field >()>, olb::ColumnVector< olb::cpu::simd::Column< T >, D >, olb::ColumnVector< olb::cpu::sisd::Column< int >, 1 >, 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 >.


The documentation for this struct was generated from the following file: