OpenClonk
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros
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 476 of file StdAdaptors.h.

Constructor & Destructor Documentation

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

Definition at line 478 of file StdAdaptors.h.

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

Member Function Documentation

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

Definition at line 481 of file StdAdaptors.h.

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

482  {
483  std::forward<T>(rObj).CompileFunc(pComp, std::forward<P1>(rPar1), std::forward<P2>(rPar2));
484  }
void CompileFunc(StdCompiler *pComp) const
Definition: StdAdaptors.h:481
template<class T , class P1 , class P2 >
template<class D >
StdParameter2Adapt& StdParameter2Adapt< T, P1, P2 >::operator= ( const D &  nValue)
inline

Definition at line 487 of file StdAdaptors.h.

487 { rObj = nValue; return *this; }
template<class T , class P1 , class P2 >
template<class D >
bool StdParameter2Adapt< T, P1, P2 >::operator== ( const D &  nValue) const
inline

Definition at line 486 of file StdAdaptors.h.

486 { return rObj == nValue; }

Member Data Documentation

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

Definition at line 480 of file StdAdaptors.h.

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

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

Definition at line 480 of file StdAdaptors.h.

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

Definition at line 480 of file StdAdaptors.h.

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


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