plugify 1.0.0.0
Loading...
Searching...
No Matches
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 (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 >
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.
 

Detailed Description

Structure to represent function parameters.

Definition at line 48 of file callback.hpp.

Member Function Documentation

◆ 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
TType of the argument.
Parameters
idxIndex 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
idxIndex 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,
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 57 of file callback.hpp.

◆ SetArgumentAt()

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