JUCE
|
Represents traversal paths from master blocks and any connected blocks. More...
#include <juce_BlockGraph.h>
Public Types | |
using | BlockTraversalPaths = Array<Block::Array, CriticalSection> |
Public Member Functions | |
BlockGraph (const BlockTopology topology, std::function< bool(Block::Ptr block)> filter=nullptr) | |
Creates a BlockGraph object from a BlockTopology with an optional filter function. | |
BlockGraph (BlockGraph &&) | |
BlockTraversalPaths | getTraversalPaths () const |
Get traversal paths for each master block in a topology. | |
Block::Array | getTraversalPathFromMaster (Block::Ptr masterBlock) const |
Get traversal path for a specific master block in a topology. | |
String | asString () const |
Gets a string representation of all traversal paths. | |
Represents traversal paths from master blocks and any connected blocks.
BlockGraph::BlockGraph | ( | const BlockTopology | topology, |
std::function< bool(Block::Ptr block)> | filter = nullptr ) |
Creates a BlockGraph object from a BlockTopology with an optional filter function.
This will build a block graph of traversal paths for each master.
Referenced by asString(), and BlockGraph().
BlockGraph::BlockGraph | ( | BlockGraph && | ) |
References BlockGraph().
BlockTraversalPaths BlockGraph::getTraversalPaths | ( | ) | const |
Get traversal paths for each master block in a topology.
Block::Array BlockGraph::getTraversalPathFromMaster | ( | Block::Ptr | masterBlock | ) | const |
Get traversal path for a specific master block in a topology.
String BlockGraph::asString | ( | ) | const |
Gets a string representation of all traversal paths.
References BlockGraph().