NodesIterator

abstract class NodesIterator(size: Int) : PrimitiveIterator.OfInt

Iterator over the graph nodes on a certain level. Iterator also provides the size – the total number of nodes to be iterated over. The nodes are NOT guaranteed to be presented in any particular order.

Inheritors

Constructors

Link copied to clipboard
constructor(size: Int)

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
abstract fun consume(dest: IntArray): Int

Consume integers from the iterator and place them into the dest array.

Link copied to clipboard
open override fun forEachRemaining(action: (Int) -> Unit)

{@inheritDoc}

Link copied to clipboard
expect abstract operator fun hasNext(): Boolean
Link copied to clipboard
open operator override fun next(): Int

{@inheritDoc}

Link copied to clipboard
abstract fun nextInt(): Int

Returns the next int element in the iteration.

Link copied to clipboard
expect abstract fun remove()
Link copied to clipboard
fun size(): Int

The number of elements in this iterator *