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

Constructor & Destructor Documentation

◆ StdInsertAdapt()

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

Definition at line 457 of file StdAdaptors.h.

459  { }

Member Function Documentation

◆ CompileFunc()

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

Definition at line 461 of file StdAdaptors.h.

462  {
463  if (fBefore) pComp->Value(rIns);
464  pComp->Value(rObj);
465  if (!fBefore) pComp->Value(rIns);
466  }
void Value(const T &rStruct)
Definition: StdCompiler.h:161

References StdInsertAdapt< T, I >::fBefore, StdInsertAdapt< T, I >::rIns, StdInsertAdapt< T, I >::rObj, and StdCompiler::Value().

Here is the call graph for this function:

Member Data Documentation

◆ fBefore

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

Definition at line 460 of file StdAdaptors.h.

Referenced by StdInsertAdapt< T, I >::CompileFunc().

◆ rIns

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

Definition at line 460 of file StdAdaptors.h.

Referenced by StdInsertAdapt< T, I >::CompileFunc().

◆ rObj

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

Definition at line 460 of file StdAdaptors.h.

Referenced by StdInsertAdapt< T, I >::CompileFunc().


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