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

 C4AulParSet ()=default
 
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

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

Definition at line 33 of file C4AulFunc.h.

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

Member Function Documentation

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

Definition at line 37 of file C4AulFunc.h.

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

Definition at line 43 of file C4AulFunc.h.

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

Definition at line 42 of file C4AulFunc.h.

42 { 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: