Skip to content

Commit 69c18ee

Browse files
committed
formatting
1 parent e7f5f1e commit 69c18ee

File tree

2 files changed

+12
-11
lines changed

2 files changed

+12
-11
lines changed

include/maxplus/base/fsm/fsm.h

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -264,17 +264,17 @@ class DepthFirstSearch {
264264
virtual ~DepthFirstSearch() = default;
265265
using DFSStackCIter = DfsStack::const_iterator;
266266

267-
virtual void onEnterState(StateRef s){};
267+
virtual void onEnterState(StateRef s) {};
268268

269-
virtual void onLeaveState(StateRef s){};
269+
virtual void onLeaveState(StateRef s) {};
270270

271-
virtual void onTransition(const Edge &e){};
271+
virtual void onTransition(const Edge &e) {};
272272

273-
virtual void onSimpleCycle(DfsStack &stack){};
273+
virtual void onSimpleCycle(DfsStack &stack) {};
274274

275275
const FiniteStateMachine &getFSM() { return this->fsm; }
276276

277-
explicit DepthFirstSearch(const FiniteStateMachine &targetFsm) : fsm(targetFsm){};
277+
explicit DepthFirstSearch(const FiniteStateMachine &targetFsm) : fsm(targetFsm) {};
278278

279279
// Execute the depth first search
280280
void DoDepthFirstSearch(const SetOfStateRefs &startingStates, bool fullDFS = false) {
@@ -400,7 +400,7 @@ class DepthFirstSearchLambda : public DepthFirstSearch {
400400
_onLeaveStateLambda([](StateRef) {}),
401401
_onTransitionLambda([](const Edge &) {}),
402402
_onSimpleCycleLambda([](const DepthFirstSearch::DfsStack &) {}),
403-
DepthFirstSearch(targetFsm){};
403+
DepthFirstSearch(targetFsm) {};
404404

405405
void setOnEnterLambda(TOnEnterLambda lambda) { this->_onEnterStateLambda = std::move(lambda); }
406406

@@ -420,7 +420,7 @@ class DetectCycle : public DepthFirstSearch {
420420
public:
421421
bool hasCycle = false;
422422

423-
explicit DetectCycle(const FiniteStateMachine &targetFsm) : DepthFirstSearch(targetFsm){};
423+
explicit DetectCycle(const FiniteStateMachine &targetFsm) : DepthFirstSearch(targetFsm) {};
424424

425425
~DetectCycle() override = default;
426426

@@ -459,7 +459,7 @@ class ReachableStates : public DepthFirstSearch {
459459
public:
460460
SetOfStateRefs result;
461461

462-
explicit ReachableStates(FiniteStateMachine &targetFsm) : DepthFirstSearch(targetFsm){};
462+
explicit ReachableStates(FiniteStateMachine &targetFsm) : DepthFirstSearch(targetFsm) {};
463463

464464
~ReachableStates() override = default;
465465

@@ -606,7 +606,7 @@ class FiniteStateMachine : public Abstract::FiniteStateMachine {
606606
};
607607

608608
public:
609-
FiniteStateMachine() : Abstract::FiniteStateMachine(){};
609+
FiniteStateMachine() : Abstract::FiniteStateMachine() {};
610610

611611
~FiniteStateMachine() override = default;
612612

@@ -698,7 +698,8 @@ class FiniteStateMachine : public Abstract::FiniteStateMachine {
698698
return dynamic_cast<StateRef<StateLabelType, EdgeLabelType>>(*s);
699699
};
700700

701-
[[nodiscard]] const ::MaxPlus::FSM::Abstract::SetOfStateRefs &getInitialStates() const override {
701+
[[nodiscard]] const ::MaxPlus::FSM::Abstract::SetOfStateRefs &
702+
getInitialStates() const override {
702703
return this->initialStates;
703704
};
704705

include/maxplus/graph/mpautomaton.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ using MPASetOfEdgeRefs = ::MaxPlus::FSM::Labeled::SetOfEdgeRefs<MPAStateLabel, M
156156
/**
157157
* A max-plus automaton
158158
*/
159-
class MaxPlusAutomaton : public ::MaxPlus::FSM::Labeled::FiniteStateMachine<MPAStateLabel, MPAEdgeLabel> {
159+
class MaxPlusAutomaton: public ::MaxPlus::FSM::Labeled::FiniteStateMachine<MPAStateLabel, MPAEdgeLabel> {
160160
public:
161161
// Destructor.
162162
~MaxPlusAutomaton() override = default;

0 commit comments

Comments
 (0)