BaseOneInputGate Class Reference

#include <BaseOneInputGate.h>

Inheritance diagram for BaseOneInputGate:
OneInputGate Input Output

List of all members.

Public Member Functions

 BaseOneInputGate (const std::string &outputName, const std::string &inputName)
 Instantiates a new one input gate.
bool hasInputName (const std::string &net) const
bool hasOutputName (const std::string &net) const
const std::string toString () const
const std::string & getInputName () const
 Gets the input name.
void setInputName (const std::string &inputName)
 Sets the input name.
const LogicValgetInputVal () const
 Gets the input val.
void setInputVal (const LogicVal &inputVal)
 Sets the input 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 inputName
 The input name.
LogicVal outputVal
 The output val.
LogicVal inputVal
 The input val.

Constructor & Destructor Documentation

BaseOneInputGate::BaseOneInputGate ( const std::string &  outputName,
const std::string &  inputName 
) [inline]

Instantiates a new one input gate.

Parameters:
outputName the output name
inputName the input name

Member Function Documentation

const std::string& BaseOneInputGate::getInputName (  )  const [inline]

Gets the input name.

Returns:
the input name
const LogicVal& BaseOneInputGate::getInputVal (  )  const [inline]

Gets the input val.

Returns:
the input val
const std::string& BaseOneInputGate::getOutputName (  )  const [inline]

Reimplemented in OneInputGate.

const LogicVal& BaseOneInputGate::getOutputVal (  )  const [inline]

Gets the output val.

Returns:
the output val
bool BaseOneInputGate::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 OneInputGate.

bool BaseOneInputGate::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 OneInputGate.

void BaseOneInputGate::setInputName ( const std::string &  inputName  )  [inline]

Sets the input name.

Parameters:
inputName the new input name
void BaseOneInputGate::setInputVal ( const LogicVal inputVal  )  [inline]

Sets the input val.

Parameters:
inputVal the new input val
void BaseOneInputGate::setOutputName ( const std::string &  outputName  )  [inline]

Sets the output name.

Parameters:
outputName the new output name
void BaseOneInputGate::setOutputVal ( const LogicVal outputVal  )  [inline]

Sets the output val.

Parameters:
outputVal the new output val
const std::string BaseOneInputGate::toString (  )  const [inline]
Returns:
string representation

Reimplemented in OneInputGate.


Member Data Documentation

std::string BaseOneInputGate::inputName [protected]

The input name.

The input val.

std::string BaseOneInputGate::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