The NOT Class implements a functional not gate for use in our CPU Simulator.
NOT myNotGate();
Function | Parameter | Return Value |
---|---|---|
NOT() | None | Pointer/Variable Instantiation of a Not Gate |
Parameterless constructor to instantiate a new NOT.
Accepts a boolean value and sets input to the value of that parameter.
myNotGate.set(bool);
Function | Parameter | Return Value |
---|---|---|
void set() | bool | none |
get() will return the output of the NOT.
myNotGate.get();
Function | Parameter | Return Value |
---|---|---|
bool get() | none | bool |