BaseTwoInputGate Class Reference
#include <BaseTwoInputGate.h>
List of all members.
Constructor & Destructor Documentation
BaseTwoInputGate::BaseTwoInputGate |
( |
const std::string & |
outputName, |
|
|
const std::string & |
input1Name, |
|
|
const std::string & |
input2Name | |
|
) |
| | [inline] |
Instantiates a new two input gate.
- Parameters:
-
| outputName | the output name |
| input1Name | the input1 name |
| input2Name | the input2 name |
Member Function Documentation
const std::string& BaseTwoInputGate::getInput1Name |
( |
|
) |
const [inline] |
Gets the input1 name.
- Returns:
- the input1 name
const LogicVal& BaseTwoInputGate::getInput1Val |
( |
|
) |
const [inline] |
Gets the input1 val.
- Returns:
- the input1 val
const std::string& BaseTwoInputGate::getInput2Name |
( |
|
) |
[inline] |
Gets the input2 name.
- Returns:
- the input2 name
const LogicVal& BaseTwoInputGate::getInput2Val |
( |
|
) |
const [inline] |
Gets the input2 val.
- Returns:
- the input2 val
const std::string& BaseTwoInputGate::getOutputName |
( |
|
) |
const [inline] |
- Returns:
- the name of the output
Reimplemented in TwoInputGate.
const LogicVal& BaseTwoInputGate::getOutputVal |
( |
|
) |
const [inline] |
Gets the output val.
- Returns:
- the output val
bool BaseTwoInputGate::hasInputName |
( |
const std::string & |
net |
) |
const [inline] |
- Parameters:
-
- Returns:
- true if has an input with the name equal to 'net'
Reimplemented in TwoInputGate.
bool BaseTwoInputGate::hasOutputName |
( |
const std::string & |
net |
) |
const [inline] |
- Parameters:
-
- Returns:
- true if has an output with the name equal to 'net'
Reimplemented in TwoInputGate.
void BaseTwoInputGate::setInput1Name |
( |
const std::string & |
input1Name |
) |
[inline] |
Sets the input1 name.
- Parameters:
-
| input1Name | the new input1 name |
void BaseTwoInputGate::setInput1Val |
( |
const LogicVal & |
input1Val |
) |
[inline] |
Sets the input1 val.
- Parameters:
-
| input1Val | the new input1 val |
void BaseTwoInputGate::setInput2Name |
( |
const std::string & |
input2Name |
) |
[inline] |
Sets the input2 name.
- Parameters:
-
| input2Name | the new input2 name |
void BaseTwoInputGate::setInput2Val |
( |
const LogicVal & |
input2Val |
) |
[inline] |
Sets the input2 val.
- Parameters:
-
| input2Val | the new input2 val |
void BaseTwoInputGate::setOutputName |
( |
const std::string & |
outputName |
) |
[inline] |
Sets the output name.
- Parameters:
-
| outputName | the new output name |
void BaseTwoInputGate::setOutputVal |
( |
const LogicVal & |
outputVal |
) |
[inline] |
Sets the output val.
- Parameters:
-
| outputVal | the new output val |
const std::string BaseTwoInputGate::toString |
( |
|
) |
const [inline] |
Member Data Documentation
The documentation for this class was generated from the following file: