CoDiPack  3.1.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>

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

Public Types

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

Public Member Functions

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

Static Public Attributes

static bool constexpr storeStatic
 See MemberStore.
 
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>
inlineType & 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>
inlineType 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: