serialized representation of CouplingData
More...
#include <SerializedStamples.hpp>
|
void | deserializeInto (const Eigen::VectorXd &timeStamps, const cplscheme::PtrCouplingData data) |
| Deserialize data from this SerializedStamples into provided CouplingData.
|
|
const Eigen::VectorXd & | values () const |
| const reference to serialized values. Used for sending serialized values.
|
|
Eigen::VectorXd & | values () |
| Reference to serialized gradients. Used for storing received serialized values into.
|
|
const Eigen::VectorXd & | gradients () const |
| const reference to serialized gradients. Used for sending serialized gradients.
|
|
Eigen::VectorXd & | gradients () |
| Reference to serialized gradients. Used for storing received serialized values into.
|
|
int | nTimeSteps () const |
| Returns number of timeSteps.
|
|
serialized representation of CouplingData
Definition at line 14 of file SerializedStamples.hpp.
◆ SerializedStamples()
precice::com::serialize::SerializedStamples::SerializedStamples |
( |
| ) |
|
|
privatedefault |
◆ allocate()
◆ deserialize()
void precice::com::serialize::SerializedStamples::deserialize |
( |
const Eigen::VectorXd | timeStamps, |
|
|
cplscheme::PtrCouplingData | data ) const |
|
private |
Deserialize _values and (if required by data) _gradients into timeStepsStorage of data. Use provided timeStamps.
- Parameters
-
Definition at line 74 of file SerializedStamples.cpp.
◆ deserializeInto()
void precice::com::serialize::SerializedStamples::deserializeInto |
( |
const Eigen::VectorXd & | timeStamps, |
|
|
const cplscheme::PtrCouplingData | data ) |
Deserialize data from this SerializedStamples into provided CouplingData.
- Parameters
-
timeStamps | Corresponding time stamps for deserialized data |
data | pointer to CouplingData the SerializedStampes will be deserialized into |
Definition at line 31 of file SerializedStamples.cpp.
◆ empty()
Create SerializedStamples with allocated buffers according to size of CouplingData.
- Parameters
-
timeStamps | Corresponding time stamps that will be stored in SerializedSamples |
data | pointer to CouplingData defining size of buffer and whether gradient data exists |
- Returns
- SerializedStamples has allocated data buffers for serialized data
Definition at line 20 of file SerializedStamples.cpp.
◆ gradients() [1/2]
Eigen::VectorXd & precice::com::serialize::SerializedStamples::gradients |
( |
| ) |
|
Reference to serialized gradients. Used for storing received serialized values into.
- Returns
- const Eigen::VectorXd&
Definition at line 119 of file SerializedStamples.cpp.
◆ gradients() [2/2]
const Eigen::VectorXd & precice::com::serialize::SerializedStamples::gradients |
( |
| ) |
const |
const reference to serialized gradients. Used for sending serialized gradients.
- Returns
- const Eigen::VectorXd&
Definition at line 114 of file SerializedStamples.cpp.
◆ nTimeSteps()
int precice::com::serialize::SerializedStamples::nTimeSteps |
( |
| ) |
const |
◆ serialize()
◆ serializeGradients()
Serialize gradients from timeStepsStorage of data into _gradients.
- Parameters
-
data | the data that is serialized |
Definition at line 60 of file SerializedStamples.cpp.
◆ serializeValues()
Serialize values from timeStepsStorage of data into _values.
- Parameters
-
data | the data that is serialized |
Definition at line 47 of file SerializedStamples.cpp.
◆ values() [1/2]
Eigen::VectorXd & precice::com::serialize::SerializedStamples::values |
( |
| ) |
|
Reference to serialized gradients. Used for storing received serialized values into.
- Returns
- const Eigen::VectorXd&
Definition at line 109 of file SerializedStamples.cpp.
◆ values() [2/2]
const Eigen::VectorXd & precice::com::serialize::SerializedStamples::values |
( |
| ) |
const |
const reference to serialized values. Used for sending serialized values.
- Returns
- const Eigen::VectorXd&
Definition at line 104 of file SerializedStamples.cpp.
◆ _gradients
Eigen::VectorXd precice::com::serialize::SerializedStamples::_gradients |
|
private |
◆ _timeSteps
int precice::com::serialize::SerializedStamples::_timeSteps = 0 |
|
private |
◆ _values
Eigen::VectorXd precice::com::serialize::SerializedStamples::_values |
|
private |
The documentation for this class was generated from the following files: