new trans structs (wip)

This commit is contained in:
Christopher Mosher 2013-12-10 17:45:18 -05:00
parent b5446cca3f
commit abe1e7d2e6

36
trans.h Normal file
View File

@ -0,0 +1,36 @@
/*
* File: trans.h
* Author: cmosher
*
* Created on December 10, 2013, 2:37 PM
*/
#ifndef TRANS_H
#define TRANS_H
#include <string>
#include <vector>
class Trans;
class Segment {
public:
std::string id;
std::vector<Trans*> gates;
std::vector<Trans*> c1c2s;
bool pullup;
bool pulldown;
bool on;
};
class Trans {
public:
Segment* c1;
Segment* gate;
Segment* c2;
bool on;
};
#endif /* TRANS_H */