Structure to represent function parameters.
More...
#include <callback.hpp>
|
template<typename T > |
void | SetArgument (uint8_t idx, T val) const noexcept |
| Set the value of the argument at the specified index. More...
|
|
template<typename T > |
void | SetArgumentAt (uint8_t idx, T val, uint8_t i=0) const noexcept |
| Set the value of the argument at the specified index and position within a multi-dimensional array. More...
|
|
template<typename T > |
T | GetArgument (uint8_t idx) const noexcept |
| Get the value of the argument at the specified index. More...
|
|
int8_t * | GetArgumentPtr (uint8_t idx) const noexcept |
| Get a pointer to the argument at the specified index. More...
|
|
Structure to represent function parameters.
Definition at line 42 of file callback.hpp.
◆ GetArgument()
template<typename T >
T plugify::JitCallback::Parameters::GetArgument |
( |
uint8_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 75 of file callback.hpp.
◆ GetArgumentPtr()
int8_t* plugify::JitCallback::Parameters::GetArgumentPtr |
( |
uint8_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 84 of file callback.hpp.
◆ SetArgument()
template<typename T >
void plugify::JitCallback::Parameters::SetArgument |
( |
uint8_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 51 of file callback.hpp.
◆ SetArgumentAt()
template<typename T >
void plugify::JitCallback::Parameters::SetArgumentAt |
( |
uint8_t |
idx, |
|
|
T |
val, |
|
|
uint8_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 64 of file callback.hpp.
The documentation for this struct was generated from the following file: