Lines Matching defs:DrainState
71 enum class DrainState {
140 bool isDrained() const { return _state == DrainState::Drained; }
143 DrainState state() const { return _state; }
160 bool allInState(DrainState state) const;
182 DrainState _state;
235 * internal buffers, it returns DrainState::Drained and
237 * needs more simulation, it returns DrainState::Draining and
245 * until all objects return DrainState::Drained on the first call
248 * @return DrainState::Drained if the object is drained at this
249 * point in time, DrainState::Draining if it needs further
252 virtual DrainState drain() = 0;
269 case DrainState::Running:
270 case DrainState::Drained:
271 case DrainState::Resuming:
273 case DrainState::Draining:
274 _drainState = DrainState::Drained;
282 DrainState drainState() const { return _drainState; }
300 DrainState dmDrain();
312 mutable DrainState _drainState;