15 #ifndef STXXL_STREAM_SORTED_RUNS_HEADER
16 #define STXXL_STREAM_SORTED_RUNS_HEADER
36 template <
typename TriggerEntryType,
typename CompareType>
40 typedef typename trigger_entry_type::block_type
block_type;
43 typedef std::vector<trigger_entry_type>
run_type;
54 std::vector<run_type>
runs;
90 runs_sizes.push_back(run_size);
99 std::swap(runs, b.
runs);
127 #endif // !STXXL_STREAM_SORTED_RUNS_HEADER
void swap(sorted_runs &b)
Swap contents with another object. This is used by the recursive merger to swap in a sorted_runs obje...
trigger_entry_iterator< Iterator > make_bid_iterator(Iterator iter)
All sorted runs of a sort operation.
std::vector< run_type > runs
vector of runs (containing vectors of block ids)
void deallocate_blocks()
Deallocates the blocks which the runs occupy.
small_run_type small_run
Small sort optimization:
stxxl::external_size_type size_type
void delete_blocks(const BIDIteratorClass &bidbegin, const BIDIteratorClass &bidend)
Deallocates blocks.
void clear()
Clear the internal state of the object: release all runs and reset.
Provides reference counting abilities for use with counting_ptr.
trigger_entry_type::block_type block_type
std::vector< size_type > runs_sizes
vector of the number of elements in each individual run
#define STXXL_BEGIN_NAMESPACE
std::vector< run_type >::size_type run_index_type
void add_run(const run_type &run, size_type run_size)
Add a new run with given number of elements.
block_type::value_type value_type
may differ from trigger_entry_type::value_type
std::vector< value_type > small_run_type
uint64 external_size_type
choose_int_types< my_pointer_size >::unsigned_type unsigned_type
TriggerEntryType trigger_entry_type
std::vector< trigger_entry_type > run_type
size_type elements
total number of elements in all runs
#define STXXL_END_NAMESPACE