Stxxl
1.4.0
|
Forms sorted runs of data taking elements in sorted order (element by element) More...
#include <sort_stream.h>
Forms sorted runs of data taking elements in sorted order (element by element)
A specialization of runs_creator
that allows to create sorted runs data structure usable for runs_merger
from sequences of elements in sorted order.
ValueType_ | type of values (parameter for from_sorted_sequences strategy) |
CompareType_ | type of comparison object used for sorting the runs |
BlockSize_ | size of blocks used to store the runs |
AllocStr_ | functor that defines allocation strategy for the runs |
Definition at line 707 of file sort_stream.h.
typedef AllocStr_ stxxl::stream::runs_creator< from_sorted_sequences< ValueType_ >, CompareType_, BlockSize_, AllocStr_ >::alloc_strategy_type |
Definition at line 718 of file sort_stream.h.
typedef typed_block<BlockSize_, value_type> stxxl::stream::runs_creator< from_sorted_sequences< ValueType_ >, CompareType_, BlockSize_, AllocStr_ >::block_type |
Definition at line 716 of file sort_stream.h.
typedef CompareType_ stxxl::stream::runs_creator< from_sorted_sequences< ValueType_ >, CompareType_, BlockSize_, AllocStr_ >::cmp_type |
Definition at line 721 of file sort_stream.h.
typedef sorted_runs_type stxxl::stream::runs_creator< from_sorted_sequences< ValueType_ >, CompareType_, BlockSize_, AllocStr_ >::result_type |
Definition at line 724 of file sort_stream.h.
typedef sorted_runs_data_type::run_type stxxl::stream::runs_creator< from_sorted_sequences< ValueType_ >, CompareType_, BlockSize_, AllocStr_ >::run_type [private] |
Definition at line 727 of file sort_stream.h.
typedef sorted_runs<trigger_entry_type,cmp_type> stxxl::stream::runs_creator< from_sorted_sequences< ValueType_ >, CompareType_, BlockSize_, AllocStr_ >::sorted_runs_data_type |
Definition at line 722 of file sort_stream.h.
typedef counting_ptr<sorted_runs_data_type> stxxl::stream::runs_creator< from_sorted_sequences< ValueType_ >, CompareType_, BlockSize_, AllocStr_ >::sorted_runs_type |
Definition at line 723 of file sort_stream.h.
typedef sort_helper::trigger_entry<block_type> stxxl::stream::runs_creator< from_sorted_sequences< ValueType_ >, CompareType_, BlockSize_, AllocStr_ >::trigger_entry_type |
Definition at line 717 of file sort_stream.h.
typedef ValueType_ stxxl::stream::runs_creator< from_sorted_sequences< ValueType_ >, CompareType_, BlockSize_, AllocStr_ >::value_type |
Definition at line 715 of file sort_stream.h.
stxxl::stream::runs_creator< from_sorted_sequences< ValueType_ >, CompareType_, BlockSize_, AllocStr_ >::runs_creator | ( | CompareType_ | c, |
unsigned_type | memory_to_use | ||
) | [inline] |
Creates the object.
c | comparator object |
memory_to_use | memory amount that is allowed to used by the sorter in bytes. Recommended value: 2 * block_size * D |
Definition at line 745 of file sort_stream.h.
References stxxl::sort_helper::verify_sentinel_strict_weak_ordering().
void stxxl::stream::runs_creator< from_sorted_sequences< ValueType_ >, CompareType_, BlockSize_, AllocStr_ >::finish | ( | ) | [inline] |
Finishes current run and begins new one.
Definition at line 797 of file sort_stream.h.
References stxxl::make_bid_iterator(), and stxxl::block_manager::new_blocks().
void stxxl::stream::runs_creator< from_sorted_sequences< ValueType_ >, CompareType_, BlockSize_, AllocStr_ >::push | ( | const value_type & | val | ) | [inline] |
Adds new element to the current run.
val | value to be added to the current run |
Definition at line 764 of file sort_stream.h.
References stxxl::make_bid_iterator(), and stxxl::block_manager::new_blocks().
sorted_runs_type& stxxl::stream::runs_creator< from_sorted_sequences< ValueType_ >, CompareType_, BlockSize_, AllocStr_ >::result | ( | ) | [inline] |
Returns the sorted runs object.
runs_merger
object as input Definition at line 840 of file sort_stream.h.
alloc_strategy_type stxxl::stream::runs_creator< from_sorted_sequences< ValueType_ >, CompareType_, BlockSize_, AllocStr_ >::alloc_strategy [private] |
Definition at line 738 of file sort_stream.h.
CompareType_ stxxl::stream::runs_creator< from_sorted_sequences< ValueType_ >, CompareType_, BlockSize_, AllocStr_ >::cmp [private] |
Definition at line 729 of file sort_stream.h.
block_type* stxxl::stream::runs_creator< from_sorted_sequences< ValueType_ >, CompareType_, BlockSize_, AllocStr_ >::cur_block [private] |
Definition at line 734 of file sort_stream.h.
unsigned_type stxxl::stream::runs_creator< from_sorted_sequences< ValueType_ >, CompareType_, BlockSize_, AllocStr_ >::iblock [private] |
Definition at line 736 of file sort_stream.h.
unsigned_type stxxl::stream::runs_creator< from_sorted_sequences< ValueType_ >, CompareType_, BlockSize_, AllocStr_ >::irun [private] |
Definition at line 737 of file sort_stream.h.
unsigned_type stxxl::stream::runs_creator< from_sorted_sequences< ValueType_ >, CompareType_, BlockSize_, AllocStr_ >::m_ [private] |
Definition at line 732 of file sort_stream.h.
unsigned_type stxxl::stream::runs_creator< from_sorted_sequences< ValueType_ >, CompareType_, BlockSize_, AllocStr_ >::offset [private] |
Definition at line 735 of file sort_stream.h.
sorted_runs_type stxxl::stream::runs_creator< from_sorted_sequences< ValueType_ >, CompareType_, BlockSize_, AllocStr_ >::result_ [private] |
Definition at line 731 of file sort_stream.h.
buffered_writer<block_type> stxxl::stream::runs_creator< from_sorted_sequences< ValueType_ >, CompareType_, BlockSize_, AllocStr_ >::writer [private] |
Definition at line 733 of file sort_stream.h.