Skip to main content

flywave-mapview.ringbuffer.iterator

Home > @flywave/flywave-mapview > RingBuffer > Iterator

RingBuffer.Iterator class

A local class for RingBuffer<T>

Signature:

class Iterator&lt;T&gt; 

Constructors

Constructor

Modifiers

Description

(constructor)(m_buffer, m_index)

Creates an iterator for the ring buffer.

Properties

Property

Modifiers

Type

Description

value

readonly

T

Gets the iterator's current value. This function does not fail even if an overrun occurs. To detect an overrun, watch the result for [[next]].

Methods

Method

Modifiers

Description

next()

Advances the iterator to the next element.