BaseLogicGate Class Reference

#include <BaseLogicGate.h>

Inheritance diagram for BaseLogicGate:
LogicGate OneInputGate TwoInputGate Input Output

List of all members.

Public Member Functions

 BaseLogicGate (const SimTime &delay)
 BaseLogicGate (const BaseLogicGate &that)
const SimTimegetDelay () const
 Gets the delay.
void setDelay (const SimTime &delay)
 Sets the delay.
virtual LogicVal evalOutput () const =0
 Evaluate output based on the current state of the input.
virtual bool hasInputName (const std::string &net) const =0
virtual bool hasOutputName (const std::string &net) const =0
virtual const std::string & getOutputName () const =0
 Gets the output name.

Private Attributes

SimTime delay
 The delay.

Static Private Attributes

static const SimTime MIN_DELAY = 1l

Constructor & Destructor Documentation

BaseLogicGate::BaseLogicGate ( const SimTime delay  )  [inline]
BaseLogicGate::BaseLogicGate ( const BaseLogicGate that  )  [inline]

Member Function Documentation

virtual LogicVal BaseLogicGate::evalOutput (  )  const [pure virtual]

Evaluate output based on the current state of the input.

Returns:
the

Implemented in Input, OneInputGate, Output, and TwoInputGate.

const SimTime& BaseLogicGate::getDelay (  )  const [inline]

Gets the delay.

Returns:
the delay
virtual const std::string& BaseLogicGate::getOutputName (  )  const [pure virtual]

Gets the output name.

Returns:
the output name

Implemented in OneInputGate, and TwoInputGate.

virtual bool BaseLogicGate::hasInputName ( const std::string &  net  )  const [pure virtual]
Parameters:
net,: name of a wire
Returns:
true if has an input with the name equal to 'net'

Implemented in OneInputGate, and TwoInputGate.

virtual bool BaseLogicGate::hasOutputName ( const std::string &  net  )  const [pure virtual]
Parameters:
net,: name of a wire
Returns:
true if has an output with the name equal to 'net'

Implemented in OneInputGate, and TwoInputGate.

void BaseLogicGate::setDelay ( const SimTime delay  )  [inline]

Sets the delay.

Parameters:
delay the new delay

Member Data Documentation

The delay.

const SimTime BaseLogicGate::MIN_DELAY = 1l [static, private]

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