C# Class LibiadaCore.Misc.Iterators.IteratorEnd

Iterator that moves from the end of chain to its beginning.
Inheritance: IteratorBase
Show file Open project: intervals-mining-lab/libiada-core Class Usage Examples

Public Methods

Method Description
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.

Method Details

IteratorEnd() public method

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. ///
return System

Next() public method

Moves iterator to the next position.
public Next ( ) : bool
return bool

Reset() public method

Returns iterator to the starting position. Before reading first value. IteratorEnd.Next() method should be called.
public Reset ( ) : void
return void