Minsky
minsky::MultiWireInputPort Struct Reference

#include <port.h>

Inheritance diagram for minsky::MultiWireInputPort:
Inheritance graph
Collaboration diagram for minsky::MultiWireInputPort:
Collaboration graph

Public Member Functions

bool multiWireAllowed () const override
 true if multiple wires are allowed to connect to an input port, such as an input port of an add operation. Irrelevant, otherwise More...
 
 MultiWireInputPort (Item &item)
 
- Public Member Functions inherited from minsky::InputPort
bool input () const override
 true if input port More...
 
 InputPort (Item &item)
 
- Public Member Functions inherited from minsky::Port
std::vector< Wire * > const & wires () const
 returns a vector of weak references to the wires attached to this port More...
 
std::size_t numWires () const
 
void eraseWire (Wire *)
 remove wire from wires. No ownership passed. More...
 
void deleteWires ()
 delete all attached wires More...
 
virtual void combineInput (double &x, double y) const
 combine two input wires More...
 
virtual double identity () const
 input port value if no wire attached More...
 
float x () const
 
float y () const
 
void moveTo (float x, float y)
 
 Port (Item &item)
 
 ~Port ()
 
double value () const
 value associated with this port More...
 
Units units (bool) const
 
Units checkUnits () const
 dimensional analysis with consistency check More...
 
Itemitem ()
 owner of this port More...
 
const Itemitem () const
 owner of this port More...
 

Detailed Description

Definition at line 114 of file port.h.

Constructor & Destructor Documentation

◆ MultiWireInputPort()

minsky::MultiWireInputPort::MultiWireInputPort ( Item item)
inline

Definition at line 117 of file port.h.

117 : InputPort(item) {}
InputPort(Item &item)
Definition: port.h:111
Item & item()
owner of this port
Definition: port.h:66

Member Function Documentation

◆ multiWireAllowed()

bool minsky::MultiWireInputPort::multiWireAllowed ( ) const
inlineoverridevirtual

true if multiple wires are allowed to connect to an input port, such as an input port of an add operation. Irrelevant, otherwise

Reimplemented from minsky::Port.

Definition at line 116 of file port.h.

116 {return true;}

The documentation for this struct was generated from the following file: