Represents one of the nodes, or processors, in an AudioProcessorGraph. More...
#include <juce_AudioProcessorGraph.h>
Public Types | |
using | Ptr = ReferenceCountedObjectPtr<Node> |
A convenient typedef for referring to a pointer to a node object. | |
Public Member Functions | |
AudioProcessor * | getProcessor () const noexcept |
The actual processor object that this node represents. | |
bool | isBypassed () const noexcept |
Returns if the node is bypassed or not. | |
void | setBypassed (bool shouldBeBypassed) noexcept |
Tell this node to bypass processing. | |
bool | userRequestedBypass () const |
Node (NodeID n, std::unique_ptr< AudioProcessor > p) noexcept | |
Public Member Functions inherited from 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. | |
Public Attributes | |
const NodeID | nodeID |
The ID number assigned to this node. | |
NamedValueSet | properties |
A set of user-definable properties that are associated with this node. | |
Additional Inherited Members | |
Protected Member Functions inherited from 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. | |
ReferenceCountedObject & | operator= (const ReferenceCountedObject &) noexcept |
Copying from another object does not affect this one's reference-count. | |
ReferenceCountedObject & | operator= (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. | |
Represents one of the nodes, or processors, in an AudioProcessorGraph.
To create a node, call AudioProcessorGraph::addNode().
A convenient typedef for referring to a pointer to a node object.
|
noexcept |
References jassert.
|
noexcept |
The actual processor object that this node represents.
|
noexcept |
Returns if the node is bypassed or not.
References approximatelyEqual().
|
noexcept |
Tell this node to bypass processing.
bool AudioProcessorGraph::Node::userRequestedBypass | ( | ) | const |
const NodeID AudioProcessorGraph::Node::nodeID |
The ID number assigned to this node.
This is assigned by the graph that owns it, and can't be changed.
NamedValueSet AudioProcessorGraph::Node::properties |
A set of user-definable properties that are associated with this node.
This can be used to attach values to the node for whatever purpose seems useful. For example, you might store an x and y position if your application is displaying the nodes on-screen.