PortInfo Struct Reference

#include <corenodes.h>

详细描述

PortInfo stores information about a port, it is returned by CoreNodeBaseInterface::GetPortInfo() .

公共成员函数

const DataType GetAccessType () const
String   ToString (const FormatStatement *format=nullptr) const

Public Attributes

Id   name
DataType   type
DataType   accessType
WIRETYPE   wtypes
MicroNode::FLAGS   flags

成员函数文档编制

◆  GetAccessType()

const DataType & GetAccessType ( ) const

Returns the access type of the port. For non-state ports, this is the decayed type , otherwise it's the l-value-reference type of type .

返回
Access type of this port.

◆  ToString()

String ToString ( const FormatStatement format = nullptr ) const

Returns a String representation of this @CLASS.

参数
[in] formatStatement Nullptr or additional formatting instruction.
返回
String representation of this @CLASS.

Member Data Documentation

◆  name

Id name

The name of the port. Port names have to be unique per direction for a core node.

◆  type

DataType type

The type of the port. This is usually a const type, only for state ports it is non-const.

◆  accessType

DataType accessType
mutable

◆  wtypes

WIRETYPE wtypes

The union of the wire types of all inner connections of the port.

◆  flags

MicroNode::FLAGS flags

Additional flags for the port.