Lines Matching defs:obj
73 for (auto *obj : _allDrainable) {
74 DrainState status = obj->dmDrain();
76 SimObject *temp = dynamic_cast<SimObject*>(obj);
121 for (auto *obj : _allDrainable) {
122 if (obj->drainState() != DrainState::Running) {
123 assert(obj->drainState() == DrainState::Drained ||
124 obj->drainState() == DrainState::Resuming);
125 obj->dmDrainResume();
143 for (auto *obj : _allDrainable)
144 obj->_drainState = DrainState::Drained;
159 DrainManager::registerDrainable(Drainable *obj)
162 assert(std::find(_allDrainable.begin(), _allDrainable.end(), obj) ==
164 _allDrainable.push_back(obj);
168 DrainManager::unregisterDrainable(Drainable *obj)
171 auto o = std::find(_allDrainable.begin(), _allDrainable.end(), obj);
179 for (const auto *obj : _allDrainable) {
180 if (obj->drainState() != state)