#include <CaFactory.h>

See CommonGateBase documentation.
| N | Count of input signals. |
Definition at line 322 of file CaFactory.h.
Public Member Functions | |
| virtual IGate * | clone () const |
| Each final derivation of IGate has to override this method with self-cloning method to keep the simulator working. | |
| virtual TBus | operator[] (TBus in) const |
| (the core method of IGate interface) Override it to define circuit's behavior. | |
| virtual size_t | nInputs () const |
| Override this method to return number of circuit's input signals. | |
| virtual size_t | nOutputs () const |
| Override this method to return number of circuit's output signals. | |
Protected Member Functions | |
| virtual bool | init () const |
| Override this method to initialize output value. | |
| virtual void | perform (bool &out, bool in) const |
| Override this method to define the binary operator. | |
| virtual IGate* clone | ( | ) | const [inline, virtual] |
Each final derivation of IGate has to override this method with self-cloning method to keep the simulator working.
If you find a way how to do it generically at the top level, please send a patch to nucad@dudka.cz.
Implements IGate.
Definition at line 324 of file CaFactory.h.
| virtual bool init | ( | ) | const [inline, protected, virtual] |
Override this method to initialize output value.
Implements CommonGateBase.
Definition at line 328 of file CaFactory.h.
| virtual void perform | ( | bool & | out, | |
| bool | in | |||
| ) | const [inline, protected, virtual] |
Override this method to define the binary operator.
| out | Reference to output signal. | |
| in | Corresponding part of input which is being processed. |
Implements CommonGateBase.
Definition at line 331 of file CaFactory.h.
(the core method of IGate interface) Override it to define circuit's behavior.
| in | Input passed to gate. |
Implements IGate.
Definition at line 257 of file CaFactory.h.
References CommonGateBase::init(), and CommonGateBase::perform().

| virtual size_t nInputs | ( | ) | const [inline, virtual, inherited] |
Override this method to return number of circuit's input signals.
Implements IGate.
Definition at line 182 of file CaFactory.h.
| virtual size_t nOutputs | ( | ) | const [inline, virtual, inherited] |
Override this method to return number of circuit's output signals.
Implements IGate.
Definition at line 185 of file CaFactory.h.
1.5.4