simulavr  1.1.0
Net Class Reference

Connect Pins to each other and transfers a output change from a pin to input values for all pins. More...

#include <net.h>

Inheritance diagram for Net:

Public Member Functions

virtual ~Net ()
 Destructor, disconnects save all pins, which are connected. More...
 
void Add (Pin *p)
 Add a pin to net, e.g. connect a pin to others. More...
 
virtual void Delete (Pin *p)
 
virtual bool CalcNet ()
 Calculate a "electrical potential" on the net and set all pin inputs with this value. More...
 

Friends

void Pin::RegisterNet (Net *)
 

Detailed Description

Connect Pins to each other and transfers a output change from a pin to input values for all pins.

Definition at line 34 of file net.h.

Constructor & Destructor Documentation

◆ ~Net()

Net::~Net ( )
virtual

Destructor, disconnects save all pins, which are connected.

Definition at line 45 of file net.cpp.

Member Function Documentation

◆ Add()

void Net::Add ( Pin p)

Add a pin to net, e.g. connect a pin to others.

Definition at line 29 of file net.cpp.

References CalcNet(), and Pin::RegisterNet().

◆ CalcNet()

bool Net::CalcNet ( )
virtual

Calculate a "electrical potential" on the net and set all pin inputs with this value.

Definition at line 50 of file net.cpp.

References Pin::SetInState(), and Pin::TRISTATE.

Referenced by Add().

◆ Delete()

void Net::Delete ( Pin p)
virtual

Remove a pin from net

Definition at line 35 of file net.cpp.

Friends And Related Function Documentation

◆ Pin::RegisterNet

void Pin::RegisterNet ( Net )
friend

The documentation for this class was generated from the following files: