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

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

#include <juce_ARAHosting.h>

Static Public Member Functions

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

Detailed Description

template<typename A, typename B>
struct 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:101

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

Member Function Documentation

◆ toHostRef()

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

References readUnaligned().

◆ fromHostRef()

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

References readUnaligned().


The documentation for this struct was generated from the following file:
linkedin facebook pinterest youtube rss twitter instagram facebook-blank rss-blank linkedin-blank pinterest youtube twitter instagram