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

Constructor & Destructor Documentation

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

535  { }
const char * szNaming
Definition: StdAdaptors.h:499
const ContextT * pCtx
Definition: StdAdaptors.h:537

Member Function Documentation

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

Definition at line 539 of file StdAdaptors.h.

References StdPtrAdaptCompileFunc().

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

Here is the call graph for this function:

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

Definition at line 546 of file StdAdaptors.h.

References StdPtrAdaptCompileFunc().

547  {
548  StdPtrAdaptCompileFunc(pComp, *this, p);
549  }
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, class ContextT>
const ContextT* StdContextPtrAdapt< T, ContextT >::pCtx

Definition at line 537 of file StdAdaptors.h.

Referenced by StdPtrAdaptCompileNewFunc().

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: