#include <nodesystem.h>

This class template contains the functions of MutablePortList which shall also be available on Result<MutablePortList>.
Public Types | |
| template<typename SUPER > | |
| using | ResultFunctions = MutablePortListFunctions< maxon::nodes::details::GNodeResultBase< SUPER > > |
| using | Super = PortListFunctions< BASE > |
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 | |
| Result< MutablePort > | AddPort (const Id &portId, GNODE_FLAGS flags=GNODE_FLAGS::NONE) const |
| Result< MutablePort > | AddPort (const Id &portId, Opt< ChangeList & > list) const |
| template<typename ATTR > | |
| Result< typename SFINAEHelper< MutablePort, ATTR >::type > | AddPort () const |
| Result< MutablePort > | FindOrAddPort (const Id &portId, Opt< ChangeList & > list={}) const |
| Result< MutablePort > | AddPort (const InternedId &portId) const |
| Result< MutablePort > | FindOrAddPort (const InternedId &portId) const |
Public Member Functions inherited from PortListFunctions< BASE > | |
| PORT_DIR | GetPortDirection () const |
| Result< NodeSelector< BASE::MUTABLE > > | GetNode () const |
| Result< Iterator > | GetPorts () 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) |
| using ResultFunctions = MutablePortListFunctions <maxon::nodes::details::GNodeResultBase<SUPER> > |
| using Super = PortListFunctions<BASE> |
| Result<MutablePort> AddPort | ( | const Id & | portId, |
| GNODE_FLAGS | flags = GNODE_FLAGS::NONE |
||
| ) | const |
Adds a new port to this port list or port. The port will have #portId as its identifier.
| [in] | portId | The identifier for the new port. An error is returned if the identifier is empty, or if there already exists a port for the identifier. |
| Result<MutablePort> AddPort | ( | const Id & | portId, |
| Opt< ChangeList & > | list | ||
| ) | const |
Adds a new port to this port list or port. The port will have #portId as its identifier.
| [in] | portId | The identifier for the new port. An error is returned if the identifier is empty, or if there already exists a port for the identifier. |
| [in] | list | An optional ChangeList to track the changes. |
| Result<typename SFINAEHelper<MutablePort, ATTR>::type> AddPort | ( | ) | const |
Adds a new port to this port list or port. The port uses identifier and type from ATTR.
| ATTR | An attribute declared by MAXON_ATTRIBUTE. |
| Result<MutablePort> FindOrAddPort | ( | const Id & | portId, |
| Opt< ChangeList & > | list = {} |
||
| ) | const |
Adds a new port to this port list or port if it doesn't exist already. otherwise returns the existing port. The port will have #portId as its identifier.
| [in] | portId | The identifier for the port. An error is returned if the identifier is empty. |
| [in] | list | An optional ChangeList to track the changes. |
| Result<MutablePort> AddPort | ( | const InternedId & | portId | ) | const |
| Result<MutablePort> FindOrAddPort | ( | const InternedId & | portId | ) | const |