The BLOCKS SDK
BlockTopology Struct Reference

Description

Describes a set of blocks and the connections between them.

Public Member Functions

bool operator== (const BlockTopology &) const noexcept
 
bool operator!= (const BlockTopology &) const noexcept
 
Block::Ptr getBlockWithUID (Block::UID deviceID)
 
const Block::Ptr getBlockWithUID (Block::UID deviceID) const
 
Block::Array getDirectlyConnectedBlocks (Block::UID blockUID) const
 
juce::Array< BlockDeviceConnectiongetConnectionsBetweenBlocks (Block::UID uid1, Block::UID uid2) const
 
int getNumberOfConnectionsToBlock (Block::UID uid) const
 

Public Attributes

Block::Array blocks
 
juce::Array< BlockDeviceConnectionconnections
 

Member Function Documentation

◆ operator==()

bool BlockTopology::operator== ( const BlockTopology ) const
noexcept

◆ operator!=()

bool BlockTopology::operator!= ( const BlockTopology ) const
noexcept

◆ getBlockWithUID() [1/2]

Block::Ptr BlockTopology::getBlockWithUID ( Block::UID  deviceID)

◆ getBlockWithUID() [2/2]

const Block::Ptr BlockTopology::getBlockWithUID ( Block::UID  deviceID) const

References blocks.

◆ getDirectlyConnectedBlocks()

Block::Array BlockTopology::getDirectlyConnectedBlocks ( Block::UID  blockUID) const

References connections, and getBlockWithUID().

◆ getConnectionsBetweenBlocks()

juce::Array<BlockDeviceConnection> BlockTopology::getConnectionsBetweenBlocks ( Block::UID  uid1,
Block::UID  uid2 
) const

References connections.

◆ getNumberOfConnectionsToBlock()

int BlockTopology::getNumberOfConnectionsToBlock ( Block::UID  uid) const

References connections.

Member Data Documentation

◆ blocks

Block::Array BlockTopology::blocks

◆ connections


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