OpenClonk
StdDecompileAdapt< T > Struct Template Reference

#include <StdAdaptors.h>

Public Member Functions

 StdDecompileAdapt (const T &rValue)
 
void CompileFunc (StdCompiler *pComp) const
 
template<typename ... P>
void CompileFunc (StdCompiler *pComp, P &&... pars) const
 

Public Attributes

const T & rValue
 

Detailed Description

template<class T>
struct StdDecompileAdapt< T >

Definition at line 134 of file StdAdaptors.h.

Constructor & Destructor Documentation

◆ StdDecompileAdapt()

template<class T >
StdDecompileAdapt< T >::StdDecompileAdapt ( const T &  rValue)
inlineexplicit

Definition at line 137 of file StdAdaptors.h.

137 : rValue(rValue) { }
const T & rValue
Definition: StdAdaptors.h:136

Member Function Documentation

◆ CompileFunc() [1/2]

template<class T >
void StdDecompileAdapt< T >::CompileFunc ( StdCompiler pComp) const
inline

Definition at line 138 of file StdAdaptors.h.

139  {
140  assert(pComp->isSerializer());
141  pComp->Value(const_cast<T &>(rValue));
142  }
void Value(const T &rStruct)
Definition: StdCompiler.h:161
bool isSerializer()
Definition: StdCompiler.h:54

References StdCompiler::isSerializer(), StdDecompileAdapt< T >::rValue, and StdCompiler::Value().

Here is the call graph for this function:

◆ CompileFunc() [2/2]

template<class T >
template<typename ... P>
void StdDecompileAdapt< T >::CompileFunc ( StdCompiler pComp,
P &&...  pars 
) const
inline

Definition at line 146 of file StdAdaptors.h.

147  {
148  assert(pComp->isSerializer());
149  pComp->Value(mkParAdapt(const_cast<T &>(rValue), std::forward<P>(pars)...));
150  }
StdParameterAdapt< T, P > mkParAdapt(T &&rObj, P &&rPar)
Definition: StdAdaptors.h:490

References StdCompiler::isSerializer(), mkParAdapt(), StdDecompileAdapt< T >::rValue, and StdCompiler::Value().

Here is the call graph for this function:

Member Data Documentation

◆ rValue

template<class T >
const T& StdDecompileAdapt< T >::rValue

Definition at line 136 of file StdAdaptors.h.

Referenced by StdDecompileAdapt< T >::CompileFunc().


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