Lines Matching refs:State
43 struct State { struct
44 State() = default;
45 explicit State(int s) : state(s) {}; in State() argument
47 bool operator==(const State &right) const
52 bool operator!=(const State &right) const
57 bool operator<(const State &right) const
76 using HandleMsg = std::function<int(const StateMsg &msg, State &nextState)>; argument
110 int Handle(const StateMsg &msg, State &nextState);
153 explicit ModuleStates(const State &defaultState = State(0), const std::string &name = "",
157 StateActions& ForState(const State &s);
164 State CurrState() const;
167 void ToState(std::map<State, StateActions*>::iterator &nextIt);
171 std::map<State, StateActions*>::iterator currState_;
176 std::map<State, StateActions*> states_;
180 #define ADDR(func) ([this](const StateMsg &msg, State &nextState)->int { return this->func(msg, nex…