OpenASIP
2.0
|
#include <CostFunctionPlugin.hh>
Public Types | |
enum | CostFunctionPluginType { COST_FU, COST_RF, COST_DECOMP, COST_ICDEC } |
all supported cost function plugin types More... | |
Public Member Functions | |
CostFunctionPlugin (int id, const std::string &description, const std::string &name, const std::string &pluginFilePath, CostFunctionPluginType type) | |
virtual | ~CostFunctionPlugin () |
int | id () const |
std::string | description () const |
std::string | name () const |
std::string | pluginFilePath () const |
CostFunctionPluginType | type () const |
Private Attributes | |
int | id_ |
id of the plugin in HDB More... | |
std::string | description_ |
description of the plugin HDB More... | |
std::string | name_ |
(the class) name of the plugin More... | |
std::string | pluginFilePath_ |
the path in the file system of the plugin More... | |
CostFunctionPluginType | type_ |
the type of the plugin More... | |
Class that contains data stored in HDB of a cost function plugin.
Definition at line 43 of file CostFunctionPlugin.hh.
all supported cost function plugin types
Enumerator | |
---|---|
COST_FU | function unit cost estimator |
COST_RF | register file cost estimator |
COST_DECOMP | decompressor cost estimator |
COST_ICDEC | interconnection network & decoder cost estimator |
Definition at line 46 of file CostFunctionPlugin.hh.
HDB::CostFunctionPlugin::CostFunctionPlugin | ( | int | id, |
const std::string & | description, | ||
const std::string & | name, | ||
const std::string & | pluginFilePath, | ||
CostFunctionPluginType | type | ||
) |
Constructor.
pluginFilePath | Path of the plugin. |
Definition at line 42 of file CostFunctionPlugin.cc.
|
virtual |
std::string HDB::CostFunctionPlugin::description | ( | ) | const |
Returns the description of the plugin.
Definition at line 74 of file CostFunctionPlugin.cc.
References description_.
Referenced by HDB::HDBManager::addCostFunctionPlugin(), CostFunctionPluginDialog::CostFunctionPluginDialog(), HDBToHtml::costFunctionPluginToHtml(), and HDB::HDBManager::modifyCostFunctionPlugin().
int HDB::CostFunctionPlugin::id | ( | ) | const |
Returns the id of the plugin.
Definition at line 64 of file CostFunctionPlugin.cc.
References id_.
Referenced by CostDatabase::buildFunctionUnits(), CostDatabase::buildRegisterFiles(), HDBToHtml::fuEntryToHtml(), and HDBToHtml::rfEntryToHtml().
std::string HDB::CostFunctionPlugin::name | ( | ) | const |
Returns the (class) name of the plugin.
Definition at line 84 of file CostFunctionPlugin.cc.
References name_.
Referenced by HDB::HDBManager::addCostFunctionPlugin(), CostDatabase::buildBuses(), CostDatabase::buildFunctionUnits(), CostDatabase::buildRegisterFiles(), CostDatabase::buildSockets(), CostFunctionPluginDialog::CostFunctionPluginDialog(), HDBToHtml::costFunctionPluginToHtml(), SetCostFunctionPluginCmd::Do(), CostEstimator::Estimator::fuCostFunctionPluginOfImplementation(), HDBToHtml::fuEntryToHtml(), HDB::HDBManager::modifyCostFunctionPlugin(), CostEstimator::Estimator::rfCostFunctionPluginOfImplementation(), HDBToHtml::rfEntryToHtml(), and HDBBrowserWindow::update().
std::string HDB::CostFunctionPlugin::pluginFilePath | ( | ) | const |
Returns the path of the plugin file.
Definition at line 94 of file CostFunctionPlugin.cc.
References pluginFilePath_.
Referenced by HDB::HDBManager::addCostFunctionPlugin(), CostFunctionPluginDialog::CostFunctionPluginDialog(), HDBToHtml::costFunctionPluginToHtml(), CostEstimator::Estimator::fuCostFunctionPluginOfImplementation(), HDB::HDBManager::modifyCostFunctionPlugin(), and CostEstimator::Estimator::rfCostFunctionPluginOfImplementation().
CostFunctionPlugin::CostFunctionPluginType HDB::CostFunctionPlugin::type | ( | ) | const |
Returns the type of the plugin.
Definition at line 104 of file CostFunctionPlugin.cc.
References type_.
Referenced by HDB::HDBManager::addCostFunctionPlugin(), CostFunctionPluginDialog::CostFunctionPluginDialog(), HDBToHtml::costFunctionPluginToHtml(), and HDB::HDBManager::modifyCostFunctionPlugin().
|
private |
description of the plugin HDB
Definition at line 71 of file CostFunctionPlugin.hh.
Referenced by description().
|
private |
|
private |
(the class) name of the plugin
Definition at line 73 of file CostFunctionPlugin.hh.
Referenced by name().
|
private |
the path in the file system of the plugin
Definition at line 75 of file CostFunctionPlugin.hh.
Referenced by pluginFilePath().
|
private |