JUCE
Static Public Member Functions | List of all members
ARAHostModel::ConversionFunctions< A, B > Struct Template Reference

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

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:

using Converter = ConversionFunctions<ThisType*, ARAHostRef>;

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 ( value)
static

References gl::value.

◆ fromHostRef()

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

References gl::value.


The documentation for this struct was generated from the following file: