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

Constructor & Destructor Documentation

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

Definition at line 513 of file StdAdaptors.h.

Member Function Documentation

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

Definition at line 517 of file StdAdaptors.h.

References StdPtrAdaptCompileFunc().

518  {
519  StdPtrAdaptCompileFunc(pComp, *this);
520  }
void StdPtrAdaptCompileFunc(StdCompiler *pComp, const T &adapt, P &&...pars)
Definition: StdAdaptors.h:553

Here is the call graph for this function:

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

Definition at line 524 of file StdAdaptors.h.

References StdPtrAdaptCompileFunc().

525  {
526  StdPtrAdaptCompileFunc(pComp, *this, std::forward<P>(pars)...);
527  }
void StdPtrAdaptCompileFunc(StdCompiler *pComp, const T &adapt, P &&...pars)
Definition: StdAdaptors.h:553

Here is the call graph for this function:

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

Definition at line 502 of file StdAdaptors.h.

502 { return rpObj && *rpObj == nValue; }
template<class T>
bool StdBasicPtrAdapt< T >::operator== ( const T *  pValue) const
inlineinherited

Definition at line 504 of file StdAdaptors.h.

504 { return rpObj == pValue; }

Member Data Documentation

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

Definition at line 499 of file StdAdaptors.h.

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

Definition at line 499 of file StdAdaptors.h.


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