Data handling methods for aggregated types that contain CoDiPack active types. More...
#include <realTraits.hpp>
Public Types | |
| using | Identifier = typename Type::Identifier |
| Type of a corresponding aggregate of identifiers. | |
| using | Real = typename Type::Real |
| Type of a corresponding aggregate of primal values. | |
| using | Type = T_Type |
| See DataExtraction. | |
Public Member Functions | |
| inlinestatic Identifier | getIdentifier (Type const &v) |
| Extract an aggregate of identifiers from an aggregate of active types. | |
| inlinestatic Real | getValue (Type const &v) |
| Extract an aggregate of primal values from an aggregate of active types. | |
| inlinestatic void | setIdentifier (Type &v, Identifier const &identifier) |
| Set the identifiers of a type of aggregated active types. | |
| inlinestatic void | setValue (Type &v, Real const &value) |
| Set the primal values of an aggregate of active types. | |
Data handling methods for aggregated types that contain CoDiPack active types.
An aggregated type is for example std::complex<codi::RealReverse>, which contains two CoDiPack values. The accessor methods in this class make the corresponding aggregates of primal values and identifiers available, that is, std::complex<double> for the primal values and std::complex<int> for the identifiers.
| T_Type | Any type that contains a CoDiPack type. |