Pipelined sorter with push input and pull output. More...
#include <tpie/pipelining/sort.h>
Public Types | |
typedef T | item_type |
Type of items sorted. More... | |
typedef merge_sorter < item_type, true, pred_t > | sorter_t |
Type of the merge sort implementation used. More... | |
typedef sorter_t::ptr | sorterptr |
Smart pointer to sorter_t. More... | |
typedef bits::sort_pull_output_t < item_type, pred_t > | output_t |
Type of pipe sorter output. More... | |
Public Member Functions | |
passive_sorter (pred_t pred=pred_t()) | |
pipe_end < bits::passive_sorter_factory < item_type, pred_t > > | input () |
Get the input push node. More... | |
pullpipe_begin < bits::passive_sorter_factory_2 < item_type, pred_t > > | output () |
Get the output pull node. More... | |
Friends | |
class | bits::passive_sorter_factory_2< T, pred_t > |
Pipelined sorter with push input and pull output.
Get the input pipe with input()
and the output pullpipe with output()
. input() must not be called after output().
T | The type of item to sort |
pred_t | The predicate (e.g. std::less<T>) indicating the predicate on which to order an item before another. |
typedef T tpie::pipelining::passive_sorter< T, pred_t >::item_type |
typedef bits::sort_pull_output_t<item_type, pred_t> tpie::pipelining::passive_sorter< T, pred_t >::output_t |
typedef merge_sorter<item_type, true, pred_t> tpie::pipelining::passive_sorter< T, pred_t >::sorter_t |
typedef sorter_t::ptr tpie::pipelining::passive_sorter< T, pred_t >::sorterptr |
|
inline |
|
inline |