MicroNode::PortsAccess< ACCESS_FLAGS, PORTS >::InputMembers Class Reference

#include <micronodes_ports.h>

Inheritance diagram for MicroNode::PortsAccess< ACCESS_FLAGS, PORTS >::InputMembers:

Public Types

using Ports = PortsAccess
 

Public Member Functions

Int GetIndex () const
 
const PortsAccessPrivateGetPortsAccess () const
 
PortsAccessPrivateGetPortsAccess ()
 
PortsAccessPrivateGetPortsNonConstAccess () const
 
Context & GetContext () const
 

Static Public Member Functions

static Int PrivateGetOffsetInMembers ()
 

Additional Inherited Members

- Static Public Attributes inherited from PortMembers< corenodes::details::Select< PORTS, Int(TYPE::INPUT_MASK), PortsAccess >::type... >
static constexpr Int PORTCOUNT
 

Member Typedef Documentation

◆ Ports

using Ports = PortsAccess

Member Function Documentation

◆ GetIndex()

Int GetIndex ( ) const

◆ PrivateGetPortsAccess() [1/2]

const PortsAccess& PrivateGetPortsAccess ( ) const

◆ PrivateGetPortsAccess() [2/2]

PortsAccess& PrivateGetPortsAccess ( )

◆ PrivateGetPortsNonConstAccess()

PortsAccess& PrivateGetPortsNonConstAccess ( ) const

For non-const PortAccess read, useful for manual access to output port value pointers when not used named ports. I.e. when not using the port name from MAXON_PORT_OUTPUT macro to access values.

// Normal port access for writing:
ports.portname() = newPortValue;
// Manual non-const access:
auto& genericPortValue = *ports.PrivateGetPortsNonConstAccess().GetBaseData().GetMemberValue(corenodes::ACCESS_INDEX(0));

◆ GetContext()

Context& GetContext ( ) const

◆ PrivateGetOffsetInMembers()

static Int PrivateGetOffsetInMembers ( )
static
maxon::corenodes::ACCESS_INDEX
ACCESS_INDEX
Definition: corenodes_helpers.h:25