Structure to represent function parameters.
More...
#include <callback.hpp>
|
template<typename T > |
void | SetArgument (size_t idx, T val) const noexcept |
| Set the value of the argument at the specified index.
|
|
template<typename T > |
void | SetArgumentAt (size_t idx, T val, size_t i=0) const noexcept |
| Set the value of the argument at the specified index and position within a multi-dimensional array.
|
|
template<typename T > |
T | GetArgument (size_t idx) const noexcept |
| Get the value of the argument at the specified index.
|
|
int8_t * | GetArgumentPtr (size_t idx) const noexcept |
| Get a pointer to the argument at the specified index.
|
|
Structure to represent function parameters.
Definition at line 48 of file callback.hpp.
◆ GetArgument()
template<typename T >
T plugify::JitCallback::Parameters::GetArgument |
( |
size_t |
idx | ) |
const |
|
inlinenoexcept |
Get the value of the argument at the specified index.
- Template Parameters
-
- Parameters
-
idx | Index of the argument. |
- Returns
- Value of the argument.
Definition at line 81 of file callback.hpp.
◆ GetArgumentPtr()
int8_t * plugify::JitCallback::Parameters::GetArgumentPtr |
( |
size_t |
idx | ) |
const |
|
inlinenoexcept |
Get a pointer to the argument at the specified index.
- Parameters
-
idx | Index of the argument. |
- Returns
- Pointer to the argument.
Definition at line 90 of file callback.hpp.
◆ SetArgument()
template<typename T >
void plugify::JitCallback::Parameters::SetArgument |
( |
size_t |
idx, |
|
|
T |
val |
|
) |
| const |
|
inlinenoexcept |
Set the value of the argument at the specified index.
- Template Parameters
-
- Parameters
-
idx | Index of the argument. |
val | Value to set. @noreturn |
Definition at line 57 of file callback.hpp.
◆ SetArgumentAt()
template<typename T >
void plugify::JitCallback::Parameters::SetArgumentAt |
( |
size_t |
idx, |
|
|
T |
val, |
|
|
size_t |
i = 0 |
|
) |
| const |
|
inlinenoexcept |
Set the value of the argument at the specified index and position within a multi-dimensional array.
- Template Parameters
-
- Parameters
-
idx | Index of the argument. |
val | Value to set. |
i | Position within the array (optional, default is 0). @noreturn |
Definition at line 70 of file callback.hpp.
The documentation for this struct was generated from the following file: