| 82 | } |
| 83 | |
| 84 | bool State::isSaturated(const ActivityStateActionPtr &action) const { |
| 85 | if (!action->requireTarget()) { |
| 86 | return action->isVisited(); |
| 87 | } |
| 88 | if (nullptr != action->getTarget()) { |
| 89 | uintptr_t h = action->getTarget()->hash(); |
| 90 | if (this->_mergedWidgets.find(h) != this->_mergedWidgets.end()) { |
| 91 | return action->getVisitedCount() > (int) this->_mergedWidgets.at(h).size(); |
| 92 | } |
| 93 | } |
| 94 | return action->getVisitedCount() >= 1; |
| 95 | } |
| 96 | |
| 97 | RectPtr State::_sameRootBounds = std::make_shared<Rect>(); |
| 98 |
no test coverage detected