|
Advanced Chunk Processing Library 0.2.0
A comprehensive C++ library for advanced data chunking strategies and processing operations
|
A treap implementation for efficient chunk searching and manipulation. More...
#include <advanced_structures.hpp>
Collaboration diagram for advanced_structures::ChunkTreap< T >:Classes | |
| struct | Node |
Public Member Functions | |
| ChunkTreap () | |
| void | insert (T value) |
| bool | search (T value) const |
Private Member Functions | |
| std::shared_ptr< Node > | insert (std::shared_ptr< Node > node, T value, int priority) |
| std::shared_ptr< Node > | rotate_left (std::shared_ptr< Node > node) |
| std::shared_ptr< Node > | rotate_right (std::shared_ptr< Node > node) |
| bool | search (const std::shared_ptr< Node > &node, T value) const |
Private Attributes | |
| std::mt19937 | gen |
| std::shared_ptr< Node > | root |
A treap implementation for efficient chunk searching and manipulation.
| T | The type of elements stored in the treap |
Definition at line 426 of file advanced_structures.hpp.
|
inline |
Definition at line 488 of file advanced_structures.hpp.
|
inlineprivate |
Definition at line 454 of file advanced_structures.hpp.
References advanced_structures::ChunkTreap< T >::insert(), advanced_structures::ChunkTreap< T >::rotate_left(), and advanced_structures::ChunkTreap< T >::rotate_right().
Referenced by advanced_structures::ChunkTreap< T >::insert(), advanced_structures::ChunkTreap< T >::insert(), and TEST().
|
inline |
Definition at line 490 of file advanced_structures.hpp.
References advanced_structures::ChunkTreap< T >::gen, advanced_structures::ChunkTreap< T >::insert(), and advanced_structures::ChunkTreap< T >::root.
|
inlineprivate |
Definition at line 447 of file advanced_structures.hpp.
Referenced by advanced_structures::ChunkTreap< T >::insert().
|
inlineprivate |
Definition at line 440 of file advanced_structures.hpp.
Referenced by advanced_structures::ChunkTreap< T >::insert().
|
inlineprivate |
Definition at line 473 of file advanced_structures.hpp.
References advanced_structures::ChunkTreap< T >::search().
Referenced by advanced_structures::ChunkTreap< T >::search(), advanced_structures::ChunkTreap< T >::search(), and TEST().
|
inline |
Definition at line 495 of file advanced_structures.hpp.
References advanced_structures::ChunkTreap< T >::root, and advanced_structures::ChunkTreap< T >::search().
|
private |
Definition at line 438 of file advanced_structures.hpp.
Referenced by advanced_structures::ChunkTreap< T >::insert().
|
private |
Definition at line 437 of file advanced_structures.hpp.
Referenced by advanced_structures::ChunkTreap< T >::insert(), and advanced_structures::ChunkTreap< T >::search().