Go to the documentation of this file.
32 #ifndef TTA_COST_DATABASE_REGISTRY_HH
33 #define TTA_COST_DATABASE_REGISTRY_HH
57 std::string
hdbPath(
unsigned int index);
63 std::map<const HDB::HDBManager*, CostDatabase*>
registry_;
std::map< const HDB::HDBManager *, CostDatabase * > registry_
All created CostDatabasess are stored in this map.
CostDatabase & costDatabase(const HDB::HDBManager &hdb)
std::string hdbPath(unsigned int index)
void addCostDatabase(CostDatabase *costDatabase, const HDB::HDBManager &hdb)
static CostDatabaseRegistry & instance()
bool hasCostDatabase(const HDB::HDBManager &hdb)
static CostDatabaseRegistry * instance_
Unique instance of the class.
CostDatabaseRegistry()
CostDatabase registry must be created with instance() method.
virtual ~CostDatabaseRegistry()