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 135 of file StdAdaptors.h.

Constructor & Destructor Documentation

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

Definition at line 138 of file StdAdaptors.h.

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

Member Function Documentation

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

Definition at line 139 of file StdAdaptors.h.

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

140  {
141  assert(pComp->isSerializer());
142  pComp->Value(const_cast<T &>(rValue));
143  }
const T & rValue
Definition: StdAdaptors.h:137
bool isSerializer()
Definition: StdCompiler.h:64
void Value(const T &rStruct)
Definition: StdCompiler.h:170

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 147 of file StdAdaptors.h.

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

148  {
149  assert(pComp->isSerializer());
150  pComp->Value(mkParAdapt(const_cast<T &>(rValue), std::forward<P>(pars)...));
151  }
const T & rValue
Definition: StdAdaptors.h:137
bool isSerializer()
Definition: StdCompiler.h:64
void Value(const T &rStruct)
Definition: StdCompiler.h:170
StdParameterAdapt< T, P > mkParAdapt(T &&rObj, P &&rPar)
Definition: StdAdaptors.h:456

Here is the call graph for this function:

Member Data Documentation

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

Definition at line 137 of file StdAdaptors.h.


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