Node

constructor()(source)

Allocate a new Node.

This instance will be allocated on the native heap and automatically freed when this class instance is garbage collected.


constructor(scope: <Error class: unknown class>)(source)

Allocate a new Node using the provided AutofreeScope.

The AutofreeScope manages the allocation lifetime. The most common usage is with memScoped.

Parameters

scope

The AutofreeScope to allocate this structure in.


constructor(data: <Error class: unknown class>, next: Node?, prev: Node?, parent: Node?, children: Node?)(source)

Allocate a new Node.

This instance will be allocated on the native heap and automatically freed when this class instance is garbage collected.

Parameters

data

contains the actual data of the node.

next

points to the node's next sibling (a sibling is another #GNode with the same parent).

prev

points to the node's previous sibling.

parent

points to the parent of the #GNode, or is null if the #GNode is the root of the tree.

children

points to the first child of the #GNode. The other children are accessed by using the @next pointer of each child.


constructor(    data: <Error class: unknown class>,     next: Node?,     prev: Node?,     parent: Node?,     children: Node?,     scope: <Error class: unknown class>)(source)

Allocate a new Node using the provided AutofreeScope.

The AutofreeScope manages the allocation lifetime. The most common usage is with memScoped.

Parameters

data

contains the actual data of the node.

next

points to the node's next sibling (a sibling is another #GNode with the same parent).

prev

points to the node's previous sibling.

parent

points to the parent of the #GNode, or is null if the #GNode is the root of the tree.

children

points to the first child of the #GNode. The other children are accessed by using the @next pointer of each child.

scope

The AutofreeScope to allocate this structure in.


constructor(glibNodePointer: <Error class: unknown class><<Error class: unknown class>>)(source)