TPIE

v1.1rc1-6-g0c97303
tpie::pipelining::serialization_passive_sorter< T, pred_t > Class Template Reference

Pipelined sorter with push input and pull output. More...

#include <tpie/pipelining/serialization_sort.h>

Public Types

typedef T item_type
 Type of items sorted. More...
 
typedef Traits::sorter_t sorter_t
 Type of the merge sort implementation used. More...
 
typedef Traits::sorterptr sorterptr
 Smart pointer to sorter_t. More...
 
typedef
serialization_bits::sort_pull_output_t
< Traits
output_t
 Type of pipe sorter output. More...
 

Public Member Functions

 serialization_passive_sorter (pred_t pred=pred_t())
 
pipe_end
< serialization_bits::passive_sorter_factory
< Traits > > 
input ()
 Get the input push node. More...
 
pullpipe_begin
< serialization_bits::passive_sorter_factory_2
< Traits > > 
output ()
 Get the output pull node. More...
 

Friends

class serialization_bits::passive_sorter_factory_2< Traits >
 

Detailed Description

template<typename T, typename pred_t = std::less<T>>
class tpie::pipelining::serialization_passive_sorter< 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().

Template Parameters
TThe type of item to sort
pred_tThe predicate (e.g. std::less<T>) indicating the predicate on which to order an item before another.

Definition at line 408 of file serialization_sort.h.

Member Typedef Documentation

template<typename T , typename pred_t = std::less<T>>
typedef T tpie::pipelining::serialization_passive_sorter< T, pred_t >::item_type

Type of items sorted.

Definition at line 478 of file serialization_sort.h.

template<typename T , typename pred_t = std::less<T>>
typedef serialization_bits::sort_pull_output_t<Traits> tpie::pipelining::serialization_passive_sorter< T, pred_t >::output_t

Type of pipe sorter output.

Definition at line 484 of file serialization_sort.h.

template<typename T , typename pred_t = std::less<T>>
typedef Traits::sorter_t tpie::pipelining::serialization_passive_sorter< T, pred_t >::sorter_t

Type of the merge sort implementation used.

Definition at line 480 of file serialization_sort.h.

template<typename T , typename pred_t = std::less<T>>
typedef Traits::sorterptr tpie::pipelining::serialization_passive_sorter< T, pred_t >::sorterptr

Smart pointer to sorter_t.

Definition at line 482 of file serialization_sort.h.

Member Function Documentation

template<typename T , typename pred_t = std::less<T>>
pipe_end<serialization_bits::passive_sorter_factory<Traits> > tpie::pipelining::serialization_passive_sorter< T, pred_t >::input ( )
inline

Get the input push node.

Definition at line 496 of file serialization_sort.h.

496  {
497  return serialization_bits::passive_sorter_factory<Traits>(m_output);
498  }
template<typename T , typename pred_t = std::less<T>>
pullpipe_begin<serialization_bits::passive_sorter_factory_2<Traits> > tpie::pipelining::serialization_passive_sorter< T, pred_t >::output ( )
inline

Get the output pull node.

Definition at line 503 of file serialization_sort.h.

503  {
504  return serialization_bits::passive_sorter_factory_2<Traits>(*this);
505  }

The documentation for this class was generated from the following file: