37 for(ii = begin(); ii != end(); ii++) {
38 if((
Pin*)(*ii) == p) {
46 while(begin() != end())
47 (*begin())->UnRegisterNet(
this);
53 for(ii = begin(); ii != end(); ii++)
54 result += ((*ii)->GetPin());
57 for(ii = begin(); ii != end(); ii++)
virtual bool CalcNet()
Calculate a "electrical potential" on the net and set all pin inputs with this value.
Pin class, handles input and output to external parts.
void Add(Pin *p)
Add a pin to net, e.g. connect a pin to others.
virtual void Delete(Pin *p)
virtual ~Net()
Destructor, disconnects save all pins, which are connected.
virtual void RegisterNet(Net *n)
registers Net instance on pin
virtual void SetInState(const Pin &p)
handles the input value from net