SPH
Public Member Functions | List of all members
TimeColumn Class Reference

Helper column printing current run time. This value is the same for every particle. More...

#include <Column.h>

Inheritance diagram for TimeColumn:
ITextColumn Polymorphic

Public Member Functions

virtual Dynamic evaluate (const Storage &UNUSED(storage), const Statistics &stats, const Size UNUSED(particleIdx)) const override
 
virtual void accumulate (Storage &, const Dynamic, const Size) const override
 Reads the value of the column and saves it into the storage, if possible. More...
 
virtual std::string getName () const override
 Returns a name of the column. More...
 
virtual ValueEnum getType () const override
 Returns the value type of the column. More...
 
- Public Member Functions inherited from ITextColumn
virtual Dynamic evaluate (const Storage &storage, const Statistics &stats, const Size particleIdx) const =0
 Returns the value of the output column for given particle. More...
 
- Public Member Functions inherited from Polymorphic
virtual ~Polymorphic ()
 

Detailed Description

Helper column printing current run time. This value is the same for every particle.

Definition at line 291 of file Column.h.

Member Function Documentation

◆ accumulate()

virtual void TimeColumn::accumulate ( Storage storage,
const  value,
const  particleIdx 
) const
inlineoverridevirtual

Reads the value of the column and saves it into the storage, if possible.

Parameters
storageParticle storage where the value is stored
valueAccumulated value, must be the same type as this column. Checked by assert.
particleIdxIndex of accumulated particle; if larger than current size of the storage, the storage is resized accordingly.
Exceptions
Exceptionif value cannot be accumulated.

Implements ITextColumn.

Definition at line 299 of file Column.h.

◆ evaluate()

virtual Dynamic TimeColumn::evaluate ( const Storage UNUSEDstorage,
const Statistics stats,
const Size   UNUSEDparticleIdx 
) const
inlineoverridevirtual

Definition at line 293 of file Column.h.

◆ getName()

virtual std::string TimeColumn::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 303 of file Column.h.

◆ getType()

virtual ValueEnum TimeColumn::getType ( ) const
inlineoverridevirtual

Returns the value type of the column.

Implements ITextColumn.

Definition at line 307 of file Column.h.


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