Formatting
This commit is contained in:
11
rs.cc
11
rs.cc
@@ -96,6 +96,7 @@ bool RctSys::hasProcess(Process processID)
|
||||
if (processID >= processes_ids.size()) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -104,6 +105,7 @@ Process RctSys::getProcessID(std::string processName)
|
||||
if (!hasProcess(processName)) {
|
||||
FERROR("No such process: " << processName);
|
||||
}
|
||||
|
||||
return processes_names[processName];
|
||||
}
|
||||
|
||||
@@ -122,6 +124,7 @@ void RctSys::pushReactant(std::string entityName)
|
||||
if (!hasEntity(entityName)) {
|
||||
addEntity(entityName);
|
||||
}
|
||||
|
||||
tmpReactants.insert(getEntityID(entityName));
|
||||
}
|
||||
void RctSys::pushInhibitor(std::string entityName)
|
||||
@@ -129,6 +132,7 @@ void RctSys::pushInhibitor(std::string entityName)
|
||||
if (!hasEntity(entityName)) {
|
||||
addEntity(entityName);
|
||||
}
|
||||
|
||||
tmpInhibitors.insert(getEntityID(entityName));
|
||||
}
|
||||
void RctSys::pushProduct(std::string entityName)
|
||||
@@ -136,6 +140,7 @@ void RctSys::pushProduct(std::string entityName)
|
||||
if (!hasEntity(entityName)) {
|
||||
addEntity(entityName);
|
||||
}
|
||||
|
||||
tmpProducts.insert(getEntityID(entityName));
|
||||
}
|
||||
|
||||
@@ -179,11 +184,11 @@ std::string RctSys::entitiesToStr(const Entities &entities)
|
||||
std::string RctSys::procEntitiesToStr(const EntitiesForProc &procEntities)
|
||||
{
|
||||
std::string s = " ";
|
||||
|
||||
for (auto const &p : procEntities)
|
||||
{
|
||||
|
||||
for (auto const &p : procEntities) {
|
||||
s += getProcessName(p.first) + "={" + entitiesToStr(p.second) + "} ";
|
||||
}
|
||||
|
||||
return s;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user