Loading...
Searching...
No Matches
juce::ARAHostModel::ConversionFunctions< A, B > Struct Template Reference

Detailed Description

template<typename A, typename B>
struct juce::ARAHostModel::ConversionFunctions< A, B >

Allows converting, without warnings, between pointers of two unrelated types.

This is a bit like ARA_MAP_HOST_REF, but not macro-based.

To use it, add a line like this to a type that needs to deal in host references:

Allows converting, without warnings, between pointers of two unrelated types.
Definition juce_ARAHosting.h:98

Now, you can convert back and forth with host references by calling Converter::toHostRef() and Converter::fromHostRef().

Static Public Member Functions

static B toHostRef (A value)
static A fromHostRef (B value)

Member Functions

◆ toHostRef()

template<typename A, typename B>
B juce::ARAHostModel::ConversionFunctions< A, B >::toHostRef ( A value)
static

References juce::readUnaligned().

◆ fromHostRef()

template<typename A, typename B>
A juce::ARAHostModel::ConversionFunctions< A, B >::fromHostRef ( B value)
static

References juce::readUnaligned().

linkedin facebook pinterest youtube rss twitter instagram facebook-blank rss-blank linkedin-blank pinterest youtube twitter instagram