torc-master
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
torc::generic::PortDelay Class Reference

Represents the portDelay attribute on Port or PortReference. More...

#include <PortDelay.hpp>

+ Collaboration diagram for torc::generic::PortDelay:

Public Types

enum  Type { eTypeDelay, eTypeLoadDelay }
 

Public Member Functions

const Derivation getDerivation () const
 
void setDerivation (const Derivation &inSource)
 
const PortDelay::Type getType () const
 
void setType (Type inSource)
 
const Value::MiNoMax getDelay () const
 
void setDelay (const Value::MiNoMax &inSource)
 
const Value::MiNoMax getAcLoad () const
 
void setAcLoad (const Value::MiNoMax &inSource)
 
const LogicElementSharedPtr getTransition () const
 
void setTransition (const LogicElementSharedPtr &inSource)
 
 PortDelay ()
 
 ~PortDelay () throw ()
 
 PortDelay (const PortDelay &source)
 
PortDelayoperator= (const PortDelay &source)
 

Private Attributes

Derivation mDerivation
 
Type mType
 
Value::MiNoMax mDelay
 
Value::MiNoMax mAcLoad
 
LogicElementSharedPtr mTransition
 

Detailed Description

Represents the portDelay attribute on Port or PortReference.

The Portdelay class stores the delay inSource for a port. Currently it supports storing only static delay values. Load dependent delay inSource support (using the loadDelay construct) is not present.

Definition at line 36 of file PortDelay.hpp.

Member Enumeration Documentation

Enumerator
eTypeDelay 
eTypeLoadDelay 

Definition at line 43 of file PortDelay.hpp.

Constructor & Destructor Documentation

torc::generic::PortDelay::PortDelay ( )
torc::generic::PortDelay::~PortDelay ( )
throw (
)

Definition at line 53 of file PortDelay.cpp.

53 {}
torc::generic::PortDelay::PortDelay ( const PortDelay source)

Definition at line 55 of file PortDelay.cpp.

55  : mDerivation(source.mDerivation),
56  mType(source.mType), mDelay(source.mDelay), mAcLoad(source.mAcLoad),
57  mTransition(source.mTransition) {}
LogicElementSharedPtr mTransition
Definition: PortDelay.hpp:137
Value::MiNoMax mDelay
Definition: PortDelay.hpp:135
Value::MiNoMax mAcLoad
Definition: PortDelay.hpp:136

Member Function Documentation

const Value::MiNoMax torc::generic::PortDelay::getAcLoad ( ) const
inline

Get the AcLoad value. This is valid when value type is loadDelay

Returns
MiNoMax value

Definition at line 152 of file PortDelay.hpp.

152  {
153  return mAcLoad;
154 }
Value::MiNoMax mAcLoad
Definition: PortDelay.hpp:136

+ Here is the caller graph for this function:

const Value::MiNoMax torc::generic::PortDelay::getDelay ( ) const
inline

Get delay

Returns
MiNoMax value

Definition at line 148 of file PortDelay.hpp.

148  {
149  return mDelay;
150 }
Value::MiNoMax mDelay
Definition: PortDelay.hpp:135

+ Here is the caller graph for this function:

const Derivation torc::generic::PortDelay::getDerivation ( ) const
inline

Get derivation

Returns
Derivation value

Definition at line 140 of file PortDelay.hpp.

140  {
141  return mDerivation;
142 }

+ Here is the caller graph for this function:

const LogicElementSharedPtr torc::generic::PortDelay::getTransition ( ) const
inline

Get the pointer to logic state value(transition/becomes).

Returns
Pointer to logic state value(transition/becomes).

Definition at line 161 of file PortDelay.hpp.

161  {
162  return mTransition;
163 }
LogicElementSharedPtr mTransition
Definition: PortDelay.hpp:137

+ Here is the caller graph for this function:

const PortDelay::Type torc::generic::PortDelay::getType ( void  ) const
inline

Get whether value is delay or loadDelay

Returns
Type

Definition at line 144 of file PortDelay.hpp.

144  {
145  return mType;
146 }

+ Here is the caller graph for this function:

PortDelay & torc::generic::PortDelay::operator= ( const PortDelay source)

Definition at line 59 of file PortDelay.cpp.

59  {
60  if(this != &source) {
61  mDerivation = source.mDerivation;
62  mType = source.mType;
63  mDelay = source.mDelay;
64  mAcLoad = source.mAcLoad;
65  mTransition = source.mTransition;
66  }
67  return *this;
68 }
LogicElementSharedPtr mTransition
Definition: PortDelay.hpp:137
Value::MiNoMax mDelay
Definition: PortDelay.hpp:135
Value::MiNoMax mAcLoad
Definition: PortDelay.hpp:136
void torc::generic::PortDelay::setAcLoad ( const Value::MiNoMax inSource)

Set AC Load

Parameters
[in]inSourceLoad value

Definition at line 42 of file PortDelay.cpp.

42  {
43  mAcLoad = inSource;
44 }
Value::MiNoMax mAcLoad
Definition: PortDelay.hpp:136
void torc::generic::PortDelay::setDelay ( const Value::MiNoMax inSource)

Set delay

Parameters
[in]inSourceDelay value.

Definition at line 38 of file PortDelay.cpp.

38  {
39  mDelay = inSource;
40 }
Value::MiNoMax mDelay
Definition: PortDelay.hpp:135
void torc::generic::PortDelay::setDerivation ( const Derivation inSource)

Set derivation

Parameters
[in]inSourceDerivation inSource

Definition at line 30 of file PortDelay.cpp.

30  {
31  mDerivation = inSource;
32 }
void torc::generic::PortDelay::setTransition ( const LogicElementSharedPtr inSource)

Set the pointer to logic state value(transition/becomes).

Parameters
[in]inSourcePointer to logic state value(transition/becomes).

Definition at line 46 of file PortDelay.cpp.

46  {
47  mTransition = inSource;
48 }
LogicElementSharedPtr mTransition
Definition: PortDelay.hpp:137
void torc::generic::PortDelay::setType ( Type  inSource)

Set whether value is delay or loadDelay

Parameters
[in]inSourceType of data

Definition at line 34 of file PortDelay.cpp.

34  {
35  mType = inSource;
36 }

Field Documentation

Value::MiNoMax torc::generic::PortDelay::mAcLoad
private

Definition at line 136 of file PortDelay.hpp.

Value::MiNoMax torc::generic::PortDelay::mDelay
private

Definition at line 135 of file PortDelay.hpp.

Derivation torc::generic::PortDelay::mDerivation
private

Definition at line 133 of file PortDelay.hpp.

LogicElementSharedPtr torc::generic::PortDelay::mTransition
private

Definition at line 137 of file PortDelay.hpp.

Type torc::generic::PortDelay::mType
private

Definition at line 134 of file PortDelay.hpp.


The documentation for this class was generated from the following files: