Heap::key

(Available since version 1.0)

Heap::keyReturn current node index

Description

public int Heap::key ( void )

This function returns the current node index.

Note:

The current node is always viewed as the last node. Which means this function will always return 'Heap::count() - 1'.

Parameters

This function has no parameters.

Return Values

The current node index.

To Top