Lines Matching refs:StateBase
95 class StateBase {
105 StateBase(const void* key, size_t state_count, Visibility visibility,
114 virtual ~StateBase() = default;
148 StateBase* visibility_dependency_ = nullptr;
158 StateBase* FollowDependencies() {
163 StateBase* current = this;
164 std::vector<StateBase*> dependencies;
195 class State final : public StateBase {
198 : StateBase(&header, state_count, Visibility::kHidden, nullptr, false) {}
215 void MarkDependentVisibility(StateBase* dependency) {
219 if (visibility_ == StateBase::Visibility::kVisible) {
296 class RootState final : public StateBase {
300 : StateBase(node, state_count, Visibility::kVisible, node, true) {}
312 StateBase& GetExistingState(const void* key) const {
350 std::unordered_map<const void*, std::unique_ptr<StateBase>> states_;
576 explicit ParentScope(StateBase& parent) : parent_(parent) {}
584 StateBase& parent_;
866 states_.ForAllVisibleStates([this](StateBase* state_base) {
867 // No roots have been created so far, so all StateBase objects are State.