Thrill  0.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
BufferedMultiwayMergeTree< ValueType, ReaderIterator, Comparator > Class Template Reference

Detailed Description

template<typename ValueType, typename ReaderIterator, typename Comparator>
class thrill::core::BufferedMultiwayMergeTree< ValueType, ReaderIterator, Comparator >

Definition at line 25 of file buffered_multiway_merge.hpp.

#include <buffered_multiway_merge.hpp>

Public Types

using LoserTreeType = tlx::LoserTree< false, ValueType, Comparator >
using Reader = typename std::iterator_traits< ReaderIterator >::value_type

Public Member Functions

 BufferedMultiwayMergeTree (ReaderIterator readers_begin, ReaderIterator readers_end, const Comparator &comp)
bool HasNext () const
const ValueType & Top ()
bool Update ()

Private Attributes

std::vector< std::pair< bool,
ValueType > > 
 current values in each input (exist flag, value) More...
LoserTreeType lt_
unsigned num_inputs_
ReaderIterator readers_
size_t remaining_inputs_

Member Typedef Documentation

using LoserTreeType = tlx::LoserTree< false, ValueType, Comparator>

Definition at line 31 of file buffered_multiway_merge.hpp.

using Reader = typename std::iterator_traits<ReaderIterator>::value_type

Definition at line 28 of file buffered_multiway_merge.hpp.

Constructor & Destructor Documentation

Member Function Documentation

Member Data Documentation

The documentation for this class was generated from the following file: