Joutsen  v0.4.1
Classes | Public Member Functions | Protected Attributes | List of all members
Joutsen.System.ProgressableEnumerable< ItemType > Class Template Reference

A class that can inform registered listeners about the percentage of iterated items of an enumerable. More...

Public Member Functions

 ProgressableEnumerable (IEnumerable< ItemType > enumerable, int numberOfElements)
 Creates a new instance for an existing enumerable. More...
 
IEnumerator< ItemType > GetEnumerator ()
 Fetches the enumerator. More...
 
- Public Member Functions inherited from Joutsen.System.Progress
 Progress (double total)
 Creates a new instance for a predefined total value. More...
 
virtual void Update (double completed)
 Advances the progress to the value represented by completed. More...
 
virtual void Reset ()
 Resets the progress state for a restart. More...
 
void Dispose ()
 Frees bound resources. More...
 

Protected Attributes

IEnumerable< ItemType > enumerable
 
- Protected Attributes inherited from Joutsen.System.Progress
double total
 The total value that the process can reach. More...
 
double completed
 The completed amount or current progress. More...
 
String description
 The description of progress. More...
 

Additional Inherited Members

- Protected Member Functions inherited from Joutsen.System.Progress
void FireProgressChanged (double completed, double total, double progress)
 Informs the registered listeners about a change in progress. More...
 
void FireDescriptionChanged (string description)
 Informs the registered listeners about a change in the description. More...
 
- Properties inherited from Joutsen.System.Progress
String Description [get, set]
 The description of progress. More...
 
- Events inherited from Joutsen.System.Progress
Action< double, double, double > ProgressChanged
 An event that informs listeners about a change in the progress. More...
 
Action< String > DescriptionChanged
 An event that informs listeners about a change in the description. More...
 

Detailed Description

A class that can inform registered listeners about the percentage of iterated items of an enumerable.

Since
0.4.1

Constructor & Destructor Documentation

◆ ProgressableEnumerable()

Joutsen.System.ProgressableEnumerable< ItemType >.ProgressableEnumerable ( IEnumerable< ItemType >  enumerable,
int  numberOfElements 
)

Creates a new instance for an existing enumerable.

Parameters
enumerablethe enumerable
numerOfElementsthe total number of elements in the enumerable

Member Function Documentation

◆ GetEnumerator()

IEnumerator<ItemType> Joutsen.System.ProgressableEnumerable< ItemType >.GetEnumerator ( )

Fetches the enumerator.

Member Data Documentation

◆ enumerable

IEnumerable<ItemType> Joutsen.System.ProgressableEnumerable< ItemType >.enumerable
protected