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

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

Static Public Member Functions

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

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

@tags{ARA}

Member Function Documentation

◆ fromHostRef()

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

◆ toHostRef()

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

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