Lines Matching defs:const

48     const Model* Model::SubModel::getModel() const
53 double Model::SubModel::getNumModels() const
58 Model::SubModel* Model::SubModel::clone() const
63 Model::SubModel::SubModel(const SubModel& sub_model_)
69 const char Model::TYPE_SEPARATOR[] = ">>";
70 const char Model::HIERARCHY_SEPARATOR[] = "->";
71 const char Model::SUBFIELD_SEPARATOR[] = ":";
72 const char Model::DETAIL_SEPARATOR[] = "@";
74 Model::Model(const String& instance_name_, const TechModel* tech_model_)
120 void Model::setInstanceName(const String& instance_name_)
126 const String& Model::getInstanceName() const
137 bool Model::getIsTopModel() const
145 void Model::addParameterName(const String& parameter_name_)
154 void Model::addParameterName(const String& parameter_name_, const String& parameter_default_)
163 const vector<String>* Model::getParameterNames() const
168 void Model::addPropertyName(const String& property_name_)
176 void Model::addPropertyName(const String& property_name_, const String& property_default_)
185 const vector<String>* Model::getPropertyNames() const
190 void Model::checkParameters() const
196 const String& parameter_name = m_parameter_names_->at(i);
206 void Model::checkProperties() const
212 const String& property_name = m_property_names_->at(i);
226 const ParameterMap* Model::getParameters() const
231 const String Model::getParameter(const String& parameter_name_) const
236 void Model::setParameter(const String& parameter_name_, const String& parameter_value_)
247 const PropertyMap* Model::getProperties() const
252 const String Model::getProperty(const String& property_name_) const
257 void Model::setProperty(const String& property_name_, const String& property_value_)
271 const PropertyMap* Model::getGenProperties() const
279 const String& sub_instance_name = sub_instance_->getInstanceName();
284 const String& error_msg = "[Error] " + m_instance_name_ +
298 Model* Model::getSubInstance(const String& sub_instance_name_)
303 const String& error_msg = "[Error] " + m_instance_name_ +
311 const Model* Model::getSubInstance(const String& sub_instance_name_) const
316 const String& error_msg = "[Error] " + m_instance_name_ +
324 bool Model::hasSubInstance(const String& sub_instance_name_) const
331 const String& area_name = area_->getName();
336 const String& error_msg = "Internal error: area (" + area_name +
346 Result* Model::getAreaResult(const String& area_name_)
351 const Result* Model::getAreaResult(const String& area_name_) const
356 bool Model::hasAreaResult(const String& area_name_) const
363 const String& ndd_power_name = ndd_power_->getName();
368 const String& error_msg = "Internal error: ndd_power (" + ndd_power_name +
378 Result* Model::getNddPowerResult(const String& ndd_power_name_)
383 const Result* Model::getNddPowerResult(const String& ndd_power_name_) const
388 bool Model::hasNddPowerResult(const String& ndd_power_name_) const
395 const String& event_name = event_->getName();
400 const String& error_msg = "Internal error: event (" + event_name +
410 Result* Model::getEventResult(const String& event_name_)
415 const Result* Model::getEventResult(const String& event_name_) const
420 bool Model::hasEventResult(const String& event_name_) const
425 const TechModel* Model::getTechModel() const
430 const void* Model::parseQuery(const String& query_type_, const String& query_hier_, const String& query_sub_field_)
456 const String& temp_sub_instance_name = hier_split[1];
465 const void* Model::processQuery(const String& query_type_, const String& query_sub_field_)
493 const String& error_msg = "[Error] " + m_instance_name_ + " -> Unknown query type (" + query_type_ + ")";
499 const Result* Model::queryArea(const String& area_name_) const
506 const Result* Model::queryNddPower(const String& ndd_power_name_)
515 const Result* Model::queryEventEnergyCost(const String& event_name_)
575 void Model::use(const String& event_name_)
613 void Model::useModel(const String& /* event_name_ */)
619 void Model::printHierarchy(const String& query_type_, const String& query_sub_field_, const String& prepend_str_, int detail_level_, ostream& ost_) const
629 //const Model* sub_model = (it->second)->getModel();
637 const Map<Result*>* result_map;
653 const String& error_msg = "[Error] " + m_instance_name_ + " -> Unknown query type (" + query_type_ + ")";
662 const Result* result = it->second;
669 const Result* result = result_map->get(query_sub_field_);
677 void Model::printInstHierarchy(const String& prepend_str_, int detail_level_, ostream& ost_) const
683 const Model* sub_model = it->second->getModel();
693 Model* Model::clone() const
698 Model::Model(const Model& model_)