23 lines
398 B
C++
23 lines
398 B
C++
#ifndef EVENT
|
|
#define EVENT
|
|
|
|
using namespace std;
|
|
#include "Wire.h"
|
|
|
|
class Event {
|
|
public:
|
|
Event(int value, int setTime, Wire * output);
|
|
friend bool operator<(const Event &e1, const Event &e2);
|
|
|
|
int getValue() const;
|
|
int getTime() const;
|
|
Wire* getOutput() const;
|
|
void setNum(int num);
|
|
private:
|
|
int evNum, evValue, evTime;
|
|
Wire *out;
|
|
static int numOfEvents;
|
|
};
|
|
|
|
#endif // !EVENT
|