Merges sorted runs. More...
#include <sort_stream.h>


Public Types | |
| typedef sorted_runs_type::value_type | value_type |
| Standard stream typedef. | |
Public Member Functions | |
| runs_merger (const sorted_runs_type &r, value_cmp c, unsigned_type memory_to_use) | |
| Creates a runs merger object. | |
| bool | empty () const |
| Standard stream method. | |
| runs_merger & | operator++ () |
| Standard stream method. | |
| const value_type & | operator* () const |
| Standard stream method. | |
| const value_type * | operator-> () const |
| Standard stream method. | |
| virtual | ~runs_merger () |
| Destructor. | |
Merges sorted runs.
Template parameters:
RunsType_ type of the sorted runs, available as runs_creator::sorted_runs_type ,Cmp_ type of comparison object used for mergingAllocStr_ allocation strategy used to allocate the blocks for storing intermediate results if several merge passes are required | typedef sorted_runs_type::value_type stream::runs_merger< RunsType_, Cmp_, AllocStr_ >::value_type |
Standard stream typedef.
| stream::runs_merger< RunsType_, Cmp_, AllocStr_ >::runs_merger | ( | const sorted_runs_type & | r, | |
| value_cmp | c, | |||
| unsigned_type | memory_to_use | |||
| ) | [inline] |
Creates a runs merger object.
| r | input sorted runs object | |
| c | comparison object | |
| memory_to_use | amount of memory available for the merger in bytes |
| virtual stream::runs_merger< RunsType_, Cmp_, AllocStr_ >::~runs_merger | ( | ) | [inline, virtual] |
Destructor.
| bool stream::runs_merger< RunsType_, Cmp_, AllocStr_ >::empty | ( | ) | const [inline] |
Standard stream method.
Referenced by stream::runs_merger< sorted_runs_type, Cmp_, AllocStr_ >::operator*(), stream::runs_merger< sorted_runs_type, Cmp_, AllocStr_ >::operator++(), stream::runs_merger< sorted_runs_type, Cmp_, AllocStr_ >::operator->(), and stream::runs_merger< sorted_runs_type, Cmp_, AllocStr_ >::runs_merger().
| const value_type& stream::runs_merger< RunsType_, Cmp_, AllocStr_ >::operator* | ( | ) | const [inline] |
Standard stream method.
| runs_merger& stream::runs_merger< RunsType_, Cmp_, AllocStr_ >::operator++ | ( | ) | [inline] |
Standard stream method.
| const value_type* stream::runs_merger< RunsType_, Cmp_, AllocStr_ >::operator-> | ( | ) | const [inline] |
Standard stream method.
1.7.1