NanoTekSpice
DigitalElectronics
Public Member Functions | Protected Attributes | List of all members
Component::MyComponent Class Reference
Inheritance diagram for Component::MyComponent:
nts::IComponent C4001 C4008 C4011 C4030 C4069 C4071 C4081 C4514 Circuit Clock False Input Output True

Public Member Functions

 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
 
- Public Member Functions inherited from nts::IComponent
virtual void createAllComponents (const std::vector< Component::ComponentSetting > &settings)=0
 
virtual nts::Tristate compute (std::size_t pin=1)=0
 
virtual void setLink (std::size_t pin, nts::IComponent &other, std::size_t otherPin)=0
 
virtual void dump () const noexcept=0
 
virtual void setInput (std::size_t pin, nts::IComponent &other, std::size_t otherPin)=0
 
virtual void setOutput (std::size_t pin, nts::IComponent &other, std::size_t otherPin)=0
 

Protected Attributes

std::string _name
 
nts::Type _type
 

The documentation for this class was generated from the following files: