OpenASIP
2.0
|
#include <HDBEntry.hh>
Public Member Functions | |
virtual | ~HDBEntry () |
bool | hasID () const |
void | setID (RowID id) |
RowID | id () const |
virtual bool | hasArchitecture () const =0 |
virtual bool | hasImplementation () const =0 |
bool | hasCostFunction () const |
CostFunctionPlugin & | costFunction () const |
void | setCostFunction (CostFunctionPlugin *costFunction) |
std::string | hdbFile () const |
void | setHDBFile (const std::string &file) |
Protected Member Functions | |
HDBEntry () | |
Private Attributes | |
bool | hasID_ |
Tells whether the entry has an ID set. More... | |
RowID | id_ |
ID of the entry in HDB. More... | |
CostFunctionPlugin * | costFunction_ |
Cost function of the entry. More... | |
std::string | hdbFile_ |
The HDB file that contains the entry. More... | |
An abstract base class for FUEntry and RFEntry.
Definition at line 46 of file HDBEntry.hh.
|
virtual |
The destructor.
Definition at line 49 of file HDBEntry.cc.
References costFunction_, and hasCostFunction().
|
protected |
The constructor.
Definition at line 41 of file HDBEntry.cc.
CostFunctionPlugin & HDB::HDBEntry::costFunction | ( | ) | const |
Returns the cost function of the entry.
NotAvailable | If the entry doesn't have a cost function. |
Definition at line 111 of file HDBEntry.cc.
References __func__, costFunction_, and hasCostFunction().
Referenced by CostDatabase::buildFunctionUnits(), CostDatabase::buildRegisterFiles(), CostEstimator::Estimator::fuCostFunctionPluginOfImplementation(), HDBToHtml::fuEntryToHtml(), CostEstimator::Estimator::rfCostFunctionPluginOfImplementation(), HDBToHtml::rfEntryToHtml(), and setCostFunction().
|
pure virtual |
Implemented in HDB::FUEntry, and HDB::RFEntry.
bool HDB::HDBEntry::hasCostFunction | ( | ) | const |
Tells whether the entry contains a cost function.
Definition at line 99 of file HDBEntry.cc.
References costFunction_.
Referenced by CostDatabase::buildFunctionUnits(), CostDatabase::buildRegisterFiles(), costFunction(), CostEstimator::Estimator::fuCostFunctionPluginOfImplementation(), HDBToHtml::fuEntryToHtml(), CostEstimator::Estimator::rfCostFunctionPluginOfImplementation(), HDBToHtml::rfEntryToHtml(), setCostFunction(), and ~HDBEntry().
bool HDB::HDBEntry::hasID | ( | ) | const |
Tells whether the entry has an ID.
Definition at line 62 of file HDBEntry.cc.
References hasID_.
Referenced by HDB::HDBManager::addFUImplementation(), and id().
|
pure virtual |
Implemented in HDB::FUEntry, and HDB::RFEntry.
std::string HDB::HDBEntry::hdbFile | ( | ) | const |
RowID HDB::HDBEntry::id | ( | ) | const |
Returns the ID of the entry.
Definition at line 85 of file HDBEntry.cc.
References __func__, hasID(), and id_.
Referenced by HDB::HDBManager::addFUImplementation(), SetRFArchitectureCmd::Do(), SetFUArchitectureCmd::Do(), AddRFImplementationCmd::Do(), HDBToHtml::fuEntryToHtml(), HDBToHtml::rfEntryToHtml(), and setID().
void HDB::HDBEntry::setCostFunction | ( | CostFunctionPlugin * | costFunction | ) |
Sets cost function for the entry.
Deletes the old cost function if one exists.
costFunction | The new cost function. |
Definition at line 127 of file HDBEntry.cc.
References costFunction(), costFunction_, and hasCostFunction().
Referenced by HDB::HDBManager::fuByEntryID(), and HDB::HDBManager::rfByEntryID().
void HDB::HDBEntry::setHDBFile | ( | const std::string & | file | ) |
Sets the HDB file that contains the entry.
file | The HDB file. |
Definition at line 152 of file HDBEntry.cc.
References hdbFile_.
Referenced by HDB::HDBManager::fuByEntryID(), and HDB::HDBManager::rfByEntryID().
void HDB::HDBEntry::setID | ( | RowID | id | ) |
Sets the ID for the entry.
id | The ID to set. |
Definition at line 73 of file HDBEntry.cc.
References hasID_, id(), and id_.
Referenced by HDB::HDBManager::fuByEntryID(), and HDB::HDBManager::rfByEntryID().
|
private |
Cost function of the entry.
Definition at line 73 of file HDBEntry.hh.
Referenced by costFunction(), hasCostFunction(), setCostFunction(), and ~HDBEntry().
|
private |
Tells whether the entry has an ID set.
Definition at line 69 of file HDBEntry.hh.
|
private |
The HDB file that contains the entry.
Definition at line 75 of file HDBEntry.hh.
Referenced by hdbFile(), and setHDBFile().
|
private |