|
Minsky: 3.17.0
|
#include <port.h>


Public Member Functions | |
| 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 | input () const |
| true if input port 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... | |
| Item & | item () |
| owner of this port More... | |
| const Item & | item () const |
| owner of this port More... | |
Private Member Functions | |
| CLASSDESC_ACCESS (Port) | |
| Port (const Port &)=delete | |
| void | operator= (const Port &)=delete |
Private Attributes | |
| float | m_x {0} |
| float | m_y {0} |
Friends | |
| struct | SchemaHelper |
| class | Wire |
|
privatedelete |
|
inline |
Definition at line 99 of file port.h.
References deleteWires().

|
inline |
|
private |
|
inlinevirtual |
combine two input wires
| x | input to be updated |
| y | input to be combined with x |
Reimplemented in minsky::anonymous_namespace{operation.cc}::OrInputPort, minsky::anonymous_namespace{operation.cc}::AndInputPort, minsky::anonymous_namespace{operation.cc}::MinInputPort, minsky::anonymous_namespace{operation.cc}::MaxInputPort, minsky::anonymous_namespace{operation.cc}::MulInputPort, and minsky::anonymous_namespace{operation.cc}::SumInputPort.
Definition at line 89 of file port.h.

| void minsky::Port::deleteWires | ( | ) |
delete all attached wires
wires could be anywhere, so we need to walk the whole heirachy
Definition at line 70 of file port.cc.
References minsky::group.
Referenced by ~Port().

| void minsky::Port::eraseWire | ( | Wire * | w | ) |
|
inlinevirtual |
input port value if no wire attached
Reimplemented in minsky::anonymous_namespace{operation.cc}::AndInputPort, minsky::anonymous_namespace{operation.cc}::MinInputPort, minsky::anonymous_namespace{operation.cc}::MaxInputPort, and minsky::anonymous_namespace{operation.cc}::MulInputPort.
|
inlinevirtual |
true if input port
Reimplemented in minsky::InputPort.
Definition at line 80 of file port.h.
Referenced by minsky::TensorsFromPort::tensorsFromPort().

|
inline |
owner of this port
Definition at line 66 of file port.h.
Referenced by minsky::anonymous_namespace{minsky.cc}::Network::followWire().

|
inline |
|
inlinevirtual |
true if multiple wires are allowed to connect to an input port, such as an input port of an add operation. Irrelevant, otherwise
Reimplemented in minsky::MultiWireInputPort.
|
inline |
|
privatedelete |
| Units minsky::Port::units | ( | bool | check | ) | const |
Definition at line 107 of file port.cc.
Referenced by checkUnits().

| double minsky::Port::value | ( | ) | const |
value associated with this port
Definition at line 92 of file port.cc.
|
inline |
returns a vector of weak references to the wires attached to this port
Definition at line 71 of file port.h.
Referenced by minsky::TensorsFromPort::tensorsFromPort().

| float minsky::Port::x | ( | ) | const |
Definition at line 39 of file port.cc.
Referenced by combineInput().

| float minsky::Port::y | ( | ) | const |
Definition at line 44 of file port.cc.
Referenced by combineInput().

|
friend |