Go to the documentation of this file.
146 "CostDatabaseRegistry::costDatavase(unsigned int)");
148 std::map<const HDB::HDBManager*, CostDatabase*>::const_iterator iter =
150 for (
unsigned int counter = 0; iter !=
registry_.end(); iter++) {
151 if (counter == index) {
157 return *(*iter).second;
170 "CostDatabaseRegistry::hdbPath(unsigned int)");
172 std::map<const HDB::HDBManager*, CostDatabase*>::const_iterator iter =
175 for (
unsigned c = 0; iter !=
registry_.end(); iter++) {
176 if (c == index)
return (*iter).first->fileName();
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()
#define assert(condition)
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()
static CostDatabase & instance(const HDB::HDBManager &hdb)