libpalliate v0.0.1
Palliate core library
|
#include <patricia.h>
Classes | |
struct | element_t |
struct | leaf_t |
struct | node_t |
Public Member Functions | |
patricia ()=default | |
~patricia () | |
leaf_t * | find_last (element_t *subtree) |
leaf_t * | find_first (element_t *subtree) |
leaf_t * | find_last () |
leaf_t * | find_first () |
leaf_t * | find (pkey_t key) |
template<class T > requires (std::derived_from<T, patricia::leaf_t>) | |
bool | insert (T *value) |
template<class T > requires (std::derived_from<T, patricia::leaf_t>) | |
void | remove (T *value) |
void | remove (pkey_t key) |
void | clear () |
void | print () |
|
default |
|
inline |
void patricia::clear | ( | ) |
patricia::leaf_t * patricia::find | ( | pkey_t | key | ) |
|
inline |
|
inline |
bool patricia::insert | ( | T * | value | ) |
void patricia::print | ( | ) |
void patricia::remove | ( | pkey_t | key | ) |
void patricia::remove | ( | T * | value | ) |