NeoFOAM
WIP Prototype of a modern OpenFOAM core
|
Data structure that stores a segmented fields or a vector of vectors. More...
#include <segmentedField.hpp>
Public Member Functions | |
SegmentedField (const Executor &exec, size_t size, size_t numSegments) | |
Create a segmented field with a given size and number of segments. | |
SegmentedField (const Field< IndexType > &intervals) | |
SegmentedField (const Field< ValueType > &values, const Field< IndexType > &segments) | |
Constructor to create a segmentedField from values and the segments. | |
const Executor & | exec () const |
Get the executor associated with the segmented field. | |
size_t | size () const |
Get the size of the segmented field. | |
size_t | numSegments () const |
Get the number of segments in the segmented field. | |
SegmentedFieldView< ValueType, IndexType > | view () & |
get a view of the segmented field | |
SegmentedFieldView< ValueType, IndexType > | view () &&=delete |
std::pair< std::span< ValueType >, std::span< IndexType > > | spans () & |
get the combined value and range spans of the segmented field | |
std::pair< std::span< ValueType >, std::span< IndexType > > | spans () &&=delete |
const Field< ValueType > & | values () const |
const Field< IndexType > & | segments () const |
Data structure that stores a segmented fields or a vector of vectors.
Definition at line 121 of file segmentedField.hpp.
|
inline |
Create a segmented field with a given size and number of segments.
exec | Executor associated to the matrix |
size | size of the matrix |
numSegments | number of segments |
Definition at line 132 of file segmentedField.hpp.
|
inline |
Definition at line 141 of file segmentedField.hpp.
|
inline |
Constructor to create a segmentedField from values and the segments.
values | The values of the segmented field. |
segments | The segments of the segmented field. |
Definition at line 155 of file segmentedField.hpp.
|
inline |
Get the executor associated with the segmented field.
Definition at line 166 of file segmentedField.hpp.
|
inline |
Get the number of segments in the segmented field.
Definition at line 178 of file segmentedField.hpp.
|
inline |
Definition at line 207 of file segmentedField.hpp.
|
inline |
Get the size of the segmented field.
Definition at line 172 of file segmentedField.hpp.
|
inline |
get the combined value and range spans of the segmented field
Definition at line 197 of file segmentedField.hpp.
|
delete |
|
inline |
Definition at line 205 of file segmentedField.hpp.
|
inline |
get a view of the segmented field
Definition at line 185 of file segmentedField.hpp.
|
delete |