39#include "../tapes/interfaces/fullTapeInterface.hpp"
40#include "../traits/realTraits.hpp"
41#include "activeType.hpp"
42#include "assignmentOperators.hpp"
43#include "incrementOperators.hpp"
44#include "lhsExpressionInterface.hpp"
60 template<
typename T_ActiveType>
63 typename T_ActiveType::Tape, ImmutableActiveType<T_ActiveType>>,
65 public IncrementOperators<typename T_ActiveType::Tape, ImmutableActiveType<T_ActiveType>> {
71 using Real =
typename Tape::Real;
80 Real const primalValue;
88 : primalValue(
value), identifier(identifier) {
#define CODI_INLINE
See codi::Config::ForcedInlines.
Definition config.h:457
#define CODI_DD(Type, Default)
Abbreviation for CODI_DECLARE_DEFAULT.
Definition macros.hpp:94
#define CODI_T(...)
Abbreviation for CODI_TEMPLATE.
Definition macros.hpp:111
typename TraitsImplementation< Type >::PassiveReal PassiveReal
The original computation type, that was used in the application.
Definition realTraits.hpp:117
CoDiPack - Code Differentiation Package.
Definition codi.hpp:90
T_Tape Tape
See ActiveType.
Definition activeType.hpp:55
static Tape & getTape()
Get a reference to the tape which manages this expression.
Definition activeType.hpp:99
Impl ActiveResult
Type into which the expression can be converted. Usually also the type from which it is constructed.
Definition activeTypeBase.hpp:148
Implementation of assignment operators for LhsExpressionInterface implementations.
Definition assignmentOperators.hpp:54
Creates a pseudo active type from a data value. Can be used to overlay existing data with immutable a...
Definition immutableActiveType.hpp:65
typename ActiveType::Tape Tape
See ActiveType.
Definition immutableActiveType.hpp:69
typename ActiveType::ActiveResult ActiveResult
Type into which the expression can be converted. Usually also the type from which it is constructed.
Definition immutableActiveType.hpp:113
Real const & value() const
Get a constant reference to the lvalue represented by the expression.
Definition immutableActiveType.hpp:129
typename Tape::Identifier Identifier
See LhsExpressionInterface.
Definition immutableActiveType.hpp:73
ImmutableActiveType< ActiveType > & operator=(ImmutableActiveType< ActiveType > const &v)=delete
This class is immutable, delete all assignment operators.
typename Tape::Real Real
See LhsExpressionInterface.
Definition immutableActiveType.hpp:71
typename Tape::Gradient Gradient
See LhsExpressionInterface.
Definition immutableActiveType.hpp:74
Identifier const & getIdentifier() const
Definition immutableActiveType.hpp:124
ImmutableActiveType const & StoreAs
Defines how this expression is stored in an expression tree.
Definition immutableActiveType.hpp:112
ImmutableActiveType(Real const &value, Identifier const &identifier)
Definition immutableActiveType.hpp:87
~ImmutableActiveType()
Definition immutableActiveType.hpp:101
T_ActiveType ActiveType
See ImmutableActiveType.
Definition immutableActiveType.hpp:68
static Tape & getTape()
Get a reference to the tape which manages this expression.
Definition immutableActiveType.hpp:134
ImmutableActiveType(ActiveType const &value)
Definition immutableActiveType.hpp:94
RealTraits::PassiveReal< Real > PassiveReal
Basic computation type.
Definition immutableActiveType.hpp:72
Implementation of increment operators for LhsExpressionInterface implementations.
Definition incrementOperators.hpp:54
Base class for all CoDiPack lvalue expression.
Definition lhsExpressionInterface.hpp:63
Real const & getValue() const
Get the primal value of this lvalue.
Definition lhsExpressionInterface.hpp:125