Template Class Port

Inheritance Relationships

Derived Types

Class Documentation

template<typename scalar_type, typename index_type>
class Port

Representation of a connection to a SignalNode.

Subclassed by GridKit::PhasorDynamics::SignalIn< ScalarT, IdxT >, GridKit::PhasorDynamics::SignalOut< ScalarT, IdxT >, GridKit::PhasorDynamics::SignalIn< scalar_type, index_type >, GridKit::PhasorDynamics::SignalOut< scalar_type, index_type >

Public Functions

inline void connect(SignalNodeT *node) noexcept

Connect a signal node to this port.

inline operator bool() const noexcept

Overload indicating if a signal node is connected to this port.

inline bool connected() const noexcept

Whether or not a signal node is connected to this port.

inline bool linked() const noexcept

Whether or not the connected signal node has been linked to an output port.