NanoTekSpice
DigitalElectronics
|
Quad 2-input NAND gate. More...
#include <C4011.hpp>
Public Member Functions | |
C4011 () | |
Component 4011 Constructor. More... | |
~C4011 () | |
Component 4011 Destructor. | |
nts::Tristate | compute (std::size_t pin=1) override |
Compute. More... | |
void | setLink (std::size_t pin, nts::IComponent &other, std::size_t otherPin) final |
Set link method. More... | |
void | dump () const noexcept override |
Display information. More... | |
void | setInput (std::size_t pin, nts::IComponent &other, std::size_t otherPin) final |
Set input link method. More... | |
void | setOutput (std::size_t pin, nts::IComponent &other, std::size_t otherPin) final |
Set output link method. More... | |
![]() | |
MyComponent (const nts::Type &type) | |
void | createAllComponents (const std::vector< Component::ComponentSetting > &settings) |
virtual void | setState (const std::string &state) |
virtual void | setState (const std::string &name, const std::string &state) |
const std::string & | getName () const noexcept final |
void | setName (const std::string &name) noexcept final |
const nts::Type & | getType () const noexcept final |
void | displayState (std::size_t) const noexcept override |
![]() | |
virtual void | createAllComponents (const std::vector< Component::ComponentSetting > &settings)=0 |
Additional Inherited Members | |
![]() | |
std::string | _name |
nts::Type | _type |
Quad 2-input NAND gate.
C4011::C4011 | ( | ) |
Component 4011 Constructor.
Initializes four NAND gates with their own output and input pins.
|
overridevirtual |
Compute.
Searches for the door containing the requested pin and calculates the exit status.
pin | Pin requested |
Implements nts::IComponent.
|
overridevirtualnoexcept |
|
finalvirtual |
Set input link method.
Method call by another component to bind to component 4001's input
pin | Pin linked |
other | Other Component |
otherPin | Ohter component pin |
Implements nts::IComponent.
|
finalvirtual |
Set link method.
Link this component to another
pin | Component pin that needs to be linked |
other | The other Component |
otherPin | The other component pin |
Implements nts::IComponent.
|
finalvirtual |
Set output link method.
Method call by another component to bind to component 4001's output
pin | Pin linked |
other | Other Component |
otherPin | Ohter component pin |
Implements nts::IComponent.