Heap::childOneIndex

(Available since version 1.0)

Heap::childOneIndexReturns the index of the first child

Description

protected int Heap::childOneIndex ( int $index )

Returns the index of the first child of the node referred to by the index, index, in the binary tree.

Parameters

index

The index to be queried.

Return Values

The index of the first child or NULL if none exists.

To Top