/* * File: Circuit.h * Author: Christopher * * Created on December 12, 2013, 7:04 PM */ #ifndef CIRCUIT_H #define CIRCUIT_H #include class Segment; class Circuit { public: Circuit(Segment* extendFrom, Segment* VSS, Segment* VCC); virtual ~Circuit() { } bool getValue(); std::set::iterator begin() { return this->segs.begin(); } std::set::iterator end() { return this->segs.end(); } private: Circuit(const Circuit&); Circuit& operator=(const Circuit&); void extend(Segment* extendFrom); bool contains(Segment* s) const { return this->segs.find(s) != this->segs.end(); } std::set segs; Segment* VSS; Segment* VCC; }; #endif /* CIRCUIT_H */