#include <micronodes_ports.h>
SourceCodePortId is used internally to identify the ports created with the MAXON_PORT macros.
Public Member Functions | |
| SourceCodePortId (Int h=-1, Int i=-1) | |
| operator Bool () const | |
| MAXON_OPERATOR_STRUCT (SourceCodePortId, hash, linearIndex) | |
Public Attributes | |
| Int | hash |
| Int | linearIndex |
|
explicit |
|
explicit |
| MAXON_OPERATOR_STRUCT | ( | SourceCodePortId | , |
| hash | , | ||
| linearIndex | |||
| ) |
| Int hash |
A hash code based on the port name. Negative for input ports, non-negative for output or state ports.
| Int linearIndex |
The linear index for indexed ports. E.g. for a port array p[3][4] the port at [1][2] has linear index 1*4+2 = 6.