JUCE v8.0.9
JUCE API
 
Loading...
Searching...
No Matches
juce_Serialisation.h File Reference
This graph shows which files directly or indirectly include this file:

Classes

struct  juce::Named< T >
 Combines an object with a name. More...
 
struct  juce::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...
 
struct  juce::SerialisationTraits< T >
 Allows serialisation functions to be attached to a specific type without having to modify the declaration of that type. More...
 

Namespaces

namespace  juce
 

Macros

#define JUCE_COMPARISON_OPS   X(==) X(!=) X(<) X(<=) X(>) X(>=)
 
#define X(op)   auto operator op (const Named& other) const { return value op other.value; }
 
#define X(op)   auto operator op (const SerialisationSize& other) const { return size op other.size; }
 

Functions

template<typename T >
constexpr auto juce::named (std::string_view c, const T &t)
 Produces a Named instance that holds an immutable reference.
 
template<typename T >
constexpr auto juce::named (std::string_view c, T &t)
 Produces a Named instance that holds a mutable reference.
 
template<typename T >
constexpr auto juce::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.
 
template<typename T >
constexpr auto juce::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.
 

Macro Definition Documentation

◆ JUCE_COMPARISON_OPS

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

◆ X [1/2]

#define X (   op)    auto operator op (const Named& other) const { return value op other.value; }

◆ X [2/2]

#define X (   op)    auto operator op (const SerialisationSize& other) const { return size op other.size; }