JUCE-7.0.12-0-g4f43011b96 JUCE-7.0.12-0-g4f43011b96
JUCE — C++ application framework with suport for VST, VST3, LV2 audio plug-ins

« « « Anklang Documentation
Loading...
Searching...
No Matches
Static Public Member Functions | List of all members
juce::StrictVariantConverter< Type > Struct Template Reference

A helper type that can be used to implement specialisations of VariantConverter that use FromVar::convert and ToVar::convert internally. More...

#include "juce_JSONSerialisation.h"

Static Public Member Functions

static Type fromVar (const var &v)
 
static var toVar (const Type &t)
 

Detailed Description

template<typename Type>
struct juce::StrictVariantConverter< Type >

A helper type that can be used to implement specialisations of VariantConverter that use FromVar::convert and ToVar::convert internally.

If you've already implemented SerialisationTraits for a specific type, and don't want to write a custom VariantConverter that duplicates that implementation, you can instead write:

template <>
Type unalignedPointerCast(void *ptr) noexcept
Casts a pointer to another type via void*, which suppresses the cast-align warning which sometimes ar...
Definition juce_Memory.h:88
A helper type that can be used to implement specialisations of VariantConverter that use FromVar::con...
This template-overloaded class can be used to convert between var and custom types.

@tags{Core}

Definition at line 515 of file juce_JSONSerialisation.h.

Member Function Documentation

◆ fromVar()

template<typename Type >
static Type juce::StrictVariantConverter< Type >::fromVar ( const var v)
static

Definition at line 519 of file juce_JSONSerialisation.h.

◆ toVar()

template<typename Type >
static var juce::StrictVariantConverter< Type >::toVar ( const Type &  t)
static

Definition at line 526 of file juce_JSONSerialisation.h.


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