14 SUBTRACT_BLOCK_HEIGHT,
15 newBlockChoiceDelegate,
16 blockLifecycleManagerDelegate,
Delegate that manages the lifecycles of blocks.
Delegate that is notified when a new block is chosen to be added to the canvas.
The delegate for the window.
The base class for all blocks, containing common functionality and members.
const FloatingPoint & getPortValue(const structures::Port *port) const
Gets the value of the port.
std::unordered_map< const structures::Port *, FloatingPoint > portValues
The registry of port values.
static const std::vector< business_logic::elements::structures::Port > inputPorts
void calculateOutputValues() override
Calculates the output port values based on input port values.
static const std::vector< business_logic::elements::structures::Port > outputPorts
SubtractBlock(int cx, int cy, business_logic::delegate::INewBlockChoiceDelegate *newBlockChoiceDelegate, business_logic::delegate::IBlockLifecycleManagerDelegate *blockLifecycleManagerDelegate, business_logic::delegate::IWindowDelegate *windowDelegate)
The base classes and structs for elements.
The business logic module.
std::string stringifyAddressOf(const T *value)
Convert a pointer to a string in format "0x..." containing its hexadecimal address.