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

#include <ScaleFactor.hpp>

+ Collaboration diagram for torc::generic::ScaleFactor:

Public Member Functions

const Value::Number getEdifValue () const
 
void setEdifValue (const Value::Number &inSource)
 
const Value::Number getSiValue () const
 
void setSiValue (const Value::Number &inSource)
 
 ScaleFactor ()
 
 ScaleFactor (const ScaleFactor &inSource)
 
 ~ScaleFactor ()
 
ScaleFactoroperator= (const ScaleFactor &inSource)
 

Private Attributes

Value::Number mEdifValue
 
Value::Number mSiValue
 

Detailed Description

Represents the technology dependent scale factor. This is used by clients to perform calculations using the units involved.

Definition at line 32 of file ScaleFactor.hpp.

Constructor & Destructor Documentation

torc::generic::ScaleFactor::ScaleFactor ( )

Definition at line 47 of file ScaleFactor.cpp.

47 : mEdifValue(), mSiValue() {}
torc::generic::ScaleFactor::ScaleFactor ( const ScaleFactor inSource)

Definition at line 49 of file ScaleFactor.cpp.

49  : mEdifValue(inSource.mEdifValue),
50  mSiValue(inSource.mEdifValue) {}
torc::generic::ScaleFactor::~ScaleFactor ( )

Definition at line 52 of file ScaleFactor.cpp.

52 {}

Member Function Documentation

const Value::Number torc::generic::ScaleFactor::getEdifValue ( ) const
inline

Get the EDIF scale.

Returns
EDIF scale.

Definition at line 85 of file ScaleFactor.hpp.

85  {
86  return mEdifValue;
87 }

+ Here is the caller graph for this function:

const Value::Number torc::generic::ScaleFactor::getSiValue ( ) const
inline

Get the SI untis scale.

Returns
SI scale.

Definition at line 94 of file ScaleFactor.hpp.

94  {
95  return mSiValue;
96 }

+ Here is the caller graph for this function:

ScaleFactor & torc::generic::ScaleFactor::operator= ( const ScaleFactor inSource)

Definition at line 54 of file ScaleFactor.cpp.

54  {
55  if(this != &inSource) {
56  mEdifValue = inSource.mEdifValue;
57  mSiValue = inSource.mSiValue;
58  }
59  return *this;
60 }
void torc::generic::ScaleFactor::setEdifValue ( const Value::Number inSource)

Set the EDIF scale.

Parameters
[in]inSourceEDIF scale.

Definition at line 35 of file ScaleFactor.cpp.

35  {
36  mEdifValue = inSource;
37 }
void torc::generic::ScaleFactor::setSiValue ( const Value::Number inSource)

Set the SI scale.

Definition at line 43 of file ScaleFactor.cpp.

43  {
44  mSiValue = inSource;
45 }

Field Documentation

Value::Number torc::generic::ScaleFactor::mEdifValue
private

Definition at line 76 of file ScaleFactor.hpp.

Value::Number torc::generic::ScaleFactor::mSiValue
private

Definition at line 77 of file ScaleFactor.hpp.


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