41#include "../traits/expressionTraits.hpp"
42#include "../traits/realTraits.hpp"
43#include "logic/nodeInterface.hpp"
58 template<
typename T_Real,
typename T_Impl>
76 return static_cast<Impl const&
>(*this);
79#if CODI_ImplicitConversion
82 Warning::implicitCast<Config::ImplicitConversionWarning>();
84 return cast().getValue();
100 template<
size_t argNumber>
109#ifndef DOXYGEN_DISABLE
110 template<
typename T_Type>
115 using Real =
typename Type::Real;
128 template<
typename Expr>
129 ExpressionTraits::EnableIfExpression<Expr, std::ostream>&
operator<<(std::ostream& out, Expr
const& v) {
#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_UNDEFINED
Used in interface declarations for types that have to be defined in the specializations.
Definition macros.hpp:114
#define CODI_T(...)
Abbreviation for CODI_TEMPLATE.
Definition macros.hpp:111
PassiveReal< Type > const & getPassiveValue(Type const &v)
Get the basic primal value of the type.
Definition realTraits.hpp:127
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
ExpressionTraits::EnableIfExpression< Expr, std::ostream > & operator<<(std::ostream &out, Expr const &v)
Write the primal value to the stream.
Definition expressionInterface.hpp:129
Represents a concrete lvalue in the CoDiPack expression tree.
Definition activeType.hpp:52
Base class for all CoDiPack expressions.
Definition expressionInterface.hpp:59
Real const getValue() const
Compute the primal value that is usually evaluated by the statement/expression.
T_Real Real
See ExpressionInterface.
Definition expressionInterface.hpp:62
Impl const & cast() const
Cast to the implementation.
Definition expressionInterface.hpp:75
ExpressionInterface(ExpressionInterface const &)=default
Constructor.
T_Impl Impl
See ExpressionInterface.
Definition expressionInterface.hpp:63
ExpressionInterface()=default
Constructor.
void ActiveResult
Type into which the expression can be converted. Usually also the type from which it is constructed.
Definition expressionInterface.hpp:66
Node side interface for the traversal of expressions.
Definition nodeInterface.hpp:56
Common traits for all types used as real values.
Definition realTraits.hpp:60
static PassiveReal const & getPassiveValue(Type const &v)
Get the basic primal value of the type.
Definition realTraits.hpp:71
static int constexpr MaxDerivativeOrder
CoDiPack derivative order of the type.
Definition realTraits.hpp:68
T_Type Type
See TraitsImplementation.
Definition realTraits.hpp:63
Type PassiveReal
The original computation type, that was used in the application.
Definition realTraits.hpp:66