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

Constructor & Destructor Documentation

◆ StdParameterAdapt()

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

Definition at line 476 of file StdAdaptors.h.

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

Member Function Documentation

◆ CompileFunc()

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

Definition at line 478 of file StdAdaptors.h.

479  {
480  std::forward<T>(rObj).CompileFunc(pComp, std::forward<P>(Par));
481  }

References StdParameterAdapt< T, P >::Par, and StdParameterAdapt< T, P >::rObj.

◆ GetObj()

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

Definition at line 487 of file StdAdaptors.h.

487 { return std::forward<T>(rObj); }

References StdParameterAdapt< T, P >::rObj.

◆ operator=()

template<class T , class P >
template<class D >
StdParameterAdapt& StdParameterAdapt< T, P >::operator= ( const D &  nValue)
inline

Definition at line 484 of file StdAdaptors.h.

484 { rObj = nValue; return *this; }

References StdParameterAdapt< T, P >::rObj.

◆ operator==()

template<class T , class P >
template<class D >
bool StdParameterAdapt< T, P >::operator== ( const D &  nValue) const
inline

Definition at line 483 of file StdAdaptors.h.

483 { return rObj == nValue; }

References StdParameterAdapt< T, P >::rObj.

Member Data Documentation

◆ Par

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

Definition at line 477 of file StdAdaptors.h.

Referenced by StdParameterAdapt< T, P >::CompileFunc().

◆ rObj


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