InPortId Class Reference

#include <corenodes_helpers.h>

Inheritance diagram for InPortId:

Detailed Description

An InPortId identifies an input port of a core node or micro node (see CoreNodeBaseInterface). It can be given either by a port name or by a port index.

Public Member Functions

 InPortId ()
 
MAXON_IMPLICIT InPortId (const Id &name)
 
MAXON_IMPLICIT InPortId (Int index)
 
- Public Member Functions inherited from PortId
 MAXON_OPERATOR_EQUALITY (PortId, _indexDir, _name)
 
Bool IsIndex () const
 
Bool IsName () const
 
Bool IsPopulated () const
 
Bool IsEmpty () const
 
Int GetIndex () const
 
const IdGetName () 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
 

Static Public Member Functions

static MAXON_ATTRIBUTE_FORCE_INLINE const InPortIdNullValue ()
 

Static Public Attributes

static constexpr WIRETYPE DEFAULT_WIRE
 

Static Private Attributes

static const InPortId _nullValue
 

Additional Inherited Members

- Protected Attributes inherited from PortId
Int _indexDir
 
Id _name
 

Constructor & Destructor Documentation

◆ InPortId() [1/3]

InPortId ( )

Constructs an empty InPortId (without name or index).

◆ InPortId() [2/3]

MAXON_IMPLICIT InPortId ( const Id name)

Constructs a new InPortId given by a port name.

Parameters
[in]nameThe port name to use for the InPortId.

◆ InPortId() [3/3]

Constructs a new InPortId given by a port index.

Parameters
[in]indexThe port index to use for the InPortId.

Member Function Documentation

◆ NullValue()

static MAXON_ATTRIBUTE_FORCE_INLINE const InPortId& NullValue ( )
static

Member Data Documentation

◆ DEFAULT_WIRE

constexpr WIRETYPE DEFAULT_WIRE
staticconstexpr

◆ _nullValue

const InPortId _nullValue
staticprivate