OpenClonk
StdParameter2Adapt< T, P1, P2 > Struct Template Reference

#include <StdAdaptors.h>

Public Member Functions

 StdParameter2Adapt (T &&rObj, P1 &&rPar1, P2 &&rPar2)
 
void CompileFunc (StdCompiler *pComp) const
 
template<class D >
bool operator== (const D &nValue) const
 
template<class D >
StdParameter2Adaptoperator= (const D &nValue)
 

Public Attributes

T && rObj
 
P1 && rPar1
 
P2 && rPar2
 

Detailed Description

template<class T, class P1, class P2>
struct StdParameter2Adapt< T, P1, P2 >

Definition at line 508 of file StdAdaptors.h.

Constructor & Destructor Documentation

◆ StdParameter2Adapt()

template<class T , class P1 , class P2 >
StdParameter2Adapt< T, P1, P2 >::StdParameter2Adapt ( T &&  rObj,
P1 &&  rPar1,
P2 &&  rPar2 
)
inline

Definition at line 510 of file StdAdaptors.h.

510  :
511  rObj(std::forward<T>(rObj)), rPar1(std::forward<P1>(rPar1)), rPar2(std::forward<P2>(rPar2)) { }

Member Function Documentation

◆ CompileFunc()

template<class T , class P1 , class P2 >
void StdParameter2Adapt< T, P1, P2 >::CompileFunc ( StdCompiler pComp) const
inline

Definition at line 513 of file StdAdaptors.h.

514  {
515  std::forward<T>(rObj).CompileFunc(pComp, std::forward<P1>(rPar1), std::forward<P2>(rPar2));
516  }

References StdParameter2Adapt< T, P1, P2 >::rObj, StdParameter2Adapt< T, P1, P2 >::rPar1, and StdParameter2Adapt< T, P1, P2 >::rPar2.

◆ operator=()

template<class T , class P1 , class P2 >
template<class D >
StdParameter2Adapt& StdParameter2Adapt< T, P1, P2 >::operator= ( const D &  nValue)
inline

Definition at line 519 of file StdAdaptors.h.

519 { rObj = nValue; return *this; }

References StdParameter2Adapt< T, P1, P2 >::rObj.

◆ operator==()

template<class T , class P1 , class P2 >
template<class D >
bool StdParameter2Adapt< T, P1, P2 >::operator== ( const D &  nValue) const
inline

Definition at line 518 of file StdAdaptors.h.

518 { return rObj == nValue; }

References StdParameter2Adapt< T, P1, P2 >::rObj.

Member Data Documentation

◆ rObj

template<class T , class P1 , class P2 >
T&& StdParameter2Adapt< T, P1, P2 >::rObj

◆ rPar1

template<class T , class P1 , class P2 >
P1&& StdParameter2Adapt< T, P1, P2 >::rPar1

Definition at line 512 of file StdAdaptors.h.

Referenced by StdParameter2Adapt< T, P1, P2 >::CompileFunc().

◆ rPar2

template<class T , class P1 , class P2 >
P2&& StdParameter2Adapt< T, P1, P2 >::rPar2

Definition at line 512 of file StdAdaptors.h.

Referenced by StdParameter2Adapt< T, P1, P2 >::CompileFunc().


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