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>.
int32 Insert( int32 p_nIndex, int32 p_bOwns, Node p_oNode )
Parameter Type | Parameter Name | Documentation |
---|---|---|
int32 | p_nIndex | The index at which to insert the <Node> pointer. |
int32 | p_bOwns | If true, the collection owns the <Node>. Otherwise, the collection does not own the <Node>. |
<Node> | p_oNode | The <Node> to insert. |
None published. Please look for an example in the Scenome Scripting Language code base.