JUCE  v6.1.6 (6.0.8-1114)
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

 AudioProcessorParameterNode (AudioProcessorParameterNode &&)
 
 ~AudioProcessorParameterNode ()
 
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 parameter, 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 >, AudioProcessorParameterGroup *)
 
 AudioProcessorParameterNode (std::unique_ptr< AudioProcessorParameterGroup >, AudioProcessorParameterGroup *)
 

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/3]

juce::AudioProcessorParameterGroup::AudioProcessorParameterNode::AudioProcessorParameterNode ( AudioProcessorParameterNode &&  )

◆ ~AudioProcessorParameterNode()

juce::AudioProcessorParameterGroup::AudioProcessorParameterNode::~AudioProcessorParameterNode ( )

◆ AudioProcessorParameterNode() [2/3]

juce::AudioProcessorParameterGroup::AudioProcessorParameterNode::AudioProcessorParameterNode ( std::unique_ptr< AudioProcessorParameter ,
AudioProcessorParameterGroup  
)
private

◆ AudioProcessorParameterNode() [3/3]

juce::AudioProcessorParameterGroup::AudioProcessorParameterNode::AudioProcessorParameterNode ( std::unique_ptr< AudioProcessorParameterGroup ,
AudioProcessorParameterGroup  
)
private

Member Function Documentation

◆ getGroup()

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

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

◆ getParameter()

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

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

◆ getParent()

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

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

Friends And Related Function Documentation

◆ AudioProcessorParameterGroup

friend class AudioProcessorParameterGroup
friend

Member Data Documentation

◆ group

std::unique_ptr<AudioProcessorParameterGroup> juce::AudioProcessorParameterGroup::AudioProcessorParameterNode::group
private

◆ 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:
juce::gl::f
GLdouble f
Definition: juce_gl.h:685
juce::AudioProcessorParameterGroup::AudioProcessorParameterNode::group
std::unique_ptr< AudioProcessorParameterGroup > group
Definition: juce_AudioProcessorParameterGroup.h:80
juce::AudioProcessorParameterGroup::AudioProcessorParameterNode::parameter
std::unique_ptr< AudioProcessorParameter > parameter
Definition: juce_AudioProcessorParameterGroup.h:81