MutablePortList Class Reference

#include <nodesystem.h>

Inheritance diagram for MutablePortList:

Detailed Description

MutablePortList represents a PortList within a NodeSystem with write access.

See also
$ref usernodes_modifications

Public Types

using Super = MutablePortListFunctions< MutableGNodeBase >
- Public Types inherited from MutablePortListFunctions< MutableGNodeBase >
using ResultFunctions = MutablePortListFunctions< maxon::nodes::details::GNodeResultBase< SUPER > >
using Super = PortListFunctions< MutableGNodeBase >
- Public Types inherited from PortListFunctions< BASE >
using Iterator = GNodeIterator< PortSelector< BASE::MUTABLE > >
template<typename SUPER >
using ResultFunctions = PortListFunctions< maxon::nodes::details::GNodeResultBase< SUPER > >
using Super = maxon::nodes::details::NodeFunctionsSuper< BASE >

Public Member Functions

const PortListToImmutable () const
- Public Member Functions inherited from MutablePortListFunctions< MutableGNodeBase >
Result< MutablePortAddPort (const Id &portId, GNODE_FLAGS flags=GNODE_FLAGS::NONE) const
Result< MutablePortAddPort (const Id &portId, Opt< ChangeList & > list) const
Result< typename SFINAEHelper< MutablePort, ATTR >::typeAddPort () const
Result< MutablePortFindOrAddPort (const Id &portId, Opt< ChangeList & > list={}) const
- Public Member Functions inherited from PortListFunctions< BASE >
PORT_DIR GetPortDirection () const
Result< NodeSelector< BASE::MUTABLE > > GetNode () const
Result< IteratorGetPorts () const
Result< PortSelector< BASE::MUTABLE > > GetSinglePort () const
Result< PortSelector< BASE::MUTABLE > > FindPort (const InternedId &port) const
Result< PortSelector< BASE::MUTABLE > > FindPort (const Id &port) const
template<typename PATH >
Result< void > InitFromPath (typename maxon::nodes::details::NodeFunctionsSuper< BASE >::NodeSystemCtorParam system, PATH &&path, NODE_KIND check=NODE_KIND::PORTLIST_MASK|NODE_KIND::PORT_MASK)

Static Public Member Functions

static MAXON_ATTRIBUTE_FORCE_INLINE const MutablePortListNullValue ()

Member Typedef Documentation

◆ Super

Member Function Documentation

◆ NullValue()

static MAXON_ATTRIBUTE_FORCE_INLINE const MutablePortList& NullValue ( )

◆ ToImmutable()

const PortList& ToImmutable ( ) const

Casts this MutablePortList to an immutable PortList. If you call this function during an active modification you have to make sure that the returned PortList (and all further immutable references which are obtained through this PortList) is only stored temporarily and goes out of scope before the next modification is made, see usernodes_modifications.

This port list as a PortList.