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
Public Member Functions | Public Attributes | List of all members
juce::Named< T > Struct Template Reference

Combines an object with a name. More...

#include "juce_Serialisation.h"

Public Member Functions

auto operator== (const Named &other) const
 
auto operator!= (const Named &other) const
 
auto operator< (const Named &other) const
 
auto operator<= (const Named &other) const
 
auto operator> (const Named &other) const
 
auto operator>= (const Named &other) const
 

Public Attributes

std::string_view name
 A name that corresponds to the value.
 
T & value
 A reference to a value to wrap.
 

Detailed Description

template<typename T>
struct juce::Named< T >

Combines an object with a name.

Instances of Named have reference-like semantics. That is, Named stores a reference to a wrapped value, rather than storing the value internally.

Template Parameters
Tthe type of reference that is wrapped. Passing "const T" will cause the Named instance to hold a "const T&"; passing "T" will cause the Named instance to hold a "T&".
See also
named()

@tags{Core}

Definition at line 87 of file juce_Serialisation.h.

Member Function Documentation

◆ operator!=()

template<typename T >
auto juce::Named< T >::operator!= ( const Named< T > &  other) const

Definition at line 90 of file juce_Serialisation.h.

◆ operator<()

template<typename T >
auto juce::Named< T >::operator< ( const Named< T > &  other) const

Definition at line 90 of file juce_Serialisation.h.

◆ operator<=()

template<typename T >
auto juce::Named< T >::operator<= ( const Named< T > &  other) const

Definition at line 90 of file juce_Serialisation.h.

◆ operator==()

template<typename T >
auto juce::Named< T >::operator== ( const Named< T > &  other) const

Definition at line 90 of file juce_Serialisation.h.

◆ operator>()

template<typename T >
auto juce::Named< T >::operator> ( const Named< T > &  other) const

Definition at line 90 of file juce_Serialisation.h.

◆ operator>=()

template<typename T >
auto juce::Named< T >::operator>= ( const Named< T > &  other) const

Definition at line 90 of file juce_Serialisation.h.

Member Data Documentation

◆ name

template<typename T >
std::string_view juce::Named< T >::name

A name that corresponds to the value.

Definition at line 93 of file juce_Serialisation.h.

◆ value

template<typename T >
T& juce::Named< T >::value

A reference to a value to wrap.

Definition at line 94 of file juce_Serialisation.h.


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