38#include "../tapes/interfaces/editingTapeInterface.hpp"
39#include "../tools/parallel/parallelToolbox.hpp"
40#include "activeTypeBase.hpp"
53 template<
typename T_Tape,
typename T_ParallelToolbox>
74 typename ParallelToolbox::template StaticThreadLocalPointer<Tape, ParallelActiveType>;
96 static_cast<Base&
>(*this) =
static_cast<Base const&
>(v);
100 using Base::operator=;
109 return *(tape.get());
130 template<
typename Tape,
typename ParallelToolbox>
132 ParallelActiveType<Tape, ParallelToolbox>::tape;
136 using CODI_DEFAULT_PARALLEL_ACTIVE_TYPE =
137 ParallelActiveType<CODI_DEFAULT_PARALLEL_TAPE, CODI_DEFAULT_PARALLEL_TOOLBOX>;
#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
CoDiPack - Code Differentiation Package.
Definition codi.hpp:90
Represents the base implementation concrete lvalue in the CoDiPack expression tree.
Definition activeTypeBase.hpp:64
Impl const & StoreAs
Defines how this expression is stored in an expression tree.
Definition activeTypeBase.hpp:147
RealTraits::PassiveReal< Real > PassiveReal
Basic computation type.
Definition activeTypeBase.hpp:77
typename Tape::Identifier Identifier
See LhsExpressionInterface.
Definition activeTypeBase.hpp:78
Impl ActiveResult
Type into which the expression can be converted. Usually also the type from which it is constructed.
Definition activeTypeBase.hpp:148
typename Tape::Gradient Gradient
See LhsExpressionInterface.
Definition activeTypeBase.hpp:79
LhsExpressionInterface< Real, Gradient, T_Tape, T_Impl > Base
Base class abbreviation.
Definition activeTypeBase.hpp:81
typename Tape::Real Real
See LhsExpressionInterface.
Definition activeTypeBase.hpp:76
Represents a concrete lvalue in the CoDiPack expression tree.
Definition parallelActiveType.hpp:54
static Tape & getTape()
Get a reference to the tape which manages this expression.
Definition parallelActiveType.hpp:108
typename ParallelToolbox::template StaticThreadLocalPointer< Tape, ParallelActiveType > ThreadLocalTapePointer
< See ActiveTypeBase.
Definition parallelActiveType.hpp:73
ParallelActiveType & operator=(ParallelActiveType const &v)
See ActiveTypeBase::operator=(ActiveTypeBase const&).
Definition parallelActiveType.hpp:95
T_ParallelToolbox ParallelToolbox
See ParallelActiveType.
Definition parallelActiveType.hpp:60
~ParallelActiveType()
Destructor.
Definition parallelActiveType.hpp:88
T_Tape Tape
See ParallelActiveType.
Definition parallelActiveType.hpp:58
ParallelActiveType(ParallelActiveType const &v)
Constructor.
Definition parallelActiveType.hpp:83
static void setTapePtr(Tape *other)
Set the thread-local tape pointer.
Definition parallelActiveType.hpp:123
static Tape * getTapePtr()
Get the thread-local tape pointer.
Definition parallelActiveType.hpp:118