OpenASIP  2.0
Public Member Functions | Private Attributes | List of all members
CostEstimationData Class Reference

#include <CostEstimationData.hh>

Collaboration diagram for CostEstimationData:
Collaboration graph

Public Member Functions

 CostEstimationData ()
 
virtual ~CostEstimationData ()
 
void setName (const std::string &name)
 
bool hasName () const
 
std::string name () const
 
void setValue (const DataObject &value)
 
bool hasValue () const
 
DataObject value () const
 
void setFUReference (RowID fuEntryID)
 
bool hasFUReference () const
 
RowID fuReference () const
 
void setRFReference (RowID rfEntryID)
 
bool hasRFReference () const
 
RowID rfReference () const
 
void setBusReference (RowID busEntryID)
 
bool hasBusReference () const
 
RowID busReference () const
 
void setSocketReference (RowID socketEntryID)
 
bool hasSocketReference () const
 
RowID socketReference () const
 
void setPluginID (RowID pluginID)
 
bool hasPluginID () const
 
RowID pluginID () const
 

Private Attributes

bool hasName_
 Is the data name set? More...
 
std::string name_
 Name of the data. More...
 
bool hasValue_
 Is the value set? More...
 
DataObject value_
 Value data. More...
 
bool hasFUReference_
 Is the fu reference set? More...
 
RowID fuReference_
 FU reference. More...
 
bool hasRFReference_
 Is the RF reference set? More...
 
RowID rfReference_
 RF reference. More...
 
bool hasBusReference_
 Is the bus reference set? More...
 
RowID busReference_
 Bus reference. More...
 
bool hasSocketReference_
 Is the socket reference set? More...
 
RowID socketReference_
 Socket reference. More...
 
bool hasPluginID_
 Is the plugin ID set? More...
 
RowID pluginID_
 Plugin ID. More...
 

Detailed Description

Class that represents one row in the cost estimation data table.

Definition at line 42 of file CostEstimationData.hh.

Constructor & Destructor Documentation

◆ CostEstimationData()

CostEstimationData::CostEstimationData ( )

The Constructor.

Definition at line 38 of file CostEstimationData.cc.

38  :
39  hasName_(false), hasValue_(false),
40  hasFUReference_(false), hasRFReference_(false),
42  hasPluginID_(false) {
43 
44 }

◆ ~CostEstimationData()

CostEstimationData::~CostEstimationData ( )
virtual

Destructor.

Definition at line 49 of file CostEstimationData.cc.

49  {
50 }

Member Function Documentation

◆ busReference()

RowID CostEstimationData::busReference ( ) const

Returns the bus entry reference.

Returns
Register file entry reference.

Definition at line 133 of file CostEstimationData.cc.

133  {
134  if (!hasBusReference_) {
135  throw NotAvailable(
136  __FILE__, __LINE__, __func__, "Attribute value not set.");
137  }
138 
139  return busReference_;
140 }

References __func__, busReference_, and hasBusReference_.

Referenced by HDB::HDBManager::addCostEstimationData(), HDBToHtml::costFunctionPluginToHtml(), HDB::HDBManager::createCostEstimatioDataIdsQuery(), HDB::HDBManager::modifyCostEstimationData(), CostFunctionPluginDialog::TransferDataToWindow(), and CostEstimationDataDialog::TransferDataToWindow().

◆ fuReference()

RowID CostEstimationData::fuReference ( ) const

Returns the FU entry reference.

Returns
Function unit entry reference.

Definition at line 103 of file CostEstimationData.cc.

103  {
104  if (!hasFUReference_) {
105  throw NotAvailable(
106  __FILE__, __LINE__, __func__, "Attribute value not set.");
107  }
108 
109  return fuReference_;
110 }

References __func__, fuReference_, and hasFUReference_.

Referenced by HDB::HDBManager::addCostEstimationData(), HDBToHtml::costFunctionPluginToHtml(), HDB::HDBManager::createCostEstimatioDataIdsQuery(), HDB::HDBManager::modifyCostEstimationData(), CostFunctionPluginDialog::TransferDataToWindow(), and CostEstimationDataDialog::TransferDataToWindow().

