56 bool operator== (
const NamedValue&)
const noexcept;
57 bool operator!= (
const NamedValue&)
const noexcept;
89 int size() const noexcept;
92 bool isEmpty() const noexcept;
97 const var& operator[] (const Identifier& name) const noexcept;
102 var getWithDefault (const Identifier& name, const var& defaultReturnValue) const;
108 bool set (const Identifier& name, const var& newValue);
114 bool set (const Identifier& name, var&& newValue);
117 bool contains (const Identifier& name) const noexcept;
123 bool remove (const Identifier& name);
128 Identifier getName (
int index) const noexcept;
138 var* getVarPointer (const Identifier& name) noexcept;
148 const var* getVarPointer (const Identifier& name) const noexcept;
153 const var& getValueAt (
int index) const noexcept;
160 var* getVarPointerAt (
int index) noexcept;
167 const var* getVarPointerAt (
int index) const noexcept;
170 int indexOf (const Identifier& name) const noexcept;
177 void setFromXmlAttributes (const XmlElement& xml);
182 void copyToXmlAttributes (XmlElement& xml) const;
186 Array<NamedValue> values;
Represents a string identifier, designed for accessing properties by name.
Holds a set of named var objects.
A variant class, that can be used to hold a range of primitive values.
#define JUCE_API
This macro is added to all JUCE public class declarations.
Structure for a named var object.