OpenClonk
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros
StdInsertAdapt< T, I > Struct Template Reference

#include <StdAdaptors.h>

Public Member Functions

 StdInsertAdapt (T &rObj, I &rIns, bool fBefore=true)
 
void CompileFunc (StdCompiler *pComp) const
 

Public Attributes

T & rObj
 
I & rIns
 
bool fBefore
 

Detailed Description

template<class T, class I>
struct StdInsertAdapt< T, I >

Definition at line 423 of file StdAdaptors.h.

Constructor & Destructor Documentation

template<class T, class I>
StdInsertAdapt< T, I >::StdInsertAdapt ( T &  rObj,
I &  rIns,
bool  fBefore = true 
)
inline

Definition at line 425 of file StdAdaptors.h.

427  { }

Member Function Documentation

template<class T, class I>
void StdInsertAdapt< T, I >::CompileFunc ( StdCompiler pComp) const
inline

Definition at line 429 of file StdAdaptors.h.

References StdCompiler::Value().

430  {
431  if (fBefore) pComp->Value(rIns);
432  pComp->Value(rObj);
433  if (!fBefore) pComp->Value(rIns);
434  }
void Value(const T &rStruct)
Definition: StdCompiler.h:161

Here is the call graph for this function:

Member Data Documentation

template<class T, class I>
bool StdInsertAdapt< T, I >::fBefore

Definition at line 428 of file StdAdaptors.h.

template<class T, class I>
I& StdInsertAdapt< T, I >::rIns

Definition at line 428 of file StdAdaptors.h.

template<class T, class I>
T& StdInsertAdapt< T, I >::rObj

Definition at line 428 of file StdAdaptors.h.


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