OpenClonk
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros
C4AulParSet Struct Reference

#include <C4AulFunc.h>

Collaboration diagram for C4AulParSet:
[legend]

Public Member Functions

template<class... T>
 C4AulParSet (T &&...pars)
 
void Copy (const C4Value *Pars, int ParCount)
 
C4Valueoperator[] (int iIdx)
 
C4AulParSetoperator& ()
 

Public Attributes

C4Value Par [C4AUL_MAX_Par]
 

Detailed Description

Definition at line 28 of file C4AulFunc.h.

Constructor & Destructor Documentation

template<class... T>
C4AulParSet::C4AulParSet ( T &&...  pars)
inlineexplicit

Definition at line 32 of file C4AulFunc.h.

32  :
33  Par {C4Value(std::forward<T>(pars))...}
34  {
35  }
C4Value Par[C4AUL_MAX_Par]
Definition: C4AulFunc.h:30

Member Function Documentation

void C4AulParSet::Copy ( const C4Value Pars,
int  ParCount 
)
inline

Definition at line 36 of file C4AulFunc.h.

37  {
38  for (int i = 0; i < ParCount; ++i)
39  Par[i].Set(Pars[i]);
40  }
C4Value Par[C4AUL_MAX_Par]
Definition: C4AulFunc.h:30
C4AulParSet* C4AulParSet::operator& ( )
inline

Definition at line 42 of file C4AulFunc.h.

42 { return this; }
C4Value& C4AulParSet::operator[] ( int  iIdx)
inline

Definition at line 41 of file C4AulFunc.h.

41 { return Par[iIdx]; }
C4Value Par[C4AUL_MAX_Par]
Definition: C4AulFunc.h:30

Member Data Documentation

C4Value C4AulParSet::Par[C4AUL_MAX_Par]

Definition at line 30 of file C4AulFunc.h.

Referenced by C4AulExec::DirectExec().


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