mirror of
https://github.com/cmosher01/Epple-II.git
synced 2024-09-29 21:56:05 +00:00
37 lines
643 B
C
37 lines
643 B
C
|
/*
|
||
|
* File: StateCalculator.h
|
||
|
* Author: Christopher
|
||
|
*
|
||
|
* Created on December 12, 2013, 8:29 PM
|
||
|
*/
|
||
|
|
||
|
#ifndef STATECALCULATOR_H
|
||
|
#define STATECALCULATOR_H
|
||
|
|
||
|
#include <set>
|
||
|
#include "SegmentTypes.h"
|
||
|
|
||
|
class Trans;
|
||
|
|
||
|
class StateCalculator final {
|
||
|
public:
|
||
|
|
||
|
static void recalc(const SegmentSet& rSeg);
|
||
|
|
||
|
private:
|
||
|
|
||
|
StateCalculator() {
|
||
|
}
|
||
|
|
||
|
StateCalculator(const StateCalculator&) = delete;
|
||
|
StateCalculator& operator=(const StateCalculator&) = delete;
|
||
|
|
||
|
void recalcNode(Segment* seg);
|
||
|
void setSeg(Segment* s, const bool on);
|
||
|
void setTrans(Trans* t, const bool on);
|
||
|
|
||
|
SegmentSet segs;
|
||
|
};
|
||
|
|
||
|
#endif /* STATECALCULATOR_H */
|