#include <corenodes_helpers.h>
A PortId identifies a port of a core node or micro node (see CoreNodeBaseInterface). It can be given either by a port name or by a port index. The subclasses InPortId and OutPortId have to be used unless the code shall be generic in the port direction.
Public Member Functions | |
MAXON_OPERATOR_EQUALITY (PortId, _indexDir, _name) | |
Bool | IsIndex () const |
Bool | IsName () const |
Bool | IsPopulated () const |
Bool | IsEmpty () const |
Int | GetIndex () const |
const Id & | GetName () const |
PORT_DIR | GetDirection () const |
PortId (PORT_DIR dir, const Id &name) | |
PortId (PORT_DIR dir, Int index) | |
PortId (PORT_DIR dir=PORT_DIR::INPUT) | |
String | ToString (const FormatStatement *fs=nullptr) const |
Protected Attributes | |
Int | _indexDir |
Id | _name |
|
explicit |
Constructs an empty PortId of the given direction.
[in] | dir | The port direction. |
Bool IsIndex | ( | ) | const |
Bool IsName | ( | ) | const |
Bool IsPopulated | ( | ) | const |
Bool IsEmpty | ( | ) | const |
Int GetIndex | ( | ) | const |
const Id& GetName | ( | ) | const |
PORT_DIR GetDirection | ( | ) | const |
Returns the direction of this PortId. PORT_DIR::INPUT stands for input ports, PORT_DIR::OUTPUT for output ports.
String ToString | ( | const FormatStatement * | fs = nullptr | ) | const |
|
protected |
|
protected |