wiRedPanda
Logic Circuit Simulator
Loading...
Searching...
No Matches
And.h
Go to the documentation of this file.
1// Copyright 2015 - 2026, GIBIS-UNIFESP and the wiRedPanda contributors
2// SPDX-License-Identifier: GPL-3.0-or-later
3
7
8#pragma once
9
11
16class And : public GraphicElement
17{
18 Q_OBJECT
19
20public:
22 explicit And(QGraphicsItem *parent = nullptr);
23
25 void updateLogic() override;
26};
Abstract base class for all graphical circuit elements.
void updateLogic() override
Sets output to the logical AND of all inputs.
Definition And.cpp:50
And(QGraphicsItem *parent=nullptr)
Constructs an And gate element with default 2 inputs.
Definition And.cpp:45
GraphicElement(ElementType type, QGraphicsItem *parent=nullptr)
Constructs a graphic element of the given type, fetching all properties from the metadata registry.