|
STLdoc
STLdocumentation
|
Stable _LoserTree variant. More...
#include <parallel/losertree.h>
Public Member Functions | |
| _LoserTree (unsigned int __k, _Compare __comp) | |
| unsigned int | __init_winner (unsigned int __root) |
| void | __init () |
| void | __delete_min_insert (_Tp __key, bool __sup) |
| Delete the smallest element and insert a new element from the previously smallest element's sequence. More... | |
Public Member Functions inherited from __gnu_parallel::_LoserTreeBase< _Tp, _Compare > | |
| _LoserTreeBase (unsigned int __k, _Compare __comp) | |
| The constructor. More... | |
| ~_LoserTreeBase () | |
| The destructor. More... | |
| void | __insert_start (const _Tp &__key, int __source, bool __sup) |
| Initializes the sequence "_M_source" with the element "__key". More... | |
| int | __get_min_source () |
Private Types | |
| typedef _LoserTreeBase< _Tp, _Compare > | _Base |
Additional Inherited Members | |
Protected Attributes inherited from __gnu_parallel::_LoserTreeBase< _Tp, _Compare > | |
| unsigned int | _M_ik |
| unsigned int | _M_k |
| unsigned int | _M_offset |
| unsigned int | _M_log_k |
| _Loser * | _M_losers |
| _LoserTree __elements. More... | |
| _Compare | _M_comp |
| _Compare to use. More... | |
| bool | _M_first_insert |
| State flag that determines whether the _LoserTree is empty. More... | |
Stable _LoserTree variant.
Provides the stable implementations of insert_start, __init_winner, __init and __delete_min_insert.
Unstable variant is done using partial specialisation below.
|
private |
|
inline |
|
inline |
Delete the smallest element and insert a new element from the previously smallest element's sequence.
This implementation is stable.
|
inline |
|
inline |
1.8.6