1#ifndef BUSINESS_LOGIC_ELEMENTS_IMPL_MULTIPLY_BLOCK_H
2#define BUSINESS_LOGIC_ELEMENTS_IMPL_MULTIPLY_BLOCK_H
35 const std::vector<business_logic::elements::structures::Port>&
getInputPorts()
40 const std::vector<business_logic::elements::structures::Port>&
getOutputPorts()
49 static const std::vector<business_logic::elements::structures::Port>
inputPorts;
50 static const std::vector<business_logic::elements::structures::Port>
outputPorts;
Class that provides a logger for the given class; automatically deduces the logger.
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.
business_logic::delegate::IBlockLifecycleManagerDelegate * blockLifecycleManagerDelegate
std::shared_ptr< spdlog::logger > logger
business_logic::delegate::INewBlockChoiceDelegate * newBlockChoiceDelegate
business_logic::delegate::IWindowDelegate * windowDelegate
A block that multiplies two input values together and outputs their product.
static const std::vector< business_logic::elements::structures::Port > outputPorts
business_logic::elements::blocks::BlockType getBlockType() const override
Gets the type of the block.
std::string getSelfId() const override
static constexpr int MULTIPLY_BLOCK_HEIGHT
static constexpr int MULTIPLY_BLOCK_WIDTH
const std::vector< business_logic::elements::structures::Port > & getOutputPorts() const override
Gets the output ports of the block.
void calculateOutputValues() override
Calculates the output port values based on input port values.
const std::vector< business_logic::elements::structures::Port > & getInputPorts() const override
Gets the input ports of the block.
static const std::vector< business_logic::elements::structures::Port > inputPorts
The base classes and structs for elements.
BlockType
The available block types.