STXXL
1.4.0
|
Forms sorted runs of data from a stream.
Input_ | type of the input stream |
CompareType_ | type of omparison 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 349 of file sort_stream.h.
Public Types | |
typedef base::block_type | block_type |
typedef base::cmp_type | cmp_type |
typedef base::sorted_runs_data_type | sorted_runs_data_type |
typedef base::sorted_runs_type | sorted_runs_type |
typedef base::value_type | value_type |
Public Types inherited from stxxl::stream::basic_runs_creator< Input_, CompareType_, BlockSize_, AllocStr_ > | |
typedef AllocStr_ | allocation_strategy_type |
typedef typed_block < BlockSize_, value_type > | block_type |
typedef CompareType_ | cmp_type |
typedef Input_ | input_type |
typedef sorted_runs_data_type::run_type | run_type |
typedef sorted_runs < trigger_entry_type, cmp_type > | sorted_runs_data_type |
typedef counting_ptr < sorted_runs_data_type > | sorted_runs_type |
typedef sort_helper::trigger_entry < block_type > | trigger_entry_type |
typedef Input_::value_type | value_type |
Public Member Functions | |
runs_creator (Input_ &input, CompareType_ cmp, unsigned_type memory_to_use) | |
Creates the object. More... | |
Public Member Functions inherited from stxxl::stream::basic_runs_creator< Input_, CompareType_, BlockSize_, AllocStr_ > | |
basic_runs_creator (Input_ &input, CompareType_ cmp, unsigned_type memory_to_use) | |
Create the object. More... | |
sorted_runs_type & | result () |
Returns the sorted runs object. More... | |
Private Types | |
typedef basic_runs_creator < Input_, CompareType_, BlockSize_, AllocStr_ > | base |
Additional Inherited Members | |
Static Public Attributes inherited from stxxl::stream::basic_runs_creator< Input_, CompareType_, BlockSize_, AllocStr_ > | |
static const unsigned | block_size = BlockSize_ |
Protected Attributes inherited from stxxl::stream::basic_runs_creator< Input_, CompareType_, BlockSize_, AllocStr_ > | |
CompareType_ | m_cmp |
reference to the input stream More... | |
Input_ & | m_input |
|
private |
Definition at line 352 of file sort_stream.h.
typedef base::block_type stxxl::stream::runs_creator< Input_, CompareType_, BlockSize_, AllocStr_ >::block_type |
Definition at line 357 of file sort_stream.h.
typedef base::cmp_type stxxl::stream::runs_creator< Input_, CompareType_, BlockSize_, AllocStr_ >::cmp_type |
Definition at line 355 of file sort_stream.h.
typedef base::sorted_runs_data_type stxxl::stream::runs_creator< Input_, CompareType_, BlockSize_, AllocStr_ >::sorted_runs_data_type |
Definition at line 358 of file sort_stream.h.
typedef base::sorted_runs_type stxxl::stream::runs_creator< Input_, CompareType_, BlockSize_, AllocStr_ >::sorted_runs_type |
Definition at line 359 of file sort_stream.h.
typedef base::value_type stxxl::stream::runs_creator< Input_, CompareType_, BlockSize_, AllocStr_ >::value_type |
Definition at line 356 of file sort_stream.h.
|
inline |
Creates the object.
input | input stream |
cmp | comparator object |
memory_to_use | memory amount that is allowed to used by the sorter in bytes |
Definition at line 366 of file sort_stream.h.