TPIE

2362a60
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...
 
typedef pipe_end
< serialization_bits::passive_sorter_factory_input
< Traits > > 
input_pipe_t
 
typedef pullpipe_begin
< serialization_bits::passive_sorter_factory_output
< Traits > > 
output_pipe_t
 

Public Member Functions

 serialization_passive_sorter (pred_t pred=pred_t())
 
 serialization_passive_sorter (const serialization_passive_sorter &)=delete
 
serialization_passive_sorteroperator= (const serialization_passive_sorter &)=delete
 
 serialization_passive_sorter (serialization_passive_sorter &&)=default
 
serialization_passive_sorteroperator= (serialization_passive_sorter &&)=default
 
input_pipe_t input ()
 Get the input push node. More...
 
output_pipe_t output ()
 Get the output pull node. More...
 

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 440 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 516 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 522 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 518 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 520 of file serialization_sort.h.

Member Function Documentation

template<typename T , typename pred_t = std::less<T>>
input_pipe_t tpie::pipelining::serialization_passive_sorter< T, pred_t >::input ( )
inline

Get the input push node.

Definition at line 541 of file serialization_sort.h.

541  {
542  assert(m_sorter_input);
543  return input_pipe_t(std::move(m_sorter_input), m_calc_token);
544  }
template<typename T , typename pred_t = std::less<T>>
output_pipe_t tpie::pipelining::serialization_passive_sorter< T, pred_t >::output ( )
inline

Get the output pull node.

Definition at line 549 of file serialization_sort.h.

549  {
550  assert(m_sorter_output);
551  return output_pipe_t(std::move(m_sorter_output), m_calc_token);
552  }

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