sim: move iterating over SimObjects into Python.
This commit is contained in:
@@ -78,10 +78,6 @@ Tick curTick;
|
||||
void serializeAll(const std::string &cpt_dir);
|
||||
void unserializeAll(const std::string &cpt_dir);
|
||||
|
||||
void initAll();
|
||||
void regAllStats();
|
||||
void startupAll();
|
||||
|
||||
bool want_warn, warn_verbose;
|
||||
bool want_info, info_verbose;
|
||||
bool want_hack, hack_verbose;
|
||||
|
||||
@@ -45,17 +45,6 @@ SimObject *resolveSimObject(const std::string &name);
|
||||
int connectPorts(SimObject *o1, const std::string &name1, int i1,
|
||||
SimObject *o2, const std::string &name2, int i2);
|
||||
|
||||
inline void
|
||||
initAll()
|
||||
{
|
||||
SimObject::initAll();
|
||||
}
|
||||
|
||||
inline void
|
||||
regAllStats()
|
||||
{
|
||||
SimObject::regAllStats();
|
||||
}
|
||||
|
||||
inline void
|
||||
serializeAll(const std::string &cpt_dir)
|
||||
@@ -68,9 +57,3 @@ unserializeAll(const std::string &cpt_dir)
|
||||
{
|
||||
Serializable::unserializeAll(cpt_dir);
|
||||
}
|
||||
|
||||
inline void
|
||||
startupAll()
|
||||
{
|
||||
SimObject::startupAll();
|
||||
}
|
||||
|
||||
@@ -50,6 +50,12 @@ class SimObject {
|
||||
Drained
|
||||
};
|
||||
|
||||
void init();
|
||||
void regStats();
|
||||
void regFormulas();
|
||||
void resetStats();
|
||||
void startup();
|
||||
|
||||
unsigned int drain(Event *drain_event);
|
||||
void resume();
|
||||
void switchOut();
|
||||
|
||||
Reference in New Issue
Block a user