Minsky
minsky::InputPort Struct Reference

#include <port.h>

Inheritance diagram for minsky::InputPort:
Inheritance graph
Collaboration diagram for minsky::InputPort:
Collaboration graph

Public Member Functions

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 bool multiWireAllowed () const
 true if multiple wires are allowed to connect to an input port, such as an input port of an add operation. Irrelevant, otherwise 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 108 of file port.h.

Constructor & Destructor Documentation

◆ InputPort()

minsky::InputPort::InputPort ( Item item)
inline

Definition at line 111 of file port.h.

111 : Port(item) {}
Port(const Port &)=delete
Item & item()
owner of this port
Definition: port.h:66

Member Function Documentation

◆ input()

bool minsky::InputPort::input ( ) const
inlineoverridevirtual

true if input port

Reimplemented from minsky::Port.

Definition at line 110 of file port.h.

110 {return true;}

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