|
wiRedPanda
Logic Circuit Simulator
|
Compile-time-validatable subset of ElementMetadata. More...
#include <ElementInfo.h>
Public Attributes | |
| bool | canChangeAppearance = false |
| ElementGroup | group = ElementGroup::Unknown |
| bool | hasAudio = false |
| bool | hasAudioBox = false |
| bool | hasColors = false |
| bool | hasDelay = false |
| bool | hasFrequency = false |
| bool | hasLabel = false |
| bool | hasTrigger = false |
| bool | hasTruthTable = false |
| bool | hasVolume = false |
| quint64 | maxInputSize = 0 |
| quint64 | maxOutputSize = 0 |
| quint64 | minInputSize = 0 |
| quint64 | minOutputSize = 0 |
| bool | rotatesGraphic = true |
| ElementType | type = ElementType::Unknown |
Compile-time-validatable subset of ElementMetadata.
These constexpr-friendly constraints enable static validation of element metadata at compile time. They are converted to ElementMetadata via metadataFromConstraints().
Definition at line 21 of file ElementInfo.h.
| bool ElementConstraints::canChangeAppearance = false |
Definition at line 30 of file ElementInfo.h.
Referenced by metadataFromConstraints().
| ElementGroup ElementConstraints::group = ElementGroup::Unknown |
Definition at line 23 of file ElementInfo.h.
Referenced by metadataFromConstraints(), and validate().
| bool ElementConstraints::hasAudio = false |
Definition at line 32 of file ElementInfo.h.
Referenced by metadataFromConstraints().
| bool ElementConstraints::hasAudioBox = false |
Definition at line 33 of file ElementInfo.h.
Referenced by metadataFromConstraints().
| bool ElementConstraints::hasColors = false |
Definition at line 31 of file ElementInfo.h.
Referenced by metadataFromConstraints().
| bool ElementConstraints::hasDelay = false |
Definition at line 36 of file ElementInfo.h.
Referenced by metadataFromConstraints().
| bool ElementConstraints::hasFrequency = false |
Definition at line 35 of file ElementInfo.h.
Referenced by metadataFromConstraints().
| bool ElementConstraints::hasLabel = false |
Definition at line 37 of file ElementInfo.h.
Referenced by metadataFromConstraints().
| bool ElementConstraints::hasTrigger = false |
Definition at line 34 of file ElementInfo.h.
Referenced by metadataFromConstraints().
| bool ElementConstraints::hasTruthTable = false |
Definition at line 38 of file ElementInfo.h.
Referenced by metadataFromConstraints().
| bool ElementConstraints::hasVolume = false |
Definition at line 39 of file ElementInfo.h.
Referenced by metadataFromConstraints().
| quint64 ElementConstraints::maxInputSize = 0 |
Definition at line 26 of file ElementInfo.h.
Referenced by metadataFromConstraints(), and validate().
| quint64 ElementConstraints::maxOutputSize = 0 |
Definition at line 28 of file ElementInfo.h.
Referenced by metadataFromConstraints(), and validate().
| quint64 ElementConstraints::minInputSize = 0 |
Definition at line 25 of file ElementInfo.h.
Referenced by metadataFromConstraints(), and validate().
| quint64 ElementConstraints::minOutputSize = 0 |
Definition at line 27 of file ElementInfo.h.
Referenced by metadataFromConstraints(), and validate().
| bool ElementConstraints::rotatesGraphic = true |
Definition at line 40 of file ElementInfo.h.
Referenced by metadataFromConstraints().
| ElementType ElementConstraints::type = ElementType::Unknown |
Definition at line 22 of file ElementInfo.h.
Referenced by metadataFromConstraints(), and validate().