wiRedPanda
Logic Circuit Simulator
Loading...
Searching...
No Matches
ElementInfo< DFlipFlop > Struct Reference

Static Public Member Functions

static ElementMetadata metadata ()

Static Public Attributes

static constexpr ElementConstraints constraints
static const bool registered

Detailed Description

Definition at line 11 of file DFlipFlop.cpp.

Member Function Documentation

◆ metadata()

ElementMetadata ElementInfo< DFlipFlop >::metadata ( )
inlinestatic

Definition at line 23 of file DFlipFlop.cpp.

References constraints, metadataFromConstraints(), and DFlipFlop::pixmapPath().

Member Data Documentation

◆ constraints

ElementConstraints ElementInfo< DFlipFlop >::constraints
staticconstexpr
Initial value:
{
.type = ElementType::DFlipFlop,
.group = ElementGroup::Memory,
.minInputSize = 4,
.maxInputSize = 4,
.minOutputSize = 2,
.maxOutputSize = 2,
.canChangeAppearance = true,
}

Definition at line 12 of file DFlipFlop.cpp.

Referenced by metadata().

◆ registered

const bool ElementInfo< DFlipFlop >::registered
inlinestatic
Initial value:
= []() {
ElementFactory::registerCreator(constraints.type, [] { return new DFlipFlop(); });
return true;
}()
static void registerCreator(ElementType type, std::function< GraphicElement *()> creator)
Registers a creator lambda for type, used by buildElement().
static void registerMetadata(const ElementMetadata &meta)
Registers meta in the global map (called once per element type at startup).
static constexpr ElementConstraints constraints
Definition And.cpp:12
static ElementMetadata metadata()
Definition DFlipFlop.cpp:23

Definition at line 33 of file DFlipFlop.cpp.


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