JUCE  v5.4.1-191-g0ab5e696f
JUCE API
Looking for a senior C++ dev?
I'm looking for work. Hire me!
juce::AudioProcessorParameterGroup::AudioProcessorParameterNode Class Reference

A child of an AudioProcessorParameterGroup. More...

#include <juce_AudioProcessorParameterGroup.h>

Collaboration diagram for juce::AudioProcessorParameterGroup::AudioProcessorParameterNode:

Public Member Functions

AudioProcessorParameterGroupgetGroup () const
 Returns a pointer to a group if this node contains a group, nullptr otherwise. More...
 
AudioProcessorParametergetParameter () const
 Returns a pointer to a parameter if this node contains a paramater, nullptr otherwise. More...
 
AudioProcessorParameterGroupgetParent () const
 Returns the parent group or nullptr if this is a top-level group. More...
 

Private Member Functions

 AudioProcessorParameterNode (std::unique_ptr< AudioProcessorParameter > param, AudioProcessorParameterGroup *parentGroup)
 
 AudioProcessorParameterNode (std::unique_ptr< AudioProcessorParameterGroup > grp, AudioProcessorParameterGroup *parentGroup)
 

Private Attributes

std::unique_ptr< AudioProcessorParameterGroupgroup
 
std::unique_ptr< AudioProcessorParameterparameter
 
AudioProcessorParameterGroupparent = nullptr
 

Friends

class AudioProcessorParameterGroup
 

Detailed Description

A child of an AudioProcessorParameterGroup.

This can contain either an AudioProcessorParameter or an AudioProcessorParameterGroup. You can query which using the getParameter and getGroup methods.

for (auto* child : group)
if (auto* parameter = node.getParameter())
parameter->setValueNotifyingHost (0.5f);
else
node.getGroup()->AddChild (new Parameter());

Constructor & Destructor Documentation

◆ AudioProcessorParameterNode() [1/2]

juce::AudioProcessorParameterGroup::AudioProcessorParameterNode::AudioProcessorParameterNode ( std::unique_ptr< AudioProcessorParameter param,
AudioProcessorParameterGroup parentGroup 
)
inlineprivate

◆ AudioProcessorParameterNode() [2/2]

juce::AudioProcessorParameterGroup::AudioProcessorParameterNode::AudioProcessorParameterNode ( std::unique_ptr< AudioProcessorParameterGroup grp,
AudioProcessorParameterGroup parentGroup 
)
inlineprivate

References group, and parent.

Member Function Documentation

◆ getGroup()

AudioProcessorParameterGroup* juce::AudioProcessorParameterGroup::AudioProcessorParameterNode::getGroup ( ) const
inline

Returns a pointer to a group if this node contains a group, nullptr otherwise.

References group.

◆ getParameter()

AudioProcessorParameter* juce::AudioProcessorParameterGroup::AudioProcessorParameterNode::getParameter ( ) const
inline

Returns a pointer to a parameter if this node contains a paramater, nullptr otherwise.

References parameter.

◆ getParent()

AudioProcessorParameterGroup* juce::AudioProcessorParameterGroup::AudioProcessorParameterNode::getParent ( ) const
inline

Returns the parent group or nullptr if this is a top-level group.

References parent.

Friends And Related Function Documentation

◆ AudioProcessorParameterGroup

friend class AudioProcessorParameterGroup
friend

Member Data Documentation

◆ group

◆ parameter

std::unique_ptr<AudioProcessorParameter> juce::AudioProcessorParameterGroup::AudioProcessorParameterNode::parameter
private

◆ parent

AudioProcessorParameterGroup* juce::AudioProcessorParameterGroup::AudioProcessorParameterNode::parent = nullptr
private

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