mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
Graph: Add isAnInputTo overload
This commit is contained in:
parent
ecdebbd885
commit
5746bc99da
2 changed files with 15 additions and 4 deletions
|
|
@ -1443,9 +1443,14 @@ public:
|
|||
return connections.isConnected (srcID, destID);
|
||||
}
|
||||
|
||||
bool isAnInputTo (Node& src, Node& dst) const
|
||||
bool isAnInputTo (const Node& src, const Node& dst) const
|
||||
{
|
||||
return connections.isAnInputTo (src.nodeID, dst.nodeID);
|
||||
return isAnInputTo (src.nodeID, dst.nodeID);
|
||||
}
|
||||
|
||||
bool isAnInputTo (NodeID src, NodeID dst) const
|
||||
{
|
||||
return connections.isAnInputTo (src, dst);
|
||||
}
|
||||
|
||||
bool canConnect (const Connection& c) const
|
||||
|
|
@ -1622,7 +1627,8 @@ bool AudioProcessorGraph::canConnect (const Connection& c) const
|
|||
bool AudioProcessorGraph::isConnected (const Connection& c) const noexcept { return pimpl->isConnected (c); }
|
||||
bool AudioProcessorGraph::isConnected (NodeID a, NodeID b) const noexcept { return pimpl->isConnected (a, b); }
|
||||
bool AudioProcessorGraph::isConnectionLegal (const Connection& c) const { return pimpl->isConnectionLegal (c); }
|
||||
bool AudioProcessorGraph::isAnInputTo (Node& source, Node& destination) const noexcept { return pimpl->isAnInputTo (source, destination); }
|
||||
bool AudioProcessorGraph::isAnInputTo (const Node& source, const Node& destination) const noexcept { return pimpl->isAnInputTo (source, destination); }
|
||||
bool AudioProcessorGraph::isAnInputTo (NodeID source, NodeID destination) const noexcept { return pimpl->isAnInputTo (source, destination); }
|
||||
|
||||
AudioProcessorGraph::Node::Ptr AudioProcessorGraph::addNode (std::unique_ptr<AudioProcessor> newProcessor,
|
||||
NodeID nodeId,
|
||||
|
|
|
|||
|
|
@ -275,7 +275,12 @@ public:
|
|||
/** Does a recursive check to see if there's a direct or indirect series of connections
|
||||
between these two nodes.
|
||||
*/
|
||||
bool isAnInputTo (Node& source, Node& destination) const noexcept;
|
||||
bool isAnInputTo (const Node& source, const Node& destination) const noexcept;
|
||||
|
||||
/** Does a recursive check to see if there's a direct or indirect series of connections
|
||||
between these two nodes.
|
||||
*/
|
||||
bool isAnInputTo (NodeID source, NodeID destination) const noexcept;
|
||||
|
||||
/** Returns true if it would be legal to connect the specified points. */
|
||||
bool canConnect (const Connection&) const;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue