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

462 : 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 464 of file StdAdaptors.h.

References StdNullAdapt::CompileFunc().

465  {
466  std::forward<T>(rObj).CompileFunc(pComp, std::forward<P>(Par));
467  }
void CompileFunc(StdCompiler *pComp) const
Definition: StdAdaptors.h:464
Here is the call graph for this function:

◆ GetObj()

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

Definition at line 473 of file StdAdaptors.h.

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

◆ operator=()

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

Definition at line 470 of file StdAdaptors.h.

470 { rObj = nValue; return *this; }

◆ operator==()

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

Definition at line 469 of file StdAdaptors.h.

469 { return rObj == nValue; }

Member Data Documentation

◆ Par

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

Definition at line 463 of file StdAdaptors.h.

◆ rObj

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

Definition at line 463 of file StdAdaptors.h.


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