| 157 | } |
| 158 | |
| 159 | void AnimatedPartSet::forEachActiveState(function<void(String const&, ActiveStateInformation const&)> callback) const { |
| 160 | for (auto const& p : m_stateTypes) { |
| 161 | const_cast<AnimatedPartSet*>(this)->freshenActiveState(const_cast<StateType&>(p.second)); |
| 162 | callback(p.first, p.second.activeState); |
| 163 | } |
| 164 | } |
| 165 | |
| 166 | void AnimatedPartSet::forEachActivePart(function<void(String const&, ActivePartInformation const&)> callback) const { |
| 167 | for (auto const& p : m_parts) { |
no test coverage detected