|
HDK
|
#include <UN_Port.h>
Inheritance diagram for UN_PortBase< BASE_CLASS, GRAPH_DATA, PORT, WIRE >:Public Types | |
| using | SrcWireIterator = UN_HandleIterator< WIRE, GRAPH_DATA, UN_PortUtils::WireIterator > |
| using | SrcWireRange = UT_IteratorRange< SrcWireIterator > |
| using | DstWireIterator = UN_HandleIterator< WIRE, GRAPH_DATA, UN_PortUtils::WireIterator > |
| using | DstWireRange = UT_IteratorRange< DstWireIterator > |
| using | SrcPortIterator = UN_HandleIterator< PORT, GRAPH_DATA, UN_PortUtils::PortIterator< true >> |
| And iterator and a range for iterating over connected source ports. More... | |
| using | SrcPortRange = UT_IteratorRange< SrcPortIterator > |
| using | DstPortIterator = UN_HandleIterator< PORT, GRAPH_DATA, UN_PortUtils::PortIterator< false >> |
| And iterator and a range for iterating over connected destination ports. More... | |
| using | DstPortRange = UT_IteratorRange< DstPortIterator > |
Public Member Functions | |
| UN_PortID | portID () const |
| Returns the unique ID of the port this handle refers to. More... | |
| UN_PortKind | kind () const |
| Returns the kind of a port. Ie, an input or an output. More... | |
| bool | isInput () const |
| bool | isOutput () const |
| const UT_StringHolder & | name () const |
| Returns the port name that identifies it on the node. More... | |
| const UT_StringHolder & | typeName () const |
| Returns the port's type that determines the connection compatibility. More... | |
| const UT_StringHolder & | label () const |
| Returns the port's label. More... | |
| const UT_StringArray & | tags () const |
| Returns the port's tags. More... | |
| UN_DataSize | srcWireCount () const |
| Returns the number of source ports connected to the given port. More... | |
| UN_DataSize | dstWireCount () const |
| Returns the number of destination ports connected to the given port. More... | |
| UN_DataSize | wireCount () const |
| bool | isConnectedToSrc () const |
| Returns true if this port is connected to any source port. More... | |
| bool | isConnectedToSrc (const UN_ConstPort &src_port) const |
| Returns true if this port is connected to the given source port. More... | |
| bool | isConnectedToDst () const |
| Returns true if this port is connected to any destination port. More... | |
| bool | isConnectedToDst (const UN_ConstPort &dst_port) const |
| Returns true if this port is connected to the given destination port. More... | |
| bool | isConnected () const |
| Returns true if this port is connected to any other port. More... | |
| bool | isConnected (const UN_ConstPort &port) const |
| SrcWireRange | srcWireRange () const |
| DstWireRange | dstWireRange () const |
| UT_Array< WIRE > | srcWires () const |
| UT_Array< WIRE > | dstWires () const |
| SrcPortRange | srcPortRange () const |
| DstPortRange | dstPortRange () const |
| PORT | srcPort () const |
| PORT | dstPort () const |
| UT_Array< PORT > | srcPorts () const |
| UT_Array< PORT > | dstPorts () const |
| GRAPH_DATA * | graphData () const |
| Returns the owner of the underlying graph data structures. More... | |
| const UN_GraphData * | constGraphData () const |
| Returns the owner of the underlying graph data structures. More... | |
| bool | isValid () const |
| Returns true if this port is valid within the graph; false otherwise. More... | |
| operator bool () const | |
| Returns true if this port is valid within the graph; false otherwise. More... | |
Protected Member Functions | |
| UN_PortBase ()=default | |
| Constructs a handle for an invalid port. More... | |
| UN_PortBase (GRAPH_DATA *graph_data, UN_PortID port_id) | |
| Constructs a handle that references the given port in the given graph. More... | |
Base class template for the UN port handle. Its main purpose is to factor common code for const and non-const handles.
| using UN_PortBase< BASE_CLASS, GRAPH_DATA, PORT, WIRE >::DstPortIterator = UN_HandleIterator< PORT, GRAPH_DATA, UN_PortUtils::PortIterator< false>> |
| using UN_PortBase< BASE_CLASS, GRAPH_DATA, PORT, WIRE >::DstPortRange = UT_IteratorRange< DstPortIterator > |
| using UN_PortBase< BASE_CLASS, GRAPH_DATA, PORT, WIRE >::DstWireIterator = UN_HandleIterator< WIRE, GRAPH_DATA, UN_PortUtils::WireIterator > |
| using UN_PortBase< BASE_CLASS, GRAPH_DATA, PORT, WIRE >::DstWireRange = UT_IteratorRange< DstWireIterator > |
| using UN_PortBase< BASE_CLASS, GRAPH_DATA, PORT, WIRE >::SrcPortIterator = UN_HandleIterator< PORT, GRAPH_DATA, UN_PortUtils::PortIterator< true>> |
| using UN_PortBase< BASE_CLASS, GRAPH_DATA, PORT, WIRE >::SrcPortRange = UT_IteratorRange< SrcPortIterator > |
| using UN_PortBase< BASE_CLASS, GRAPH_DATA, PORT, WIRE >::SrcWireIterator = UN_HandleIterator< WIRE, GRAPH_DATA, UN_PortUtils::WireIterator > |
| using UN_PortBase< BASE_CLASS, GRAPH_DATA, PORT, WIRE >::SrcWireRange = UT_IteratorRange< SrcWireIterator > |
|
protecteddefault |
Constructs a handle for an invalid port.
|
inlineprotected |
|
inline |
|
inline |
|
inline |
Returns a range for iterating over this port's destination ports. NOTE, the iterators hold a reference to the underlying wire array, and therefore ports can't be added/removed during the iteration. For adding/removing ports, use dstPorts() function.
|
inline |
|
inline |
|
inline |
Returns a range for iterating over this port's destination wires. NOTE, the iterators hold a reference to the underlying wire array, and therefore wires can't be added/removed during the iteration. For adding/removing wires, use dstWires() function.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlineexplicit |
|
inline |
|
inline |
|
inline |
Returns a range for iterating over this port's source ports. NOTE, the iterators hold a reference to the underlying wire array, and therefore ports can't be added/removed during the iteration. For adding/removing ports, use srcPorts() function.
|
inline |
|
inline |
|
inline |
Returns a range for iterating over this port's source wires. NOTE, the iterators hold a reference to the underlying wire array, and therefore wires can't be added/removed during the iteration. For adding/removing wires, use srcWires() function.
|
inline |
|
inline |
|
inline |
|
inline |