Template Class FlatLoserTree
Defined in File MultiwayMerge.h
Nested Relationships
Nested Types
Class Documentation
-
template<class T, class C = std::less<>>
class FlatLoserTree the tree of losers of k sources with the keys in its nodes, the winner the smallest key by less, the lower source on equal keys
Public Functions
-
explicit FlatLoserTree(std::size_t k, C less = C())
the tree of k sources, all exhausted
- Pre:
k >= 1 and k < 2^31
-
std::size_t sources(void) const
k, the sources
-
void start(std::size_t s, const T &x)
before build(): the source s starts with the key x, whose address is kept if T is large
- Pre:
s < k
-
bool empty(void) const
all the sources exhausted
-
explicit FlatLoserTree(std::size_t k, C less = C())