57template <
typename Type>
118 template <
typename OtherType>
119 bool operator== (
const OtherType& other)
const {
return cachedValue == other; }
124 template <
typename OtherType>
125 bool operator!= (
const OtherType& other)
const {
return cachedValue != other; }
129 Value getPropertyAsValue();
134 bool isUsingDefault()
const;
144 void setValue (
const Type& newValue,
UndoManager* undoManagerToUse);
149 void resetToDefault();
154 void resetToDefault (
UndoManager* undoManagerToUse);
174 void forceUpdateOfCachedValue();
207template <
typename Type>
210template <
typename Type>
218template <
typename Type>
226template <
typename Type>
232template <
typename Type>
238template <
typename Type>
245template <
typename Type>
255template <
typename Type>
261template <
typename Type>
268template <
typename Type>
274template <
typename Type>
280template <
typename Type>
286template <
typename Type>
298template <
typename Type>
307template <
typename Type>
#define noexcept
Definition DistrhoDefines.h:72
Definition juce_CachedValue.h:59
bool isUsingDefault() const
Definition juce_CachedValue.h:233
Type * operator->() noexcept
Definition juce_CachedValue.h:113
Type getDefault() const
Definition juce_CachedValue.h:137
ValueTree & getValueTree() noexcept
Definition juce_CachedValue.h:178
const Identifier & getPropertyID() const noexcept
Definition juce_CachedValue.h:181
ValueTree targetTree
Definition juce_CachedValue.h:188
void forceUpdateOfCachedValue()
Definition juce_CachedValue.h:281
Type cachedValue
Definition juce_CachedValue.h:192
void setValue(const Type &newValue, UndoManager *undoManagerToUse)
Definition juce_CachedValue.h:246
UndoManager * getUndoManager() noexcept
Definition juce_CachedValue.h:184
void referToWithDefault(ValueTree &, const Identifier &, UndoManager *, const Type &)
Definition juce_CachedValue.h:287
void resetToDefault()
Definition juce_CachedValue.h:256
void referTo(ValueTree &tree, const Identifier &property, UndoManager *um)
Definition juce_CachedValue.h:269
Value getPropertyAsValue()
Definition juce_CachedValue.h:227
void setDefault(const Type &value)
Definition juce_CachedValue.h:157
Type defaultValue
Definition juce_CachedValue.h:191
void valueTreePropertyChanged(ValueTree &changedTree, const Identifier &changedProperty) override
Definition juce_CachedValue.h:308
Type getTypedValue() const
Definition juce_CachedValue.h:299
Type get() const noexcept
Definition juce_CachedValue.h:105
UndoManager * undoManager
Definition juce_CachedValue.h:190
Type & operator*() noexcept
Definition juce_CachedValue.h:108
Identifier targetProperty
Definition juce_CachedValue.h:189
Definition juce_Identifier.h:39
Definition juce_UndoManager.h:52
Definition juce_Value.h:51
Definition juce_ValueTree.h:479
Definition juce_ValueTree.h:72
Definition juce_Variant.h:42
unsigned v[N_MAX]
Definition inflate.c:1584
register unsigned i
Definition inflate.c:1575
static PuglViewHint int value
Definition pugl.h:1708
#define JUCE_DECLARE_WEAK_REFERENCEABLE(Class)
Definition juce_WeakReference.h:234
Definition carla_juce.cpp:31
static var toVar(const Type &t)
Definition juce_Variant.h:353
static Type fromVar(const var &v)
Definition juce_Variant.h:352
#define const
Definition zconf.h:137