OpenClonk
StdPtrAdapt< T > Struct Template Reference

#include <StdAdaptors.h>

Inheritance diagram for StdPtrAdapt< T >:
[legend]
Collaboration diagram for StdPtrAdapt< T >:
[legend]

Public Member Functions

 StdPtrAdapt (T *&rpObj, bool fAllowNull=true, const char *szNaming="Data")
 
void CompileFunc (StdCompiler *pComp) const
 
template<typename ... P>
void CompileFunc (StdCompiler *pComp, P &&...pars)
 
bool operator== (const T &nValue) const
 
bool operator== (const T *pValue) const
 

Public Attributes

T *& rpObj
 
bool fAllowNull
 
const char * szNaming
 

Detailed Description

template<class T>
struct StdPtrAdapt< T >

Definition at line 528 of file StdAdaptors.h.

Constructor & Destructor Documentation

◆ StdPtrAdapt()

template<class T>
StdPtrAdapt< T >::StdPtrAdapt ( T *&  rpObj,
bool  fAllowNull = true,
const char *  szNaming = "Data" 
)
inline

Definition at line 530 of file StdAdaptors.h.

Member Function Documentation

◆ CompileFunc() [1/2]

template<class T>
void StdPtrAdapt< T >::CompileFunc ( StdCompiler pComp) const
inline

Definition at line 534 of file StdAdaptors.h.

References StdPtrAdaptCompileFunc().

535  {
536  StdPtrAdaptCompileFunc(pComp, *this);
537  }
void StdPtrAdaptCompileFunc(StdCompiler *pComp, const T &adapt, P &&...pars)
Definition: StdAdaptors.h:570
Here is the call graph for this function:

◆ CompileFunc() [2/2]

template<class T>
template<typename ... P>
void StdPtrAdapt< T >::CompileFunc ( StdCompiler pComp,
P &&...  pars 
)
inline

Definition at line 541 of file StdAdaptors.h.

References StdPtrAdaptCompileFunc().

542  {
543  StdPtrAdaptCompileFunc(pComp, *this, std::forward<P>(pars)...);
544  }
void StdPtrAdaptCompileFunc(StdCompiler *pComp, const T &adapt, P &&...pars)
Definition: StdAdaptors.h:570
Here is the call graph for this function:

◆ operator==() [1/2]

template<class T>
bool StdBasicPtrAdapt< T >::operator== ( const T &  nValue) const
inlineinherited

Definition at line 519 of file StdAdaptors.h.

519 { return rpObj && *rpObj == nValue; }

◆ operator==() [2/2]

template<class T>
bool StdBasicPtrAdapt< T >::operator== ( const T *  pValue) const
inlineinherited

Definition at line 521 of file StdAdaptors.h.

521 { return rpObj == pValue; }

Member Data Documentation

◆ fAllowNull

template<class T>
bool StdBasicPtrAdapt< T >::fAllowNull
inherited

Definition at line 516 of file StdAdaptors.h.

◆ rpObj

template<class T>
T*& StdBasicPtrAdapt< T >::rpObj
inherited

Definition at line 516 of file StdAdaptors.h.

Referenced by StdPtrAdaptCompileNewFunc(), and StdPtrAdaptDecompileNewFunc().

◆ szNaming

template<class T>
const char* StdBasicPtrAdapt< T >::szNaming
inherited

Definition at line 516 of file StdAdaptors.h.


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