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

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

#include <memberStore.hpp>

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 = true
 See MemberStore.
 

Detailed Description

template<typename T_Type, typename T_Parent>
struct codi::MemberStore< T_Type, T_Parent, true >

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.

Constructor & Destructor Documentation

◆ MemberStore()

template<typename T_Type , typename T_Parent >
template<typename... Args>
codi::MemberStore< T_Type, T_Parent, true >::MemberStore ( Args &&...  args)
inline

Arguments are forwarded to the constructor of the member.

Member Function Documentation

◆ get() [1/2]

template<typename T_Type , typename T_Parent >
Type & codi::MemberStore< T_Type, T_Parent, true >::get ( )
inline

Get a reference to the actual member.

◆ get() [2/2]

template<typename T_Type , typename T_Parent >
Type const & codi::MemberStore< T_Type, T_Parent, true >::get ( ) const
inline

Get a reference to the actual member.


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