OpenClonk
StdContextPtrAdapt< T, ContextT > Struct Template Reference

#include <StdAdaptors.h>

Inheritance diagram for StdContextPtrAdapt< T, ContextT >:
[legend]
Collaboration diagram for StdContextPtrAdapt< T, ContextT >:
[legend]

Public Member Functions

 StdContextPtrAdapt (T *&rpObj, const ContextT &rCtx, bool fAllowNull=true, const char *szNaming="Data")
 
void CompileFunc (StdCompiler *pComp) const
 
template<class P >
void CompileFunc (StdCompiler *pComp, const P &p)
 
bool operator== (const T &nValue) const
 
bool operator== (const T *pValue) const
 

Public Attributes

const ContextT * pCtx
 
T *& rpObj
 
bool fAllowNull
 
const char * szNaming
 

Detailed Description

template<class T, class ContextT>
struct StdContextPtrAdapt< T, ContextT >

Definition at line 562 of file StdAdaptors.h.

Constructor & Destructor Documentation

◆ StdContextPtrAdapt()

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

Definition at line 564 of file StdAdaptors.h.

566  { }
const char * szNaming
Definition: StdAdaptors.h:530
const ContextT * pCtx
Definition: StdAdaptors.h:568

Member Function Documentation

◆ CompileFunc() [1/2]

template<class T , class ContextT >
void StdContextPtrAdapt< T, ContextT >::CompileFunc ( StdCompiler pComp) const
inline

Definition at line 570 of file StdAdaptors.h.

571  {
572  StdPtrAdaptCompileFunc(pComp, *this);
573  }
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 , class ContextT >
template<class P >
void StdContextPtrAdapt< T, ContextT >::CompileFunc ( StdCompiler pComp,
const P &  p 
)
inline

Definition at line 577 of file StdAdaptors.h.

578  {
579  StdPtrAdaptCompileFunc(pComp, *this, p);
580  }

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.

◆ pCtx

template<class T , class ContextT >
const ContextT* StdContextPtrAdapt< T, ContextT >::pCtx

Definition at line 568 of file StdAdaptors.h.

Referenced by StdPtrAdaptCompileNewFunc().

◆ 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: