plugify  1.0.0.0
Public Member Functions | List of all members
plugify::JitCallback::Parameters Struct Reference

Structure to represent function parameters. More...

#include <callback.hpp>

Public Member Functions

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 >
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...
 

Detailed Description

Structure to represent function parameters.

Definition at line 42 of file callback.hpp.

Member Function Documentation

◆ 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
TType of the argument.
Parameters
idxIndex 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
idxIndex 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,
val 
) const
inlinenoexcept

Set the value of the argument at the specified index.

Template Parameters
TType of the argument.
Parameters
idxIndex of the argument.
valValue to set. @noreturn

Definition at line 51 of file callback.hpp.

◆ SetArgumentAt()

template<typename T >
void plugify::JitCallback::Parameters::SetArgumentAt ( uint8_t  idx,
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
TType of the argument.
Parameters
idxIndex of the argument.
valValue to set.
iPosition 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: