JUCE
Loading...
Searching...
No Matches
juce_Serialisation.h File Reference

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(>=)
 
#define X(op)
 
#define X(op)
 

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.
 

Macro Definition Documentation

◆ X [1/2]

#define X ( op)
Value:
auto operator op (const Named& other) const { return value op other.value; }
Combines an object with a name.
Definition juce_Serialisation.h:101
T & value
A reference to a value to wrap.
Definition juce_Serialisation.h:107

◆ X [2/2]

#define X ( op)
Value:
auto operator op (const SerialisationSize& other) const { return size op other.size; }
Holds a reference to some kind of size value, used to indicate that an object being marshalled is of ...
Definition juce_Serialisation.h:131
T & size
Definition juce_Serialisation.h:136