wiRedPanda
Logic Circuit Simulator
Loading...
Searching...
No Matches
ElementConstraints Struct Reference

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

Detailed Description

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.

Member Data Documentation

◆ canChangeAppearance

bool ElementConstraints::canChangeAppearance = false

Definition at line 30 of file ElementInfo.h.

Referenced by metadataFromConstraints().

◆ group

ElementGroup ElementConstraints::group = ElementGroup::Unknown

Definition at line 23 of file ElementInfo.h.

Referenced by metadataFromConstraints(), and validate().

◆ hasAudio

bool ElementConstraints::hasAudio = false

Definition at line 32 of file ElementInfo.h.

Referenced by metadataFromConstraints().

◆ hasAudioBox

bool ElementConstraints::hasAudioBox = false

Definition at line 33 of file ElementInfo.h.

Referenced by metadataFromConstraints().

◆ hasColors

bool ElementConstraints::hasColors = false

Definition at line 31 of file ElementInfo.h.

Referenced by metadataFromConstraints().

◆ hasDelay

bool ElementConstraints::hasDelay = false

Definition at line 36 of file ElementInfo.h.

Referenced by metadataFromConstraints().

◆ hasFrequency

bool ElementConstraints::hasFrequency = false

Definition at line 35 of file ElementInfo.h.

Referenced by metadataFromConstraints().

◆ hasLabel

bool ElementConstraints::hasLabel = false

Definition at line 37 of file ElementInfo.h.

Referenced by metadataFromConstraints().

◆ hasTrigger

bool ElementConstraints::hasTrigger = false

Definition at line 34 of file ElementInfo.h.

Referenced by metadataFromConstraints().

◆ hasTruthTable

bool ElementConstraints::hasTruthTable = false

Definition at line 38 of file ElementInfo.h.

Referenced by metadataFromConstraints().

◆ hasVolume

bool ElementConstraints::hasVolume = false

Definition at line 39 of file ElementInfo.h.

Referenced by metadataFromConstraints().

◆ maxInputSize

quint64 ElementConstraints::maxInputSize = 0

Definition at line 26 of file ElementInfo.h.

Referenced by metadataFromConstraints(), and validate().

◆ maxOutputSize

quint64 ElementConstraints::maxOutputSize = 0

Definition at line 28 of file ElementInfo.h.

Referenced by metadataFromConstraints(), and validate().

◆ minInputSize

quint64 ElementConstraints::minInputSize = 0

Definition at line 25 of file ElementInfo.h.

Referenced by metadataFromConstraints(), and validate().

◆ minOutputSize

quint64 ElementConstraints::minOutputSize = 0

Definition at line 27 of file ElementInfo.h.

Referenced by metadataFromConstraints(), and validate().

◆ rotatesGraphic

bool ElementConstraints::rotatesGraphic = true

Definition at line 40 of file ElementInfo.h.

Referenced by metadataFromConstraints().

◆ type

ElementType ElementConstraints::type = ElementType::Unknown

Definition at line 22 of file ElementInfo.h.

Referenced by metadataFromConstraints(), and validate().


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