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 542 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 544 of file StdAdaptors.h.

Member Function Documentation

◆ CompileFunc() [1/2]

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

Definition at line 548 of file StdAdaptors.h.

549  {
550  StdPtrAdaptCompileFunc(pComp, *this);
551  }
void StdPtrAdaptCompileFunc(StdCompiler *pComp, const T &adapt, P &&...pars)
Definition: StdAdaptors.h:584

References StdPtrAdaptCompileFunc().

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

556  {
557  StdPtrAdaptCompileFunc(pComp, *this, std::forward<P>(pars)...);
558  }

References StdPtrAdaptCompileFunc().

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

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

References StdBasicPtrAdapt< T >::rpObj.

◆ operator==() [2/2]

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

Definition at line 535 of file StdAdaptors.h.

535 { return rpObj == pValue; }

References StdBasicPtrAdapt< T >::rpObj.

Member Data Documentation

◆ fAllowNull

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

Definition at line 530 of file StdAdaptors.h.

◆ rpObj

◆ szNaming

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

Definition at line 530 of file StdAdaptors.h.


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