OpenASIP
2.0
|
#include <NullUnitImplementationLocation.hh>
Public Member Functions | |
virtual std::string | hdbFile () const |
virtual int | id () const |
virtual std::string | unitName () const |
virtual void | setParent (MachineImplementation &parent) |
Public Member Functions inherited from IDF::UnitImplementationLocation | |
UnitImplementationLocation (const std::string &hdbFile, int id, const std::string &unitName) | |
UnitImplementationLocation (const ObjectState *state) | |
virtual | ~UnitImplementationLocation () |
std::string | hdbFileOriginal () const |
virtual void | setID (int id) |
virtual void | setHDBFile (std::string file) |
void | loadState (const ObjectState *state) |
ObjectState * | saveState () const |
Public Member Functions inherited from Serializable | |
virtual | ~Serializable () |
Static Public Member Functions | |
static NullUnitImplementationLocation & | instance () |
Protected Member Functions | |
NullUnitImplementationLocation () | |
virtual | ~NullUnitImplementationLocation () |
Static Private Attributes | |
static NullUnitImplementationLocation | instance_ |
Additional Inherited Members | |
Static Public Attributes inherited from IDF::UnitImplementationLocation | |
static const std::string | OSNAME_UNIT_IMPLEMENTATION |
ObjectState name for unit implementation. More... | |
static const std::string | OSKEY_HDB_FILE = "hdb_file" |
ObjectState attribute key for the name of the HDB file. More... | |
static const std::string | OSKEY_ID = "id" |
ObjectState attribute key for the entry ID. More... | |
static const std::string | OSKEY_UNIT_NAME = "unit_name" |
Objectstate attribute key for the name of the unit. More... | |
Indicates what implementation of a unit is used.
A null class that indicates of unset location of implementation or no implementation available.
Definition at line 47 of file NullUnitImplementationLocation.hh.
|
protected |
The constructor.
Definition at line 47 of file NullUnitImplementationLocation.cc.
|
protectedvirtual |
|
virtual |
Aborts the program with error message.
Reimplemented from IDF::UnitImplementationLocation.
Definition at line 76 of file NullUnitImplementationLocation.cc.
References abortWithError.
|
virtual |
Aborts the program with error message.
Reimplemented from IDF::UnitImplementationLocation.
Definition at line 87 of file NullUnitImplementationLocation.cc.
References abortWithError.
|
static |
Returns the only instance of NullUnitImplementationLocation.
Definition at line 65 of file NullUnitImplementationLocation.cc.
References instance_.
Referenced by CostEstimator::Estimator::longestPath(), CostEstimator::Estimator::totalAreaOfFunctionUnits(), CostEstimator::Estimator::totalAreaOfRegisterFiles(), CostEstimator::Estimator::totalEnergyOfFunctionUnits(), and CostEstimator::Estimator::totalEnergyOfRegisterFiles().
|
virtual |
Aborts the program with error message.
Reimplemented from IDF::UnitImplementationLocation.
Definition at line 111 of file NullUnitImplementationLocation.cc.
References abortWithError.
|
virtual |
Aborts the program with error message.
Reimplemented from IDF::UnitImplementationLocation.
Definition at line 99 of file NullUnitImplementationLocation.cc.
References abortWithError.
|
staticprivate |
Definition at line 62 of file NullUnitImplementationLocation.hh.
Referenced by instance().