Returns values of given quantity as stored in storage.
More...
#include <Column.h>
template<typename TValue>
class ValueColumn< TValue >
Returns values of given quantity as stored in storage.
This is the most common column. Most columns for quantities can be added using OutputQuantityFlag, however if additional quantities need to be saved, it can be done using:
INLINE AutoPtr< T > makeAuto(TArgs &&... args)
const EmptyFlags EMPTY_FLAGS
@ TEMPERATURE
Temperature, always a scalar quantity.
@ SURFACE_NORMAL
Vector approximating surface normal.
Output saving data to text (human readable) file.
Returns values of given quantity as stored in storage.
Definition at line 73 of file Column.h.
◆ ValueColumn()
template<typename TValue >
◆ accumulate()
template<typename TValue >
Reads the value of the column and saves it into the storage, if possible.
- Parameters
-
storage | Particle storage where the value is stored |
value | Accumulated value, must be the same type as this column. Checked by assert. |
particleIdx | Index of accumulated particle; if larger than current size of the storage, the storage is resized accordingly. |
- Exceptions
-
- Todo:
- must also resize derivaties, or avoid resizing
Implements ITextColumn.
Definition at line 92 of file Column.h.
◆ evaluate()
template<typename TValue >
◆ getName()
template<typename TValue >
virtual std::string ValueColumn< TValue >::getName |
( |
| ) |
const |
|
inlineoverridevirtual |
Returns a name of the column.
The name is printed in the header of the output file.
Implements ITextColumn.
Definition at line 102 of file Column.h.
◆ getType()
template<typename TValue >
The documentation for this class was generated from the following file:
- /home/pavel/projects/astro/sph/src/core/io/Column.h