OpenClonk
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros
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

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

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

Definition at line 138 of file StdAdaptors.h.

References StdCompiler::isSerializer(), and StdCompiler::Value().

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

Here is the call graph for this function:

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

Definition at line 146 of file StdAdaptors.h.

References StdCompiler::isSerializer(), mkParAdapt(), and StdCompiler::Value().

147  {
148  assert(pComp->isSerializer());
149  pComp->Value(mkParAdapt(const_cast<T &>(rValue), std::forward<P>(pars)...));
150  }
const T & rValue
Definition: StdAdaptors.h:136
bool isSerializer()
Definition: StdCompiler.h:54
void Value(const T &rStruct)
Definition: StdCompiler.h:161
StdParameterAdapt< T, P > mkParAdapt(T &&rObj, P &&rPar)
Definition: StdAdaptors.h:458

Here is the call graph for this function:

Member Data Documentation

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

Definition at line 136 of file StdAdaptors.h.


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