#include <BaseLogicGate.h>
Public Member Functions | |
BaseLogicGate (const SimTime &delay) | |
BaseLogicGate (const BaseLogicGate &that) | |
const SimTime & | getDelay () const |
Gets the delay. | |
void | setDelay (const SimTime &delay) |
Sets the delay. | |
virtual LogicVal | evalOutput () const =0 |
Evaluate output based on the current state of the input. | |
virtual bool | hasInputName (const std::string &net) const =0 |
virtual bool | hasOutputName (const std::string &net) const =0 |
virtual const std::string & | getOutputName () const =0 |
Gets the output name. | |
Private Attributes | |
SimTime | delay |
The delay. | |
Static Private Attributes | |
static const SimTime | MIN_DELAY = 1l |
BaseLogicGate::BaseLogicGate | ( | const SimTime & | delay | ) | [inline] |
BaseLogicGate::BaseLogicGate | ( | const BaseLogicGate & | that | ) | [inline] |
virtual LogicVal BaseLogicGate::evalOutput | ( | ) | const [pure virtual] |
Evaluate output based on the current state of the input.
Implemented in Input, OneInputGate, Output, and TwoInputGate.
const SimTime& BaseLogicGate::getDelay | ( | ) | const [inline] |
Gets the delay.
virtual const std::string& BaseLogicGate::getOutputName | ( | ) | const [pure virtual] |
virtual bool BaseLogicGate::hasInputName | ( | const std::string & | net | ) | const [pure virtual] |
net,: | name of a wire |
Implemented in OneInputGate, and TwoInputGate.
virtual bool BaseLogicGate::hasOutputName | ( | const std::string & | net | ) | const [pure virtual] |
net,: | name of a wire |
Implemented in OneInputGate, and TwoInputGate.
void BaseLogicGate::setDelay | ( | const SimTime & | delay | ) | [inline] |
Sets the delay.
delay | the new delay |
SimTime BaseLogicGate::delay [private] |
The delay.
const SimTime BaseLogicGate::MIN_DELAY = 1l [static, private] |