|
Stxxl
1.4.0
|
Produces sorted stream from input stream. More...
#include <sort_stream.h>


Public Types | |
| typedef Input_::value_type | value_type |
| Standard stream typedef. | |
Public Member Functions | |
| sort (Input_ &in, CompareType_ c, unsigned_type memory_to_use) | |
| Creates the object. | |
| sort (Input_ &in, CompareType_ c, unsigned_type m_memory_to_userc, unsigned_type m_memory_to_use) | |
| Creates the object. | |
| bool | empty () const |
| Standard stream method. | |
| const value_type & | operator* () const |
| Standard stream method. | |
| const value_type * | operator-> () const |
| sort & | operator++ () |
| Standard stream method. | |
Private Types | |
| typedef runs_creator_type::sorted_runs_type | sorted_runs_type |
| typedef runs_merger < sorted_runs_type, CompareType_, AllocStr_ > | runs_merger_type |
Private Attributes | |
| runs_creator_type | creator |
| runs_merger_type | merger |
Produces sorted stream from input stream.
| Input_ | type of the input stream |
| 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 |
runs_creator and runs_merger . Definition at line 1507 of file sort_stream.h.
typedef runs_merger<sorted_runs_type, CompareType_, AllocStr_> stxxl::stream::sort< Input_, CompareType_, BlockSize_, AllocStr_, runs_creator_type >::runs_merger_type [private] |
Definition at line 1510 of file sort_stream.h.
typedef runs_creator_type::sorted_runs_type stxxl::stream::sort< Input_, CompareType_, BlockSize_, AllocStr_, runs_creator_type >::sorted_runs_type [private] |
Definition at line 1509 of file sort_stream.h.
| typedef Input_::value_type stxxl::stream::sort< Input_, CompareType_, BlockSize_, AllocStr_, runs_creator_type >::value_type |
Standard stream typedef.
Definition at line 1517 of file sort_stream.h.
| stxxl::stream::sort< Input_, CompareType_, BlockSize_, AllocStr_, runs_creator_type >::sort | ( | Input_ & | in, |
| CompareType_ | c, | ||
| unsigned_type | memory_to_use | ||
| ) | [inline] |
Creates the object.
| in | input stream |
| c | comparator object |
| memory_to_use | memory amount that is allowed to used by the sorter in bytes |
Definition at line 1523 of file sort_stream.h.
References stxxl::sort_helper::verify_sentinel_strict_weak_ordering().
| stxxl::stream::sort< Input_, CompareType_, BlockSize_, AllocStr_, runs_creator_type >::sort | ( | Input_ & | in, |
| CompareType_ | c, | ||
| unsigned_type | m_memory_to_userc, | ||
| unsigned_type | m_memory_to_use | ||
| ) | [inline] |
Creates the object.
| in | input stream |
| c | comparator object |
| m_memory_to_userc | memory amount that is allowed to used by the runs creator in bytes |
| m_memory_to_use | memory amount that is allowed to used by the merger in bytes |
Definition at line 1535 of file sort_stream.h.
References stxxl::sort_helper::verify_sentinel_strict_weak_ordering().
| bool stxxl::stream::sort< Input_, CompareType_, BlockSize_, AllocStr_, runs_creator_type >::empty | ( | ) | const [inline] |
Standard stream method.
Definition at line 1544 of file sort_stream.h.
| const value_type& stxxl::stream::sort< Input_, CompareType_, BlockSize_, AllocStr_, runs_creator_type >::operator* | ( | ) | const [inline] |
Standard stream method.
Definition at line 1550 of file sort_stream.h.
| sort& stxxl::stream::sort< Input_, CompareType_, BlockSize_, AllocStr_, runs_creator_type >::operator++ | ( | ) | [inline] |
Standard stream method.
Definition at line 1563 of file sort_stream.h.
| const value_type* stxxl::stream::sort< Input_, CompareType_, BlockSize_, AllocStr_, runs_creator_type >::operator-> | ( | ) | const [inline] |
Definition at line 1556 of file sort_stream.h.
runs_creator_type stxxl::stream::sort< Input_, CompareType_, BlockSize_, AllocStr_, runs_creator_type >::creator [private] |
Definition at line 1512 of file sort_stream.h.
runs_merger_type stxxl::stream::sort< Input_, CompareType_, BlockSize_, AllocStr_, runs_creator_type >::merger [private] |
Definition at line 1513 of file sort_stream.h.
1.7.6.1