A linear search strategy for looking up keys in b-tree nodes.
More...
#include <BTree.h>
|
| | linear_search ()=default |
| | Required user-defined default constructor. More...
|
| |
| template<typename Key , typename Iter , typename Comp > |
| Iter | lower_bound (const Key &k, Iter a, Iter b, Comp &comp) const |
| | Obtains a reference to the first element in the given range that is not less than the given key. More...
|
| |
| template<typename Key , typename Iter , typename Comp > |
| Iter | operator() (const Key &k, Iter a, Iter b, Comp &comp) const |
| | Obtains an iterator referencing an element equivalent to the given key in the given range. More...
|
| |
| template<typename Key , typename Iter , typename Comp > |
| Iter | upper_bound (const Key &k, Iter a, Iter b, Comp &comp) const |
| | Obtains a reference to the first element in the given range that such that the given key is less than the referenced element. More...
|
| |
A linear search strategy for looking up keys in b-tree nodes.
Definition at line 87 of file BTree.h.
◆ linear_search()
| souffle::detail::linear_search::linear_search |
( |
| ) |
|
|
default |
Required user-defined default constructor.
◆ lower_bound()
template<typename Key , typename Iter , typename Comp >
| Iter souffle::detail::linear_search::lower_bound |
( |
const Key & |
k, |
|
|
Iter |
a, |
|
|
Iter |
b, |
|
|
Comp & |
comp |
|
) |
| const |
|
inline |
Obtains a reference to the first element in the given range that is not less than the given key.
Definition at line 109 of file BTree.h.
115 if (comp(*c,
k) > 0) {
References b, and k.
◆ operator()()
template<typename Key , typename Iter , typename Comp >
| Iter souffle::detail::linear_search::operator() |
( |
const Key & |
k, |
|
|
Iter |
a, |
|
|
Iter |
b, |
|
|
Comp & |
comp |
|
) |
| const |
|
inline |
Obtains an iterator referencing an element equivalent to the given key in the given range.
If no such element is present, a reference to the first element not less than the given key is returned.
Definition at line 100 of file BTree.h.
◆ upper_bound()
template<typename Key , typename Iter , typename Comp >
| Iter souffle::detail::linear_search::upper_bound |
( |
const Key & |
k, |
|
|
Iter |
a, |
|
|
Iter |
b, |
|
|
Comp & |
comp |
|
) |
| const |
|
inline |
Obtains a reference to the first element in the given range that such that the given key is less than the referenced element.
Definition at line 126 of file BTree.h.
127 :
public search_strategy {
131 binary_search() =
default;
References souffle::detail::binary_search::binary_search().
The documentation for this struct was generated from the following file:
- include/souffle/datastructure/BTree.h