OpenShot Audio Library | OpenShotAudio 0.3.2
|
#include <juce_Value.h>
Public Member Functions | |
virtual var | getValue () const =0 |
virtual void | setValue (const var &newValue)=0 |
void | sendChangeMessage (bool dispatchSynchronously) |
![]() | |
void | incReferenceCount () noexcept |
void | decReferenceCount () noexcept |
bool | decReferenceCountWithoutDeleting () noexcept |
int | getReferenceCount () const noexcept |
Protected Attributes | |
SortedSet< Value * > | valuesWithListeners |
Additional Inherited Members | |
![]() | |
ReferenceCountedObject ()=default | |
ReferenceCountedObject (const ReferenceCountedObject &) noexcept | |
ReferenceCountedObject (ReferenceCountedObject &&) noexcept | |
ReferenceCountedObject & | operator= (const ReferenceCountedObject &) noexcept |
ReferenceCountedObject & | operator= (ReferenceCountedObject &&) noexcept |
virtual | ~ReferenceCountedObject () |
void | resetReferenceCount () noexcept |
Used internally by the Value class as the base class for its shared value objects.
The Value class is essentially a reference-counted pointer to a shared instance of a ValueSource object. If you're feeling adventurous, you can create your own custom ValueSource classes to allow Value objects to represent your own custom data items.
Definition at line 178 of file juce_Value.h.
juce::Value::ValueSource::ValueSource | ( | ) |
Definition at line 30 of file juce_Value.cpp.
|
override |
Definition at line 34 of file juce_Value.cpp.
Returns the current value of this object.
Delivers a change message to all the listeners that are registered with this value.
If dispatchSynchronously is true, the method will call all the listeners before returning; otherwise it'll dispatch a message and make the call later.
Definition at line 44 of file juce_Value.cpp.
Changes the current value. This must also trigger a change message if the value actually changes.
Definition at line 204 of file juce_Value.h.