Table of Contents

NOT Class

The NOT Class implements a functional not gate for use in our CPU Simulator.

NOT Constructor

NOT myNotGate();
Function Parameter Return Value
NOT() None Pointer/Variable Instantiation of a Not Gate

Parameterless constructor to instantiate a new NOT.

set(bool)

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()

get() will return the output of the NOT.

myNotGate.get();
Function Parameter Return Value
bool get() none bool