OpenClonk
StdRuntimeValueAdapt< T > Struct Template Reference

#include <StdAdaptors.h>

Public Member Functions

 StdRuntimeValueAdapt (T &rValue)
 
void CompileFunc (StdCompiler *pComp) const
 
template<class D >
bool operator== (const D &nValue) const
 
template<class D >
StdRuntimeValueAdapt< T > & operator= (const D &nValue)
 

Public Attributes

T & rValue
 

Detailed Description

template<class T>
struct StdRuntimeValueAdapt< T >

Definition at line 158 of file StdAdaptors.h.

Constructor & Destructor Documentation

◆ StdRuntimeValueAdapt()

template<class T >
StdRuntimeValueAdapt< T >::StdRuntimeValueAdapt ( T &  rValue)
inlineexplicit

Definition at line 161 of file StdAdaptors.h.

161 : rValue(rValue) { }

Member Function Documentation

◆ CompileFunc()

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

Definition at line 162 of file StdAdaptors.h.

163  {
164  pComp->setRuntimeWritesAllowed(+1);
165  pComp->Value(rValue);
166  pComp->setRuntimeWritesAllowed(-1);
167  }
void Value(const T &rStruct)
Definition: StdCompiler.h:161
virtual void setRuntimeWritesAllowed(int32_t iChange)
Definition: StdCompiler.h:68

References StdRuntimeValueAdapt< T >::rValue, StdCompiler::setRuntimeWritesAllowed(), and StdCompiler::Value().

Here is the call graph for this function:

◆ operator=()

template<class T >
template<class D >
StdRuntimeValueAdapt<T>& StdRuntimeValueAdapt< T >::operator= ( const D &  nValue)
inline

Definition at line 169 of file StdAdaptors.h.

169 { rValue = nValue; return *this; }

References StdRuntimeValueAdapt< T >::rValue.

◆ operator==()

template<class T >
template<class D >
bool StdRuntimeValueAdapt< T >::operator== ( const D &  nValue) const
inline

Definition at line 168 of file StdAdaptors.h.

168 { return rValue == nValue; }

References StdRuntimeValueAdapt< T >::rValue.

Member Data Documentation

◆ rValue


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