JUCE: serialisation

JUCE

- Main Page
- Related Pages
- Topics
- Classes
- Files

Loading...
Searching...
No Matches
Classes | Macros | Functions
serialisation
juce_core

## Classes
struct | SerialisationTraits< T >
| Allows serialisation functions to be attached to a specific type without having to modify the declaration of that type. More...
struct | Named< T >
| Combines an object with a name. More...
struct | SerialisationSize< T >
| Holds a reference to some kind of size value, used to indicate that an object being marshalled is of variable size (e.g. More...

## Macros
#define | JUCE_COMPARISON_OPS X(==) X(!=) X(<) X(<=) X(>) X(>=)

## Functions
template<typename T >
constexpr auto | named (std::string_view c, T &t)
| Produces a Named instance that holds a mutable reference.
template<typename T >
constexpr auto | named (std::string_view c, const T &t)
| Produces a Named instance that holds an immutable reference.
template<typename T >
constexpr auto | serialisationSize (T &t) -> std::enable_if_t< std::is_integral_v< T >, SerialisationSize< T > >
| Produces a SerialisationSize instance that holds a mutable reference to a size value.
template<typename T >
constexpr auto | serialisationSize (const T &t) -> std::enable_if_t< std::is_integral_v< T >, SerialisationSize< const T > >
| Produces a SerialisationSize instance that holds an immutable reference to a size value.

## Detailed Description

## Macro Definition Documentation

## ◆ JUCE_COMPARISON_OPS

#define JUCE_COMPARISON_OPS X(==) X(!=) X(<) X(<=) X(>) X(>=)

## Function Documentation

## ◆ named() [1/2]

template<typename T >

constexpr auto named | ( | std::string_view | c,
|  | T & | t )
| constexpr

Produces a Named instance that holds a mutable reference.

Referenced by juce::universal_midi_packets::DeviceInfo::serialise().

## ◆ named() [2/2]

template<typename T >

constexpr auto named | ( | std::string_view | c,
|  | const T & | t )
| constexpr

Produces a Named instance that holds an immutable reference.

## ◆ serialisationSize() [1/2]

template<typename T >

constexpr auto serialisationSize | ( | T & | t | ) | -> std::enable_if_t<std::is_integral_v<T>, SerialisationSize<T>>
| constexpr

Produces a SerialisationSize instance that holds a mutable reference to a size value.

## ◆ serialisationSize() [2/2]

template<typename T >

constexpr auto serialisationSize | ( | const T & | t | ) | -> std::enable_if_t<std::is_integral_v<T>, SerialisationSize<const T>>
| constexpr

Produces a SerialisationSize instance that holds an immutable reference to a size value.