66 explicit Value (
const var& initialValue);
93 void setValue (
const var& newValue);
102 Value& operator= (
const var& newValue);
115 void referTo (
const Value& valueToReferTo);
120 bool refersToSameSourceAs (
const Value& other)
const;
126 bool operator== (
const Value& other)
const;
132 bool operator!= (
const Value& other)
const;
164 void addListener (
Listener* listener);
167 void removeListener (
Listener* listener);
199 void sendChangeMessage (
bool dispatchSynchronously);
207 void handleAsyncUpdate()
override;
223 friend class ValueSource;
227 void callListeners();
228 void removeFromListenerList();
236 explicit Value (
void*) =
delete;
Has a callback method that is triggered asynchronously.
Holds a set of objects and can invoke a member function callback on each object in the set with a sin...
A smart-pointer class which points to a reference-counted object.
A base class which provides methods for reference-counting.
Holds a set of unique primitive objects, such as ints or doubles.
Receives callbacks when a Value object changes.
virtual void valueChanged(Value &value)=0
Called when a Value object is changed.
Used internally by the Value class as the base class for its shared value objects.
virtual var getValue() const =0
Returns the current value of this object.
virtual void setValue(const var &newValue)=0
Changes the current value.
Represents a shared variant value.
ValueSource & getValueSource() noexcept
Returns the ValueSource that this value is referring to.
A variant class, that can be used to hold a range of primitive values.
OutputStream &JUCE_CALLTYPE operator<<(OutputStream &stream, const BigInteger &value)
Writes a BigInteger to an OutputStream as a UTF8 decimal string.
Type unalignedPointerCast(void *ptr) noexcept
Casts a pointer to another type via void*, which suppresses the cast-align warning which sometimes ar...