A function parameter, used within the stack of arguments. More...
Public Member Functions | |
FunctionParameter () noexcept | |
FunctionParameter (bool val) noexcept | |
FunctionParameter (int val) noexcept | |
FunctionParameter (float val) noexcept | |
FunctionParameter (double val) noexcept | |
FunctionParameter (const char *val) noexcept | |
FunctionParameter (nkMemory::StringView val) noexcept | |
FunctionParameter (void *val, nkMemory::StringView userTypeName, bool scriptOwner) noexcept | |
FunctionParameter (const ScriptObjectReference &scriptObjectReference) noexcept | |
FunctionParameter (const FunctionParameter &other) noexcept | |
FunctionParameter (FunctionParameter &&other) noexcept | |
~FunctionParameter () | |
void | prepareForInternalType () |
void | prepareForString () |
void | prepareForUserType () |
void | prepareForScriptObjectReference () |
FunctionParameter & | operator= (const FunctionParameter &other) noexcept |
FunctionParameter & | operator= (FunctionParameter &&other) noexcept |
Public Attributes | |
union { | |
bool _valBool | |
int _valInt | |
float _valFloat | |
double _valDouble | |
nkMemory::String _valString | |
UserTypeHolder _valUser | |
ScriptObjectReference _valScriptObject | |
}; | |
FUNCTION_PARAMETER_TYPE | _type |
The actual type of the variable held. | |
Static Public Attributes | |
static FunctionParameter | VOID |
A function parameter, used within the stack of arguments.
|
noexcept |
Default constructor.
|
explicitnoexcept |
Specific constructor.
val | The value to assign. |
|
explicitnoexcept |
Specific constructor.
val | The value to assign. |
|
explicitnoexcept |
Specific constructor.
val | The value to assign. |
|
explicitnoexcept |
Specific constructor.
val | The value to assign. |
|
noexcept |
Specific constructor.
val | The value to assign. |
|
noexcept |
Specific constructor.
val | The value to assign. |
|
noexcept |
Specific constructor.
val | The value to assign. |
userTypeName | The user type name of the object set. |
scriptOwner | Whether the script is the owner of given object and should delete it upon garbage collection. |
|
noexcept |
Specific constructor.
scriptObjectReference | The reference to assign. |
|
noexcept |
Copy constructor.
other | The parameter to copy. |
|
noexcept |
Move constructor.
other | The parameter to move. |
nkScripts::FunctionParameter::~FunctionParameter | ( | ) |
Destructor.
void nkScripts::FunctionParameter::prepareForInternalType | ( | ) |
Prepares internal memory layout for the type given.
void nkScripts::FunctionParameter::prepareForString | ( | ) |
Prepares internal memory layout for the type given.
void nkScripts::FunctionParameter::prepareForUserType | ( | ) |
Prepares internal memory layout for the type given.
void nkScripts::FunctionParameter::prepareForScriptObjectReference | ( | ) |
Prepares internal memory layout for the type given.
|
noexcept |
Copy operator.
other | The parameter to copy. |
|
noexcept |
Move operator.
other | The parameter to move. |
union { ... } |
Union of all types possible to have.
|
static |
Static parameter enabling a quick void parameter use.