mirror of
https://github.com/cmosher01/v6502cpp.git
synced 2025-04-18 18:37:14 +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 */
|