Joutsen v0.5.0+12-g5dd5f7e
Static Public Member Functions | List of all members
Joutsen.Progressable Class Reference

Extension methods to create enumerables that report progress of their iteration to the console. More...

Static Public Member Functions

static ProgressableEnumerable< ItemType > AsProgressable< ItemType > (this IList< ItemType > list)
 Creates an enumerable that reports iteration progress to the console by using the default progress painter. More...
 
static ProgressableEnumerable< ItemType > AsProgressable< ItemType > (this IList< ItemType > list, ConsoleProgressPainter painter)
 Creates an enumerable that reports iteration progress to the console by using a custom progress painter. More...
 
static ProgressableEnumerable< ItemType > AsProgressable< ItemType > (this IEnumerable< ItemType > enumerable, int numberOfItems)
 Creates an enumerable that reports iteration progress to the console by using the default progress painter. More...
 
static ProgressableEnumerable< ItemType > AsProgressable< ItemType > (this IEnumerable< ItemType > enumerable, int numberOfItems, ConsoleProgressPainter painter)
 Creates an enumerable that reports iteration progress to the console by using a custom progress painter. More...
 

Detailed Description

Extension methods to create enumerables that report progress of their iteration to the console.

Since
0.4.1

Member Function Documentation

◆ AsProgressable< ItemType >() [1/4]

static ProgressableEnumerable< ItemType > Joutsen.Progressable.AsProgressable< ItemType > ( this IEnumerable< ItemType >  enumerable,
int  numberOfItems 
)
static

Creates an enumerable that reports iteration progress to the console by using the default progress painter.

Parameters
enumerablethe enumerable
numerOfItemsthe number of items in the enumerable

◆ AsProgressable< ItemType >() [2/4]

static ProgressableEnumerable< ItemType > Joutsen.Progressable.AsProgressable< ItemType > ( this IEnumerable< ItemType >  enumerable,
int  numberOfItems,
ConsoleProgressPainter  painter 
)
static

Creates an enumerable that reports iteration progress to the console by using a custom progress painter.

Parameters
enumerablethe enumerable
numerOfItemsthe number of items in the enumerable
painterthe progress painter

◆ AsProgressable< ItemType >() [3/4]

static ProgressableEnumerable< ItemType > Joutsen.Progressable.AsProgressable< ItemType > ( this IList< ItemType >  list)
static

Creates an enumerable that reports iteration progress to the console by using the default progress painter.

◆ AsProgressable< ItemType >() [4/4]

static ProgressableEnumerable< ItemType > Joutsen.Progressable.AsProgressable< ItemType > ( this IList< ItemType >  list,
ConsoleProgressPainter  painter 
)
static

Creates an enumerable that reports iteration progress to the console by using a custom progress painter.

Parameters
listthe list
painterthe progress painter