OpenClonk
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros
StdParameterAdapt< T, P > Struct Template Reference

#include <StdAdaptors.h>

Public Member Functions

 StdParameterAdapt (T &&rObj, P &&rPar)
 
void CompileFunc (StdCompiler *pComp) const
 
template<class D >
bool operator== (const D &nValue) const
 
template<class D >
StdParameterAdaptoperator= (const D &nValue)
 
T && GetObj ()
 

Public Attributes

T && rObj
 
P && Par
 

Detailed Description

template<class T, class P>
struct StdParameterAdapt< T, P >

Definition at line 440 of file StdAdaptors.h.

Constructor & Destructor Documentation

template<class T , class P >
StdParameterAdapt< T, P >::StdParameterAdapt ( T &&  rObj,
P &&  rPar 
)
inline

Definition at line 442 of file StdAdaptors.h.

442 : rObj(std::forward<T>(rObj)), Par(std::forward<P>(rPar)) { }

Member Function Documentation

template<class T , class P >
void StdParameterAdapt< T, P >::CompileFunc ( StdCompiler pComp) const
inline

Definition at line 444 of file StdAdaptors.h.

References StdParameterAdapt< T, P >::rObj.

445  {
446  std::forward<T>(rObj).CompileFunc(pComp, std::forward<P>(Par));
447  }
void CompileFunc(StdCompiler *pComp) const
Definition: StdAdaptors.h:444
template<class T , class P >
T&& StdParameterAdapt< T, P >::GetObj ( )
inline

Definition at line 453 of file StdAdaptors.h.

References StdParameterAdapt< T, P >::rObj.

453 { return std::forward<T>(rObj); }
template<class T , class P >
template<class D >
StdParameterAdapt& StdParameterAdapt< T, P >::operator= ( const D &  nValue)
inline

Definition at line 450 of file StdAdaptors.h.

450 { rObj = nValue; return *this; }
template<class T , class P >
template<class D >
bool StdParameterAdapt< T, P >::operator== ( const D &  nValue) const
inline

Definition at line 449 of file StdAdaptors.h.

449 { return rObj == nValue; }

Member Data Documentation

template<class T , class P >
P&& StdParameterAdapt< T, P >::Par

Definition at line 443 of file StdAdaptors.h.

template<class T , class P >
T&& StdParameterAdapt< T, P >::rObj

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