FlowArithmeticCalculator 1.0.0
Flow Arithmetic Calculator
Loading...
Searching...
No Matches
business_logic::delegate::IBlockLifecycleManagerDelegate Class Referenceabstract

Delegate that manages the lifecycles of blocks. More...

#include <IBlockLifecycleManagerDelegate.h>

+ Inheritance diagram for business_logic::delegate::IBlockLifecycleManagerDelegate:
+ Collaboration diagram for business_logic::delegate::IBlockLifecycleManagerDelegate:

Public Member Functions

virtual ~IBlockLifecycleManagerDelegate ()=default
 
virtual void onPortsConnected (const business_logic::elements::structures::BlocksConnectionSide &source, const business_logic::elements::structures::BlocksConnectionSide &dest)=0
 Invoked when a connection is made between two ports + blocks (sides)
 
virtual bool hasConnectionBetween (const business_logic::elements::structures::BlocksConnectionSide &source, const business_logic::elements::structures::BlocksConnectionSide &dest) const =0
 Checks if there is a connection between two entities.
 
virtual bool isInputConnected (const business_logic::elements::structures::BlocksConnectionSide &side) const =0
 Checks if the input port is connected to anything.
 
virtual void onBlockDeleted (const business_logic::elements::blocks::BaseBlock *block)=0
 Called when a block is deleted.
 

Detailed Description

Delegate that manages the lifecycles of blocks.

Definition at line 18 of file IBlockLifecycleManagerDelegate.h.

Constructor & Destructor Documentation

◆ ~IBlockLifecycleManagerDelegate()

virtual business_logic::delegate::IBlockLifecycleManagerDelegate::~IBlockLifecycleManagerDelegate ( )
virtualdefault

Member Function Documentation

◆ hasConnectionBetween()

virtual bool business_logic::delegate::IBlockLifecycleManagerDelegate::hasConnectionBetween ( const business_logic::elements::structures::BlocksConnectionSide source,
const business_logic::elements::structures::BlocksConnectionSide dest 
) const
pure virtual

Checks if there is a connection between two entities.

Parameters
sourceThe source side of the connection
destThe destination side of the connection
Returns
True if there is a connection between the two entities, false otherwise

Implemented in business_logic::BlocksManager.

Referenced by business_logic::input::ConnectPortsInteraction::handleUserInteractedWith().

+ Here is the caller graph for this function:

◆ isInputConnected()

virtual bool business_logic::delegate::IBlockLifecycleManagerDelegate::isInputConnected ( const business_logic::elements::structures::BlocksConnectionSide side) const
pure virtual

Checks if the input port is connected to anything.

Parameters
sideThe side to check
Returns
True if the input port is connected to anything, false otherwise

Implemented in business_logic::BlocksManager.

Referenced by business_logic::elements::blocks::MonitorBlock::getValueToRenderAboveBlock(), and business_logic::input::ConnectPortsInteraction::handleUserInteractedWith().

+ Here is the caller graph for this function:

◆ onBlockDeleted()

virtual void business_logic::delegate::IBlockLifecycleManagerDelegate::onBlockDeleted ( const business_logic::elements::blocks::BaseBlock block)
pure virtual

Called when a block is deleted.

Parameters
blockThe block that was deleted

Implemented in business_logic::BlocksManager.

Referenced by business_logic::elements::blocks::BaseBlock::~BaseBlock().

+ Here is the caller graph for this function:

◆ onPortsConnected()

virtual void business_logic::delegate::IBlockLifecycleManagerDelegate::onPortsConnected ( const business_logic::elements::structures::BlocksConnectionSide source,
const business_logic::elements::structures::BlocksConnectionSide dest 
)
pure virtual

Invoked when a connection is made between two ports + blocks (sides)

Parameters
sourceThe source side of the connection
destThe destination side of the connection

Implemented in business_logic::BlocksManager.

Referenced by business_logic::input::ConnectPortsInteraction::handleUserInteractedWith().

+ Here is the caller graph for this function:

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