C# Класс LibiadaCore.Misc.Iterators.IteratorEnd

Iterator that moves from the end of chain to its beginning.
Наследование: IteratorBase
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
IteratorEnd ( AbstractChain source, int length, int step ) : System

Initializes a new instance of the IteratorEnd class.

Next ( ) : bool

Moves iterator to the next position.

Reset ( ) : void

Returns iterator to the starting position. Before reading first value. IteratorEnd.Next() method should be called.

Описание методов

IteratorEnd() публичный Метод

Initializes a new instance of the IteratorEnd class.
/// Thrown if one or more arguments are invalid. ///
public IteratorEnd ( AbstractChain source, int length, int step ) : System
source LibiadaCore.Core.AbstractChain /// Source chain. ///
length int /// Length of subsequence. ///
step int /// Shift of iterator. ///
Результат System

Next() публичный Метод

Moves iterator to the next position.
public Next ( ) : bool
Результат bool

Reset() публичный Метод

Returns iterator to the starting position. Before reading first value. IteratorEnd.Next() method should be called.
public Reset ( ) : void
Результат void