BaseTwoInputGate Class Reference

#include <BaseTwoInputGate.h>

Inheritance diagram for BaseTwoInputGate:
TwoInputGate

List of all members.

Public Member Functions

 BaseTwoInputGate (const std::string &outputName, const std::string &input1Name, const std::string &input2Name)
 Instantiates a new two input gate.
bool hasInputName (const std::string &net) const
bool hasOutputName (const std::string &net) const
const std::string toString () const
 for debugging
const std::string & getInput1Name () const
 Gets the input1 name.
void setInput1Name (const std::string &input1Name)
 Sets the input1 name.
const LogicValgetInput1Val () const
 Gets the input1 val.
void setInput1Val (const LogicVal &input1Val)
 Sets the input1 val.
const std::string & getInput2Name ()
 Gets the input2 name.
void setInput2Name (const std::string &input2Name)
 Sets the input2 name.
const LogicValgetInput2Val () const
 Gets the input2 val.
void setInput2Val (const LogicVal &input2Val)
 Sets the input2 val.
const std::string & getOutputName () const
void setOutputName (const std::string &outputName)
 Sets the output name.
const LogicValgetOutputVal () const
 Gets the output val.
void setOutputVal (const LogicVal &outputVal)
 Sets the output val.

Protected Attributes

std::string outputName
 The output name.
std::string input1Name
 The input1 name.
std::string input2Name
 The input2 name.
LogicVal outputVal
 The output val.
LogicVal input1Val
 The input1 val.
LogicVal input2Val
 The input2 val.

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:
net,: name of a wire
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:
net,: name of a wire
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]

for debugging

Reimplemented in TwoInputGate.


Member Data Documentation

std::string BaseTwoInputGate::input1Name [protected]

The input1 name.

The input1 val.

std::string BaseTwoInputGate::input2Name [protected]

The input2 name.

The input2 val.

std::string BaseTwoInputGate::outputName [protected]

The output name.

The output val.


The documentation for this class was generated from the following file:
Generated on Tue Aug 2 11:51:26 2011 for Galois by  doxygen 1.6.3