◆ hasBusReference()

bool CostEstimationData::hasBusReference ( ) const

◆ hasFUReference()

bool CostEstimationData::hasFUReference ( ) const

◆ hasName()

bool CostEstimationData::hasName ( ) const

◆ hasPluginID()

bool CostEstimationData::hasPluginID ( ) const

◆ hasRFReference()

bool CostEstimationData::hasRFReference ( ) const

◆ hasSocketReference()

bool CostEstimationData::hasSocketReference ( ) const

◆ hasValue()

bool CostEstimationData::hasValue ( ) const

◆ name()

std::string CostEstimationData::name ( ) const

◆ pluginID()

RowID CostEstimationData::pluginID ( ) const

Returns the cost function plugin ID.

Returns
Cost function plugin ID.

Definition at line 88 of file CostEstimationData.cc.

88  {
89  if (!hasPluginID_) {
90  throw NotAvailable(
91  __FILE__, __LINE__, __func__, "Attribute value not set.");
92  }
93 
94  return pluginID_;
95 }

References __func__, hasPluginID_, and pluginID_.

Referenced by HDB::HDBManager::addCostEstimationData(), HDBToHtml::busEntryToHtml(), HDB::HDBManager::createCostEstimatioDataIdsQuery(), HDBToHtml::fuEntryToHtml(), HDBToHtml::fuImplToHtml(), HDB::HDBManager::modifyCostEstimationData(), HDBToHtml::rfEntryToHtml(), HDBToHtml::rfImplToHtml(), and HDBToHtml::socketEntryToHtml().

◆ rfReference()

RowID CostEstimationData::rfReference ( ) const

Returns the RF entry reference.

Returns
Register file entry reference.

Definition at line 118 of file CostEstimationData.cc.

118  {
119  if (!hasRFReference_) {
120  throw NotAvailable(
121  __FILE__, __LINE__, __func__, "Attribute value not set.");
122  }
123 
124  return rfReference_;
125 }

References __func__, hasRFReference_, and rfReference_.

Referenced by HDB::HDBManager::addCostEstimationData(), HDBToHtml::costFunctionPluginToHtml(), HDB::HDBManager::createCostEstimatioDataIdsQuery(), HDB::HDBManager::modifyCostEstimationData(), CostFunctionPluginDialog::TransferDataToWindow(), and CostEstimationDataDialog::TransferDataToWindow().

◆ setBusReference()

void CostEstimationData::setBusReference ( RowID  busEntryID)

◆ setFUReference()

void CostEstimationData::setFUReference ( RowID  fuEntryID)

◆ setName()

void CostEstimationData::setName ( const std::string &  name)

◆ setPluginID()

void CostEstimationData::setPluginID ( RowID  pluginID)

◆ setRFReference()

void CostEstimationData::setRFReference ( RowID  rfEntryID)

◆ setSocketReference()

void CostEstimationData::setSocketReference ( RowID  socketEntryID)

◆ setValue()

void CostEstimationData::setValue ( const DataObject value)

◆ socketReference()

RowID CostEstimationData::socketReference ( ) const

Returns the socket entry reference.

Returns
Register file entry reference.

Definition at line 148 of file CostEstimationData.cc.

148  {
149  if (!hasSocketReference_) {
150  throw NotAvailable(
151  __FILE__, __LINE__, __func__, "Attribute value not set.");
152  }
153 
154  return socketReference_;
155 }

References __func__, hasSocketReference_, and socketReference_.

Referenced by HDB::HDBManager::addCostEstimationData(), HDBToHtml::costFunctionPluginToHtml(), HDB::HDBManager::createCostEstimatioDataIdsQuery(), HDB::HDBManager::modifyCostEstimationData(), CostFunctionPluginDialog::TransferDataToWindow(), and CostEstimationDataDialog::TransferDataToWindow().

◆ value()

DataObject CostEstimationData::value ( ) const

Member Data Documentation

◆ busReference_

RowID CostEstimationData::busReference_
private

Bus reference.

Definition at line 99 of file CostEstimationData.hh.

Referenced by busReference().

◆ fuReference_

RowID CostEstimationData::fuReference_
private

FU reference.

Definition at line 89 of file CostEstimationData.hh.

Referenced by fuReference().

◆ hasBusReference_

bool CostEstimationData::hasBusReference_
private

Is the bus reference set?

Definition at line 97 of file CostEstimationData.hh.

Referenced by busReference().

◆ hasFUReference_

bool CostEstimationData::hasFUReference_
private

Is the fu reference set?

Definition at line 87 of file CostEstimationData.hh.

Referenced by fuReference().

◆ hasName_

bool CostEstimationData::hasName_
private

Is the data name set?

Definition at line 77 of file CostEstimationData.hh.

Referenced by name().

◆ hasPluginID_

bool CostEstimationData::hasPluginID_
private

Is the plugin ID set?

Definition at line 107 of file CostEstimationData.hh.

Referenced by pluginID().

◆ hasRFReference_

bool CostEstimationData::hasRFReference_
private

Is the RF reference set?

Definition at line 92 of file CostEstimationData.hh.

Referenced by rfReference().

◆ hasSocketReference_

bool CostEstimationData::hasSocketReference_
private

Is the socket reference set?

Definition at line 102 of file CostEstimationData.hh.

Referenced by socketReference().

◆ hasValue_

bool CostEstimationData::hasValue_
private

Is the value set?

Definition at line 82 of file CostEstimationData.hh.

Referenced by value().

◆ name_

std::string CostEstimationData::name_
private

Name of the data.

Definition at line 79 of file CostEstimationData.hh.

Referenced by name().

◆ pluginID_

RowID CostEstimationData::pluginID_
private

Plugin ID.

Definition at line 109 of file CostEstimationData.hh.

Referenced by pluginID().

◆ rfReference_

RowID CostEstimationData::rfReference_
private

RF reference.

Definition at line 94 of file CostEstimationData.hh.

Referenced by rfReference().

◆ socketReference_

RowID CostEstimationData::socketReference_
private

Socket reference.

Definition at line 104 of file CostEstimationData.hh.

Referenced by socketReference().

◆ value_

DataObject CostEstimationData::value_
private

Value data.

Definition at line 84 of file CostEstimationData.hh.

Referenced by value().


The documentation for this class was generated from the following files:
CostEstimationData::hasValue_
bool hasValue_
Is the value set?
Definition: CostEstimationData.hh:82
CostEstimationData::hasName_
bool hasName_
Is the data name set?
Definition: CostEstimationData.hh:77
CostEstimationData::socketReference_
RowID socketReference_
Socket reference.
Definition: CostEstimationData.hh:104
CostEstimationData::hasFUReference_
bool hasFUReference_
Is the fu reference set?
Definition: CostEstimationData.hh:87
CostEstimationData::rfReference_
RowID rfReference_
RF reference.
Definition: CostEstimationData.hh:94
NotAvailable
Definition: Exception.hh:728
CostEstimationData::busReference_
RowID busReference_
Bus reference.
Definition: CostEstimationData.hh:99
CostEstimationData::hasRFReference_
bool hasRFReference_
Is the RF reference set?
Definition: CostEstimationData.hh:92
CostEstimationData::name_
std::string name_
Name of the data.
Definition: CostEstimationData.hh:79
CostEstimationData::hasBusReference_
bool hasBusReference_
Is the bus reference set?
Definition: CostEstimationData.hh:97
__func__
#define __func__
Definition: Application.hh:67
CostEstimationData::value_
DataObject value_
Value data.
Definition: CostEstimationData.hh:84
CostEstimationData::hasSocketReference_
bool hasSocketReference_
Is the socket reference set?
Definition: CostEstimationData.hh:102
CostEstimationData::hasPluginID_
bool hasPluginID_
Is the plugin ID set?
Definition: CostEstimationData.hh:107
CostEstimationData::pluginID_
RowID pluginID_
Plugin ID.
Definition: CostEstimationData.hh:109
CostEstimationData::fuReference_
RowID fuReference_
FU reference.
Definition: CostEstimationData.hh:89