OpenASIP 2.2
Loading...
Searching...
No Matches
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?
 
std::string name_
 Name of the data.
 
bool hasValue_
 Is the value set?
 
DataObject value_
 Value data.
 
bool hasFUReference_
 Is the fu reference set?
 
RowID fuReference_
 FU reference.
 
bool hasRFReference_
 Is the RF reference set?
 
RowID rfReference_
 RF reference.
 
bool hasBusReference_
 Is the bus reference set?
 
RowID busReference_
 Bus reference.
 
bool hasSocketReference_
 Is the socket reference set?
 
RowID socketReference_
 Socket reference.
 
bool hasPluginID_
 Is the plugin ID set?
 
RowID pluginID_
 Plugin ID.
 

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}
bool hasSocketReference_
Is the socket reference set?
bool hasRFReference_
Is the RF reference set?
bool hasPluginID_
Is the plugin ID set?
bool hasName_
Is the data name set?
bool hasBusReference_
Is the bus reference set?
bool hasValue_
Is the value set?
bool hasFUReference_
Is the fu reference set?

◆ ~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}
#define __func__
RowID busReference_
Bus reference.

References __func__, busReference_, and hasBusReference_.

Referenced by HDB::HDBManager::addCostEstimationData(), HDBToHtml::costFunctionPluginToHtml(), HDB::HDBManager::createCostEstimatioDataIdsQuery(), HDB::HDBManager::modifyCostEstimationData(), CostEstimationDataDialog::TransferDataToWindow(), and CostFunctionPluginDialog::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}
RowID fuReference_
FU reference.

References __func__, fuReference_, and hasFUReference_.

Referenced by HDB::HDBManager::addCostEstimationData(), HDBToHtml::costFunctionPluginToHtml(), HDB::HDBManager::createCostEstimatioDataIdsQuery(), HDB::HDBManager::modifyCostEstimationData(), CostEstimationDataDialog::TransferDataToWindow(), and CostFunctionPluginDialog::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}
RowID pluginID_
Plugin ID.

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}
RowID rfReference_
RF reference.

References __func__, hasRFReference_, and rfReference_.

Referenced by HDB::HDBManager::addCostEstimationData(), HDBToHtml::costFunctionPluginToHtml(), HDB::HDBManager::createCostEstimatioDataIdsQuery(), HDB::HDBManager::modifyCostEstimationData(), CostEstimationDataDialog::TransferDataToWindow(), and CostFunctionPluginDialog::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}
RowID socketReference_
Socket reference.

References __func__, hasSocketReference_, and socketReference_.

Referenced by HDB::HDBManager::addCostEstimationData(), HDBToHtml::costFunctionPluginToHtml(), HDB::HDBManager::createCostEstimatioDataIdsQuery(), HDB::HDBManager::modifyCostEstimationData(), CostEstimationDataDialog::TransferDataToWindow(), and CostFunctionPluginDialog::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: