Insert Data Member Function

Inserts a <Node> into the collection and sets an owning or non-owning relationship. This function can require a full allocation and deallocation cycle. Note that the collection does not support multiple ownership, so this function fails if the collection already has an owning pointer to the <Node>.

Prototype

int32 Insert( int32 p_nIndex, int32 p_bOwns, Node p_oNode )

Parameters

Parameter Type Parameter Name Documentation
int32p_nIndexThe index at which to insert the <Node> pointer.
int32p_bOwnsIf true, the collection owns the <Node>. Otherwise, the collection does not own the <Node>.
<Node>p_oNodeThe <Node> to insert.

Examples

Copy Text To Clipboard

None published. Please look for an example in the Scenome Scripting Language code base.