KratosMultiphysics
KRATOS Multiphysics (Kratos) is a framework for building parallel, multi-disciplinary simulation software, aiming at modularity, extensibility, and high performance. Kratos is written in C++, and counts with an extensive Python interface.
|
This class is used represent the flattened data array. More...
#include <literal_flat_expression.h>
Public Member Functions | |
Life cycle | |
Data (const IndexType Size) | |
Construct a new Data object where the array memory is managed by the object. More... | |
Data (TRawDataType *pBegin, const IndexType Size) | |
Construct a new Data object, where the underlying array memory is not managed by the object. More... | |
~Data () | |
Operators | |
iterator | begin () noexcept |
iterator | end () noexcept |
const_iterator | begin () const noexcept |
const_iterator | end () const noexcept |
const_iterator | cbegin () const noexcept |
const_iterator | cend () const noexcept |
IndexType | size () const noexcept |
This class is used represent the flattened data array.
Instances of this class used to represent the data in the flat array. This representation can be done in two ways:
1) If the data is moved, then this instance will hold a pointer to the TRawDataType flattened data array. In this case it is important to make sure that the TRawDataType flattened data array lives until this expression is destructed. In this case mIsManaged will be false. 2) If the data is copied, then a flattened array for the required size is created at the construction in the heap, and will be destructed when the @ref Data instance is destructed. Hence, the copy of the data is stored and life time is managed by this instance.
|
inline |
Construct a new Data object where the array memory is managed by the object.
Size | Size of the allocated array. |
|
inline |
Construct a new Data object, where the underlying array memory is not managed by the object.
pBegin | Pointer to the memory array. |
|
inline |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |