MuxGate< 3 > Class Template Reference

Inheritance diagram for MuxGate< 3 >:

Inheritance graph
[legend]

List of all members.


Detailed Description

template<>
class MuxGate< 3 >

mux2 implementation (2+1 inputs, 1 output).

Definition at line 229 of file CaFactory.cpp.


Public Member Functions

virtual IGateclone () 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.

Member Function Documentation

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 231 of file CaFactory.cpp.

virtual TBus operator[] ( TBus  in  )  const [inline, virtual]

(the core method of IGate interface) Override it to define circuit's behavior.

Parameters:
in Input passed to gate.
Returns:
Returns corresponding output of the gate to given input.

Implements IGate.

Definition at line 234 of file CaFactory.cpp.

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.

References AbstractGate::nInputs().

Here is the call graph for this function:

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.


The documentation for this class was generated from the following file:
Generated on Sat May 2 16:39:40 2009 for nucad by  doxygen 1.5.4