Thrill  0.1
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_
 current values in each input (exist flag, value) More...
 
LoserTreeType lt_
 
unsigned num_inputs_
 
ReaderIterator readers_
 
size_t remaining_inputs_
 

Member Typedef Documentation

◆ LoserTreeType

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

Definition at line 31 of file buffered_multiway_merge.hpp.

◆ Reader

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

Definition at line 28 of file buffered_multiway_merge.hpp.

Constructor & Destructor Documentation

◆ BufferedMultiwayMergeTree()

Member Function Documentation

◆ HasNext()

◆ Top()

◆ Update()

Member Data Documentation

◆ current_

◆ lt_

◆ num_inputs_

◆ readers_

◆ remaining_inputs_


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