File size: 736 Bytes
d1be154 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 | #ifndef OT_TIMER_SCC_HPP_
#define OT_TIMER_SCC_HPP_
#include <vector>
#include <optional>
namespace ot {
class Pin;
// ------------------------------------------------------------------------------------------------
// Class: SCC
// strongly connected component
class SCC {
friend class Timer;
public:
SCC(std::vector<Pin*>&&);
private:
std::optional<std::list<SCC>::iterator> _satellite;
std::vector<Pin*> _pins;
std::string _dump() const;
bool _is_entry(const Pin&) const;
bool _is_exit(const Pin&) const;
void _clear();
void _unloop(Pin&);
void _unloop();
};
}; // end of namespace ot. -----------------------------------------------------------------------
#endif
|