OpenClonk
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros
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

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

Definition at line 161 of file StdAdaptors.h.

161 : rValue(rValue) { }

Member Function Documentation

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

Definition at line 162 of file StdAdaptors.h.

References StdCompiler::setRuntimeWritesAllowed(), and StdCompiler::Value().

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

Here is the call graph for this function:

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; }
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; }

Member Data Documentation

template<class T >
T& StdRuntimeValueAdapt< T >::rValue

Definition at line 160 of file StdAdaptors.h.


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