Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
Loading...
Searching...
No Matches
Splay_Tree< Key, Compare > Struct Template Reference

#include <tpl_splay_tree.H>

Inheritance diagram for Splay_Tree< Key, Compare >:
[legend]
Collaboration diagram for Splay_Tree< Key, Compare >:
[legend]

Public Types

using Base = GenTdSplayTree< BinNode, Key, Compare >
 
- Public Types inherited from GenTdSplayTree< NodeType, Key, Compare >
using Node = NodeType< Key >
 
using key_type = Key
 The key type stored in the node.
 

Additional Inherited Members

- Public Member Functions inherited from GenTdSplayTree< NodeType, Key, Compare >
Compare & key_comp () noexcept
 Returns a reference to the comparison criteria.
 
Compare & get_compare () noexcept
 
void splay (const Key &key) noexcept
 search key within tree and splay that node, if not found it return Node::NullPtr
 
 GenTdSplayTree (Compare __cmp=Compare()) noexcept
 Constructor.
 
void swap (GenTdSplayTree &tree) noexcept
 
virtual ~GenTdSplayTree ()=default
 Destructor.
 
Nodeinsert (Node *p) noexcept
 Inserts a node in a top-down splay tree.
 
Nodeinsert_dup (Node *p) noexcept
 
Nodesearch (const Key &key) noexcept
 Searches a key in a top-down splay tree.
 
Nodesearch_or_insert (Node *p) noexcept
 
Noderemove (const Key &key) noexcept
 Remove a key from a top down splay tree.
 
Node *& getRoot () noexcept
 Get the top-down splay tree's root.
 
bool verify () const
 

Detailed Description

template<typename Key, class Compare = Aleph::less<Key>>
struct Splay_Tree< Key, Compare >

Definition at line 392 of file tpl_splay_tree.H.

Member Typedef Documentation

◆ Base

template<typename Key , class Compare = Aleph::less<Key>>
using Splay_Tree< Key, Compare >::Base = GenTdSplayTree<BinNode, Key, Compare>

Definition at line 394 of file tpl_splay_tree.H.


The documentation for this struct was generated from the following file: