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

Abstract chain iterator.
Наследование: IIterator
Показать файл Открыть проект

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

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

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

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

Returns current value of iterator.

IteratorBase ( AbstractChain source, int length, int step ) : System

Initializes a new instance of the IteratorBase 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 ( ) : AbstractChain
Результат LibiadaCore.Core.AbstractChain

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

Initializes a new instance of the IteratorBase class.
/// Thrown if one or more arguments are invalid. ///
public IteratorBase ( 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 abstract Next ( ) : bool
Результат bool

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

Returns iterator to the starting position. Before reading first value. IteratorBase.Next() method should be called.
public abstract 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