NeoN
WIP Prototype of a modern OpenFOAM core
|
Data structure that stores a segmented fields or a vector of vectors. More...
#include <segmentedVector.hpp>
Public Member Functions | |
SegmentedVector (const Executor &exec, localIdx size, localIdx numSegments) | |
Create a segmented field with a given size and number of segments. | |
SegmentedVector (const Vector< IndexType > &intervals) | |
SegmentedVector (const Vector< ValueType > &values, const Vector< IndexType > &segments) | |
Constructor to create a segmentedVector from values and the segments. | |
const Executor & | exec () const |
Get the executor associated with the segmented field. | |
localIdx | size () const |
Get the size of the segmented field. | |
localIdx | numSegments () const |
Get the number of segments in the segmented field. | |
SegmentedVectorView< ValueType, IndexType > | view () & |
get a view of the segmented field | |
SegmentedVectorView< ValueType, IndexType > | view () &&=delete |
std::pair< View< ValueType >, View< IndexType > > | spans () & |
get the combined value and range spans of the segmented field | |
std::pair< View< ValueType >, View< IndexType > > | spans () &&=delete |
const Vector< ValueType > & | values () const |
const Vector< IndexType > & | segments () const |
Data structure that stores a segmented fields or a vector of vectors.
Definition at line 127 of file segmentedVector.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 138 of file segmentedVector.hpp.
|
inline |
Definition at line 147 of file segmentedVector.hpp.
|
inline |
Constructor to create a segmentedVector from values and the segments.
values | The values of the segmented field. |
segments | The segments of the segmented field. |
Definition at line 161 of file segmentedVector.hpp.
|
inline |
Get the executor associated with the segmented field.
Definition at line 172 of file segmentedVector.hpp.
|
inline |
Get the number of segments in the segmented field.
Definition at line 184 of file segmentedVector.hpp.
|
inline |
Definition at line 213 of file segmentedVector.hpp.
|
inline |
Get the size of the segmented field.
Definition at line 178 of file segmentedVector.hpp.
|
inline |
get the combined value and range spans of the segmented field
Definition at line 203 of file segmentedVector.hpp.
|
delete |
|
inline |
Definition at line 211 of file segmentedVector.hpp.
|
inline |
get a view of the segmented field
Definition at line 191 of file segmentedVector.hpp.
|
delete |