Thrill
0.1
|
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_ |
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.
|
inline |
Definition at line 33 of file buffered_multiway_merge.hpp.
References BufferedMultiwayMergeTree< ValueType, ReaderIterator, Comparator >::current_, BufferedMultiwayMergeTree< ValueType, ReaderIterator, Comparator >::HasNext(), BufferedMultiwayMergeTree< ValueType, ReaderIterator, Comparator >::lt_, BufferedMultiwayMergeTree< ValueType, ReaderIterator, Comparator >::num_inputs_, BufferedMultiwayMergeTree< ValueType, ReaderIterator, Comparator >::readers_, BufferedMultiwayMergeTree< ValueType, ReaderIterator, Comparator >::remaining_inputs_, and TLX_LIKELY.
|
inline |
Definition at line 59 of file buffered_multiway_merge.hpp.
References BufferedMultiwayMergeTree< ValueType, ReaderIterator, Comparator >::remaining_inputs_.
Referenced by BufferedMultiwayMergeTree< ValueType, ReaderIterator, Comparator >::BufferedMultiwayMergeTree(), and BufferedMultiwayMergeTree< ValueType, ReaderIterator, Comparator >::Update().
|
inline |
Definition at line 63 of file buffered_multiway_merge.hpp.
References BufferedMultiwayMergeTree< ValueType, ReaderIterator, Comparator >::current_, and BufferedMultiwayMergeTree< ValueType, ReaderIterator, Comparator >::lt_.
|
inline |
Definition at line 67 of file buffered_multiway_merge.hpp.
References BufferedMultiwayMergeTree< ValueType, ReaderIterator, Comparator >::current_, BufferedMultiwayMergeTree< ValueType, ReaderIterator, Comparator >::HasNext(), BufferedMultiwayMergeTree< ValueType, ReaderIterator, Comparator >::lt_, BufferedMultiwayMergeTree< ValueType, ReaderIterator, Comparator >::readers_, BufferedMultiwayMergeTree< ValueType, ReaderIterator, Comparator >::remaining_inputs_, and TLX_LIKELY.
|
private |
current values in each input (exist flag, value)
Definition at line 92 of file buffered_multiway_merge.hpp.
Referenced by BufferedMultiwayMergeTree< ValueType, ReaderIterator, Comparator >::BufferedMultiwayMergeTree(), BufferedMultiwayMergeTree< ValueType, ReaderIterator, Comparator >::Top(), and BufferedMultiwayMergeTree< ValueType, ReaderIterator, Comparator >::Update().
|
private |
Definition at line 90 of file buffered_multiway_merge.hpp.
Referenced by BufferedMultiwayMergeTree< ValueType, ReaderIterator, Comparator >::BufferedMultiwayMergeTree(), BufferedMultiwayMergeTree< ValueType, ReaderIterator, Comparator >::Top(), and BufferedMultiwayMergeTree< ValueType, ReaderIterator, Comparator >::Update().
|
private |
Definition at line 87 of file buffered_multiway_merge.hpp.
Referenced by BufferedMultiwayMergeTree< ValueType, ReaderIterator, Comparator >::BufferedMultiwayMergeTree().
|
private |
Definition at line 86 of file buffered_multiway_merge.hpp.
Referenced by BufferedMultiwayMergeTree< ValueType, ReaderIterator, Comparator >::BufferedMultiwayMergeTree(), and BufferedMultiwayMergeTree< ValueType, ReaderIterator, Comparator >::Update().
|
private |
Definition at line 88 of file buffered_multiway_merge.hpp.
Referenced by BufferedMultiwayMergeTree< ValueType, ReaderIterator, Comparator >::BufferedMultiwayMergeTree(), BufferedMultiwayMergeTree< ValueType, ReaderIterator, Comparator >::HasNext(), and BufferedMultiwayMergeTree< ValueType, ReaderIterator, Comparator >::Update().