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 | Protected Member Functions | Protected Attributes | List of all members
juce::ChoiceRemapperValueSource Class Referencefinal
Inheritance diagram for juce::ChoiceRemapperValueSource:
juce::Value::ValueSource juce::Value::Listener juce::ReferenceCountedObject juce::AsyncUpdater

Public Member Functions

 ChoiceRemapperValueSource (const Value &source, const Array< var > &map)
 
var getValue () const override
 Returns the current value of this object.
 
void setValue (const var &newValue) override
 Changes the current value.
 
- Public Member Functions inherited from juce::Value::ValueSource
void sendChangeMessage (bool dispatchSynchronously)
 Delivers a change message to all the listeners that are registered with this value.
 
- Public Member Functions inherited from juce::ReferenceCountedObject
void incReferenceCount () noexcept
 Increments the object's reference count.
 
void decReferenceCount () noexcept
 Decreases the object's reference count.
 
bool decReferenceCountWithoutDeleting () noexcept
 Decreases the object's reference count.
 
int getReferenceCount () const noexcept
 Returns the object's current reference count.
 

Protected Member Functions

void valueChanged (Value &) override
 Called when a Value object is changed.
 
- Protected Member Functions inherited from juce::ReferenceCountedObject
 ReferenceCountedObject ()=default
 Creates the reference-counted object (with an initial ref count of zero).
 
 ReferenceCountedObject (const ReferenceCountedObject &) noexcept
 Copying from another object does not affect this one's reference-count.
 
 ReferenceCountedObject (ReferenceCountedObject &&) noexcept
 Copying from another object does not affect this one's reference-count.
 
ReferenceCountedObjectoperator= (const ReferenceCountedObject &) noexcept
 Copying from another object does not affect this one's reference-count.
 
ReferenceCountedObjectoperator= (ReferenceCountedObject &&) noexcept
 Copying from another object does not affect this one's reference-count.
 
virtual ~ReferenceCountedObject ()
 Destructor.
 
void resetReferenceCount () noexcept
 Resets the reference count to zero without deleting the object.
 

Protected Attributes

Value sourceValue
 
Array< varmappings
 
- Protected Attributes inherited from juce::Value::ValueSource
SortedSet< Value * > valuesWithListeners
 

Detailed Description

Definition at line 30 of file juce_ChoicePropertyComponent.cpp.

Constructor & Destructor Documentation

◆ ChoiceRemapperValueSource()

juce::ChoiceRemapperValueSource::ChoiceRemapperValueSource ( const Value source,
const Array< var > &  map 
)

Definition at line 34 of file juce_ChoicePropertyComponent.cpp.

Member Function Documentation

◆ getValue()

var juce::ChoiceRemapperValueSource::getValue ( ) const
overridevirtual

Returns the current value of this object.

Implements juce::Value::ValueSource.

Definition at line 41 of file juce_ChoicePropertyComponent.cpp.

◆ setValue()

void juce::ChoiceRemapperValueSource::setValue ( const var newValue)
overridevirtual

Changes the current value.

This must also trigger a change message if the value actually changes.

Implements juce::Value::ValueSource.

Definition at line 52 of file juce_ChoicePropertyComponent.cpp.

◆ valueChanged()

void juce::ChoiceRemapperValueSource::valueChanged ( Value value)
overrideprotectedvirtual

Called when a Value object is changed.

Note that the Value object passed as a parameter may not be exactly the same object that you registered the listener with - it might be a copy that refers to the same underlying ValueSource. To find out, you can call Value::refersToSameSourceAs().

Implements juce::Value::Listener.

Definition at line 64 of file juce_ChoicePropertyComponent.cpp.

Member Data Documentation

◆ mappings

Array<var> juce::ChoiceRemapperValueSource::mappings
protected

Definition at line 62 of file juce_ChoicePropertyComponent.cpp.

◆ sourceValue

Value juce::ChoiceRemapperValueSource::sourceValue
protected

Definition at line 61 of file juce_ChoicePropertyComponent.cpp.


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