PHP Class Pinq\Iterators\Generators\GeneratorScheme

Compatible with >= PHP 5.5.0.
Author: Elliot Levin ([email protected])
Inheritance: extends Pinq\Iterators\Common\IteratorScheme
Mostrar archivo Open project: timetoogo/pinq Class Usage Examples

Public Methods

Method Description
adapter ( Traversable $iterator ) : Pinq\Iterators\Generators\IGenerator
arrayCompatibleIterator ( Traversable $iterator )
arrayIterator ( array $array )
compatibleWith ( $phpVersion )
createOrderedMap ( Traversable $iterator = null )
createSet ( Traversable $iterator = null )
emptyIterator ( )
filterIterator ( Traversable $iterator, callable $predicate )
groupJoinIterator ( Traversable $outerIterator, Traversable $innerIterator, callable $traversableFactory )
groupedIterator ( Traversable $iterator, callable $groupKeyFunction, callable $traversableFactory )
joinIterator ( Traversable $outerIterator, Traversable $innerIterator )
orderedIterator ( Traversable $iterator, callable $function, $isAscending )
projectionIterator ( Traversable $iterator, callable $keyProjectionFunction = null, callable $valueProjectionFunction = null )
rangeIterator ( Traversable $iterator, $start, $amount )
reindexerIterator ( Traversable $iterator )
toArray ( Traversable $iterator )
walk ( Traversable $iterator, callable $function )

Protected Methods

Method Description
adapterIterator ( Traversable $iterator )
flattenedIteratorsIterator ( Traversable $iteratorsIterator )
setOperationIterator ( Traversable $iterator, Pinq\Iterators\Common\SetOperations\ISetFilter $setFilter )

Method Details

adapter() public static method

public static adapter ( Traversable $iterator ) : Pinq\Iterators\Generators\IGenerator
$iterator Traversable
return Pinq\Iterators\Generators\IGenerator

adapterIterator() protected method

protected adapterIterator ( Traversable $iterator )
$iterator Traversable

arrayCompatibleIterator() public method

public arrayCompatibleIterator ( Traversable $iterator )
$iterator Traversable

arrayIterator() public method

public arrayIterator ( array $array )
$array array

compatibleWith() public static method

public static compatibleWith ( $phpVersion )

createOrderedMap() public method

public createOrderedMap ( Traversable $iterator = null )
$iterator Traversable

createSet() public method

public createSet ( Traversable $iterator = null )
$iterator Traversable

emptyIterator() public method

public emptyIterator ( )

filterIterator() public method

public filterIterator ( Traversable $iterator, callable $predicate )
$iterator Traversable
$predicate callable

flattenedIteratorsIterator() protected method

protected flattenedIteratorsIterator ( Traversable $iteratorsIterator )
$iteratorsIterator Traversable

groupJoinIterator() public method

public groupJoinIterator ( Traversable $outerIterator, Traversable $innerIterator, callable $traversableFactory )
$outerIterator Traversable
$innerIterator Traversable
$traversableFactory callable

groupedIterator() public method

public groupedIterator ( Traversable $iterator, callable $groupKeyFunction, callable $traversableFactory )
$iterator Traversable
$groupKeyFunction callable
$traversableFactory callable

joinIterator() public method

public joinIterator ( Traversable $outerIterator, Traversable $innerIterator )
$outerIterator Traversable
$innerIterator Traversable

orderedIterator() public method

public orderedIterator ( Traversable $iterator, callable $function, $isAscending )
$iterator Traversable
$function callable

projectionIterator() public method

public projectionIterator ( Traversable $iterator, callable $keyProjectionFunction = null, callable $valueProjectionFunction = null )
$iterator Traversable
$keyProjectionFunction callable
$valueProjectionFunction callable

rangeIterator() public method

public rangeIterator ( Traversable $iterator, $start, $amount )
$iterator Traversable

reindexerIterator() public method

public reindexerIterator ( Traversable $iterator )
$iterator Traversable

setOperationIterator() protected method

protected setOperationIterator ( Traversable $iterator, Pinq\Iterators\Common\SetOperations\ISetFilter $setFilter )
$iterator Traversable
$setFilter Pinq\Iterators\Common\SetOperations\ISetFilter

toArray() public method

public toArray ( Traversable $iterator )
$iterator Traversable

walk() public method

public walk ( Traversable $iterator, callable $function )
$iterator Traversable
$function callable