39#include "../tapes/interfaces/fullTapeInterface.hpp"
40#include "../traits/realTraits.hpp"
41#include "assignmentOperators.hpp"
42#include "incrementOperators.hpp"
43#include "lhsExpressionInterface.hpp"
58 template<
typename T_Tape>
60 T_Tape, ActiveTypeStatelessTape<T_Tape>>,
67 using Real =
typename Tape::Real;
96 template<
typename Rhs>
98 Base::init(rhs.
cast().getValue(), EventHints::Statement::Expression);
108 static_cast<Base&
>(*this) =
static_cast<Base const&
>(v);
112 using Base::operator=;
#define CODI_INLINE
See codi::Config::ForcedInlines.
Definition config.h:457
#define CODI_INLINE_NO_FA
See codi::Config::ForcedInlines.
Definition config.h:459
#define CODI_DD(Type, Default)
Abbreviation for CODI_DECLARE_DEFAULT.
Definition macros.hpp:94
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
Represents a concrete lvalue in the CoDiPack expression tree.
Definition activeTypeStatelessTape.hpp:62
Real & value()
Get a reference to the lvalue represented by the expression.
Definition activeTypeStatelessTape.hpp:137
RealTraits::PassiveReal< Real > PassiveReal
Basic computation type.
Definition activeTypeStatelessTape.hpp:68
ActiveTypeStatelessTape(ExpressionInterface< Real, Rhs > const &rhs)
Constructor.
Definition activeTypeStatelessTape.hpp:97
typename Tape::Real Real
See LhsExpressionInterface.
Definition activeTypeStatelessTape.hpp:67
T_Tape Tape
See ActiveTypeStatelessTape.
Definition activeTypeStatelessTape.hpp:65
ActiveTypeStatelessTape & operator=(ActiveTypeStatelessTape const &v)
See ActiveTypeStatelessTape::operator=(ActiveTypeStatelessTape const&).
Definition activeTypeStatelessTape.hpp:107
static Tape getTape()
Get a reference to the tape which manages this expression.
Definition activeTypeStatelessTape.hpp:147
typename Tape::Gradient Gradient
See LhsExpressionInterface.
Definition activeTypeStatelessTape.hpp:70
constexpr ActiveTypeStatelessTape(PassiveReal const &value)
Constructor.
Definition activeTypeStatelessTape.hpp:87
Real const & value() const
Get a constant reference to the lvalue represented by the expression.
Definition activeTypeStatelessTape.hpp:142
ActiveTypeStatelessTape(ActiveTypeStatelessTape const &v)
Constructor.
Definition activeTypeStatelessTape.hpp:90
Identifier const & getIdentifier() const
Definition activeTypeStatelessTape.hpp:132
typename Tape::Identifier Identifier
See LhsExpressionInterface.
Definition activeTypeStatelessTape.hpp:69
constexpr ActiveTypeStatelessTape()=default
Constructor.
Identifier & getIdentifier()
Definition activeTypeStatelessTape.hpp:127
ActiveTypeStatelessTape const & StoreAs
Defines how this expression is stored in an expression tree.
Definition activeTypeStatelessTape.hpp:118
Implementation of assignment operators for LhsExpressionInterface implementations.
Definition assignmentOperators.hpp:54
Base class for all CoDiPack expressions.
Definition expressionInterface.hpp:59
Impl const & cast() const
Cast to the implementation.
Definition expressionInterface.hpp:75
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
void init(Real const &newValue, EventHints::Statement statementType)
Definition lhsExpressionInterface.hpp:210