CoDiPack  2.2.0
A Code Differentiation Package
SciComp TU Kaiserslautern
Loading...
Searching...
No Matches
codi::MemberStore< T_Type, T_Parent, T_storeStatic > Struct Template Reference

Defines a member that can either be static or local to the struct. More...

#include <memberStore.hpp>

Inheritance diagram for codi::MemberStore< T_Type, T_Parent, T_storeStatic >:

Public Types

using Parent = T_Parent
 See MemberStore.
 
using Type = T_Type
 < See MemberStore
 

Public Member Functions

Typeget ()
 Get a reference to the actual member.
 
Type const & get () const
 Get a reference to the actual member.
 
template<typename... Args>
 MemberStore (Args &&... args)
 Arguments are forwarded to the constructor of the member.
 

Static Public Attributes

static bool constexpr storeStatic = T_storeStatic
 See MemberStore.
 

Detailed Description

template<typename T_Type, typename T_Parent, bool T_storeStatic = false>
struct codi::MemberStore< T_Type, T_Parent, T_storeStatic >

Defines a member that can either be static or local to the struct.

Initialization of the static member is done on a first touch basis.

Template Parameters
T_TypeThe type of the member. Can be anything.
T_ParentThe structure where the member is located.
T_storeStaticDefine context of the variable.

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