CoDiPack  3.0.0
A Code Differentiation Package
SciComp TU Kaiserslautern
Loading...
Searching...
No Matches
codi::StaticContextActiveType< T_Tape > Struct Template Reference

Replacement type of LhsExpressionInterface types in ConstructStaticContext. More...

#include <staticContextActiveType.hpp>

Inheritance diagram for codi::StaticContextActiveType< T_Tape >:

Public Types

using Base = ExpressionInterface<Real, StaticContextActiveType>
 Base class abbreviation.
 
using Identifier = typename Tape::Identifier
 See TapeTypesInterface.
 
using Real = typename Tape::Real
 See TapeTypesInterface.
 
using Tape
 See StaticContextActiveType.
 
- Public Types inherited from codi::ExpressionInterface< T_Tape::Real, StaticContextActiveType< T_Tape > >
using ADLogic
 AD logic that governs the expression. Needs to be the same for all inputs of the expression.
 
using Impl
 See ExpressionInterface.
 
using Real
 See ExpressionInterface.
 
using StoreAs
 Defines how this expression is stored in an expression tree.
 
- Public Types inherited from codi::NodeInterface< StaticContextActiveType< T_Tape > >
using Impl
 See NodeInterface.
 
- Public Types inherited from codi::ExpressionMemberOperations< T_Tape::Real, StaticContextActiveType< T_Tape > >
using Impl
 See ExpressionMemberOperations.
 
using Real
 See ExpressionMemberOperations.
 

Public Member Functions

 inlineStaticContextActiveType ()
 Empty constructor for delayed construction that is overwritten with placement new operators.
 
 inlineStaticContextActiveType (Real const &primal, Identifier const &identifier)
 Constructor.
 
 inlineStaticContextActiveType (StaticContextActiveType const &other)
 Copy constructor.
 
Partial implementation of LhsExpressionInterface
inlineIdentifier const & getIdentifier () const
 
- Public Member Functions inherited from codi::ExpressionInterface< T_Tape::Real, StaticContextActiveType< T_Tape > >
inlineImpl const & cast () const
 Cast to the implementation.
 
 ExpressionInterface ()=default
 Constructor.
 
 ExpressionInterface (ExpressionInterface const &)=default
 Constructor.
 
inlineReal const getValue () const
 Compute the primal value that is usually evaluated by the statement/expression.
 
inlineauto applyTangent (Tangent const &tangent) const
 
inlineauto applyAdjoint (Adjoint const &adjoint) const
 
- Public Member Functions inherited from codi::NodeInterface< StaticContextActiveType< T_Tape > >
inlineImpl const & cast () const
 Cast to the implementation.
 
char const & getLink () const
 an expression.
 

Static Public Attributes

Implementation of NodeInterface
static size_t constexpr LinkCount = 0
 handle the expression as a leaf node.
 
static size_t constexpr LinkCount
 handle the expression as a leaf node.
 

Implementation of ExpressionInterface

using StoreAs = StaticContextActiveType
 Defines how this expression is stored in an expression tree.
 
using ADLogic = Tape
 AD logic that governs the expression. Needs to be the same for all inputs of the expression.
 
inlineReal const getValue () const
 Compute the primal value that is usually evaluated by the statement/expression.
 

Additional Inherited Members

- Protected Member Functions inherited from codi::ExpressionMemberOperations< T_Tape::Real, StaticContextActiveType< T_Tape > >
inlineImpl const & cast () const
 Cast to implementation.
 

Detailed Description

template<typename T_Tape>
struct codi::StaticContextActiveType< T_Tape >

Replacement type of LhsExpressionInterface types in ConstructStaticContext.

See ConstructStaticContext for detailed information. See Expression design documentation for details about the expression system in CoDiPack.

Template Parameters
T_TapeThe tape that create the original expression.

Member Typedef Documentation

◆ ADLogic

template<typename T_Tape>
using codi::StaticContextActiveType< T_Tape >::ADLogic = Tape

AD logic that governs the expression. Needs to be the same for all inputs of the expression.

◆ StoreAs

template<typename T_Tape>
using codi::StaticContextActiveType< T_Tape >::StoreAs = StaticContextActiveType

Defines how this expression is stored in an expression tree.

◆ Tape

template<typename T_Tape>
using codi::StaticContextActiveType< T_Tape >::Tape
Initial value:
T_Tape

See StaticContextActiveType.

Member Function Documentation

◆ getIdentifier()

template<typename T_Tape>
inlineIdentifier const & codi::StaticContextActiveType< T_Tape >::getIdentifier ( ) const
inline

Get a constant reference to the identifier of the tape for this expression. See also Direct data access (Identifier management)

◆ getValue()

template<typename T_Tape>
inlineReal const codi::StaticContextActiveType< T_Tape >::getValue ( ) const
inline

Compute the primal value that is usually evaluated by the statement/expression.

Member Data Documentation

◆ LinkCount

template<typename T_Tape>
size_t constexpr codi::StaticContextActiveType< T_Tape >::LinkCount = 0
staticconstexpr

handle the expression as a leaf node.

Number of links the expression has. Zero will


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