souffle
2.0.2-371-g6315b36
|
#include <Brie.h>
Public Types | |
using | const_entry_span_type = typename types::const_entry_span_type |
using | element_type = entry_type |
using | entry_span_type = typename types::entry_span_type |
using | entry_type = typename types::entry_type |
using | iterator = typename types::iterator |
using | iterator_core = typename types::iterator_core |
using | op_context = typename types::op_context |
using | operation_hints = op_context |
Public Member Functions | |
iterator | begin () const |
Obtains an iterator referencing the first element stored within this trie. More... | |
void | clear () |
Removes all entries within this trie. More... | |
bool | contains (const_entry_span_type tuple, op_context &ctxt) const |
bool | empty () const |
Determines whether this trie is empty or not. More... | |
iterator | end () const |
Obtains an iterator referencing the position after the last element stored within this trie. More... | |
iterator | find (const_entry_span_type entry, op_context &ctxt) const |
template<unsigned levels> | |
range< iterator > | getBoundaries (const entry_type &entry) const |
template<unsigned levels> | |
range< iterator > | getBoundaries (const entry_type &entry, op_context &ctxt) const |
template<unsigned levels> | |
range< iterator > | getBoundaries (const_entry_span_type entry) const |
template<unsigned levels> | |
range< iterator > | getBoundaries (const_entry_span_type entry, op_context &ctxt) const |
Obtains a range of elements matching the prefix of the given entry up to levels elements. More... | |
template<unsigned levels, typename... Values, typename = std::enable_if_t<(isRamType<Values> && ...)>> | |
range< iterator > | getBoundaries (Values... values) const |
std::size_t | getMemoryUsage () const |
Computes the total memory usage of this data structure. More... | |
bool | insert (const_entry_span_type tuple, op_context &ctxt) |
Inserts a new entry. More... | |
iterator | lower_bound (const_entry_span_type entry, op_context &) const |
Obtains an iterator to the first element not less than the given entry value. More... | |
std::vector< range< iterator > > | partition (unsigned chunks=500) const |
Computes a partition of an approximate number of chunks of the content of this trie. More... | |
std::size_t | size () const |
Determines the number of entries in this trie. More... | |
iterator | upper_bound (const_entry_span_type entry, op_context &) const |
Obtains an iterator to the first element greater than the given entry value, or end if there is no such element. More... | |
~Trie () | |
Private Types | |
using | base = TrieBase< Dim, Trie< Dim > > |
using | nested_trie_type = typename types::nested_trie_type |
using | store_type = typename types::store_type |
using | types = TrieTypes< Dim > |
Private Attributes | |
store_type | store |
Friends | |
template<unsigned N> | |
class | Trie |
|
private |
using souffle::Trie< Dim >::const_entry_span_type = typename types::const_entry_span_type |
using souffle::Trie< Dim >::element_type = entry_type |
using souffle::Trie< Dim >::entry_span_type = typename types::entry_span_type |
using souffle::Trie< Dim >::entry_type = typename types::entry_type |
using souffle::Trie< Dim >::iterator = typename types::iterator |
using souffle::Trie< Dim >::iterator_core = typename types::iterator_core |
|
private |
using souffle::Trie< Dim >::op_context = typename types::op_context |
using souffle::Trie< Dim >::operation_hints = op_context |
|
private |
|
private |
|
inline |
|
inline |
Obtains an iterator referencing the first element stored within this trie.
Definition at line 2082 of file Brie.h.
Referenced by souffle::TEST().
|
inline |
Removes all entries within this trie.
Definition at line 2718 of file Brie.h.
References souffle::detail::brie::tail().
|
inline |
|
inline |
|
inline |
Obtains an iterator referencing the position after the last element stored within this trie.
Definition at line 2090 of file Brie.h.
Referenced by souffle::TEST().
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Obtains a range of elements matching the prefix of the given entry up to levels elements.
A operation context may be provided to exploit temporal locality.
levels | the length of the requested matching prefix |
entry | the entry to be looking for |
ctxt | the operation context to be utilized |
|
inline |
|
inline |
|
inline |
|
inline |
Obtains an iterator to the first element not less than the given entry value.
entry | the lower bound for this search |
ctxt | the operation context to be utilized |
|
inline |
Computes a partition of an approximate number of chunks of the content of this trie.
Thus, the union of the resulting set of disjoint ranges is equivalent to the content of this trie.
chunks | the number of chunks requested |
Definition at line 2897 of file Brie.h.
|
inline |
|
inline |
Obtains an iterator to the first element greater than the given entry value, or end if there is no such element.
entry | the upper bound for this search |
ctxt | the operation context to be utilized |
Definition at line 2878 of file Brie.h.
|
private |