fix private for fsm
Some checks failed
linux-aarch64-cpu-gcc / linux-gcc-aarch64 (push) Successful in 1m28s
linux-arm-gcc / linux-gcc-armhf (push) Successful in 1m37s
linux-x64-gcc / linux-gcc (Release) (push) Failing after 1m34s
linux-mips64-gcc / linux-gcc-mips64el (Debug) (push) Successful in 1m45s
linux-mips64-gcc / linux-gcc-mips64el (Release) (push) Failing after 1m53s
linux-x64-gcc / linux-gcc (Debug) (push) Successful in 2m1s
Some checks failed
linux-aarch64-cpu-gcc / linux-gcc-aarch64 (push) Successful in 1m28s
linux-arm-gcc / linux-gcc-armhf (push) Successful in 1m37s
linux-x64-gcc / linux-gcc (Release) (push) Failing after 1m34s
linux-mips64-gcc / linux-gcc-mips64el (Debug) (push) Successful in 1m45s
linux-mips64-gcc / linux-gcc-mips64el (Release) (push) Failing after 1m53s
linux-x64-gcc / linux-gcc (Debug) (push) Successful in 2m1s
This commit is contained in:
parent
4fc8fe0f09
commit
b0cd2d363b
@ -1,3 +1,7 @@
|
|||||||
|
#ifndef SLED_SLED_NONSTD_FSM_H
|
||||||
|
#define SLED_SLED_NONSTD_FSM_H
|
||||||
|
|
||||||
|
#pragma once
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2015-2021 Thomas Kemmer
|
* Copyright (c) 2015-2021 Thomas Kemmer
|
||||||
*
|
*
|
||||||
@ -22,9 +26,6 @@
|
|||||||
* SOFTWARE.
|
* SOFTWARE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef FSMLITE_FSM_H
|
|
||||||
#define FSMLITE_FSM_H
|
|
||||||
|
|
||||||
#include <cstddef>
|
#include <cstddef>
|
||||||
#include <type_traits>
|
#include <type_traits>
|
||||||
|
|
||||||
@ -32,9 +33,7 @@
|
|||||||
#include <stdexcept>
|
#include <stdexcept>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
namespace fsmlite {
|
namespace sled {
|
||||||
template<typename T, typename State>
|
|
||||||
class Fsm;
|
|
||||||
|
|
||||||
namespace detail {
|
namespace detail {
|
||||||
|
|
||||||
@ -452,13 +451,7 @@ private:
|
|||||||
};
|
};
|
||||||
#endif
|
#endif
|
||||||
};
|
};
|
||||||
}// namespace fsmlite
|
|
||||||
|
|
||||||
namespace sled {
|
|
||||||
template<typename T, typename State = int>
|
|
||||||
class Fsm : public fsmlite::Fsm<T, State> {
|
|
||||||
public:
|
|
||||||
Fsm(State init_state = State()) : fsmlite::Fsm<T, State>(init_state) {}
|
|
||||||
};
|
|
||||||
}// namespace sled
|
}// namespace sled
|
||||||
#endif
|
|
||||||
|
#endif// SLED_SLED_NONSTD_FSM_H
|
||||||
|
@ -39,6 +39,7 @@ private:
|
|||||||
void OnReset(const ResetEvent &) {}
|
void OnReset(const ResetEvent &) {}
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
friend class sled::Fsm<FSMTest, State>;
|
||||||
using TransitionTable
|
using TransitionTable
|
||||||
= table<row<State::kIdle, StartEvent, State::kStarted, &FSMTest::OnStart, &FSMTest::StartCheck>,
|
= table<row<State::kIdle, StartEvent, State::kStarted, &FSMTest::OnStart, &FSMTest::StartCheck>,
|
||||||
row<State::kStarted, StopEvent, State::kEnd, &FSMTest::OnStop>,
|
row<State::kStarted, StopEvent, State::kEnd, &FSMTest::OnStop>,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user