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

Iterator that goes from start of the chain and reading one element at a time.
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
Length int
Source LibiadaCore.Core.AbstractChain
Step int

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

Метод Описание
Current ( ) : IBaseObject

Returns current value of iterator.

IteratorSimpleStart ( AbstractChain source, int step ) : System

Initializes a new instance of the IteratorSimpleStart class.

Next ( ) : bool

Moves iterator to the next position.

Reset ( ) : void

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

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

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

Returns current value of iterator.
/// Thrown if current position is invalid. ///
public Current ( ) : IBaseObject
Результат IBaseObject

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

Initializes a new instance of the IteratorSimpleStart class.
/// Thrown if one or more arguments are invalid. ///
public IteratorSimpleStart ( AbstractChain source, int step ) : System
source LibiadaCore.Core.AbstractChain /// Source chain. ///
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. IteratorBase.Next() method should be called.
public Reset ( ) : void
Результат void

Описание свойств

Length защищенное свойство

Length of subsequence.
protected int Length
Результат int

Source защищенное свойство

Source chain.
protected AbstractChain,LibiadaCore.Core Source
Результат LibiadaCore.Core.AbstractChain

Step защищенное свойство

Shift of iterator.
protected int Step
Результат int