CoDiPack  3.0.0
A Code Differentiation Package
SciComp TU Kaiserslautern
Loading...
Searching...
No Matches
codi::RealTraits::DataExtraction< T_Type, typename > Struct Template Reference

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.
 

Detailed Description

template<typename T_Type, typename = void>
struct codi::RealTraits::DataExtraction< T_Type, typename >

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.

Template Parameters
T_TypeAny type that contains a CoDiPack type.

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