Aleph-w 7.10.0
A C++ Library for Data Structures and Algorithms
Loading...
Searching...
No Matches
search_trees_test_common.H File Reference

What the tests of the binary search trees share: the list of tree types, what each node carries, and a pool that owns the nodes. More...

#include <gtest/gtest.h>
#include <cstddef>
#include <memory>
#include <string>
#include <vector>
#include <tpl_avl.H>
#include <tpl_avlRk.H>
#include <tpl_binNodeUtils.H>
#include <tpl_binTree.H>
#include <tpl_hRbTree.H>
#include <tpl_hRbTreeRk.H>
#include <tpl_rand_tree.H>
#include <tpl_rbRk.H>
#include <tpl_rb_tree.H>
#include <tpl_splay_tree.H>
#include <tpl_splay_treeRk.H>
#include <tpl_tdRbTree.H>
#include <tpl_tdRbTreeRk.H>
#include <tpl_treap.H>
#include <tpl_treapRk.H>
Include dependency graph for search_trees_test_common.H:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  search_trees_test::Node_Pool< Node >
 Owns the nodes of a tree, which does not free them. More...
 
struct  search_trees_test::Tree_Name< BinTree< int > >
 
struct  search_trees_test::Tree_Name< Avl_Tree< int > >
 
struct  search_trees_test::Tree_Name< Avl_Tree_Rk< int > >
 
struct  search_trees_test::Tree_Name< Rb_Tree< int > >
 
struct  search_trees_test::Tree_Name< Rb_Tree_Rk< int > >
 
struct  search_trees_test::Tree_Name< TdRbTree< int > >
 
struct  search_trees_test::Tree_Name< TdRbTreeRk< int > >
 
struct  search_trees_test::Tree_Name< HtdRbTree< int > >
 
struct  search_trees_test::Tree_Name< HtdRbTreeRk< int > >
 
struct  search_trees_test::Tree_Name< Treap< int > >
 
struct  search_trees_test::Tree_Name< Treap_Rk< int > >
 
struct  search_trees_test::Tree_Name< Rand_Tree< int > >
 
struct  search_trees_test::Tree_Name< Splay_Tree< int > >
 
struct  search_trees_test::Tree_Name< Splay_Tree_Rk< int > >
 
struct  search_trees_test::Tree_Names
 Names the instances of a typed test suite after their tree. More...
 

Namespaces

namespace  search_trees_test
 

Concepts

concept  search_trees_test::Colored_Node
 The node has a red or black color.
 
concept  search_trees_test::Avl_Balanced_Node
 The node stores the AVL balance factor.
 
concept  search_trees_test::Counted_Node
 The node stores the size of its subtree.
 
concept  search_trees_test::Prioritized_Node
 The node stores a heap priority.
 
concept  search_trees_test::Seeded_Tree
 The tree draws random numbers, from a seed that can be set.
 

Macros

#define SEARCH_TREES_TEST_NAME(Tree)
 

Typedefs

using search_trees_test::All_Trees = ::testing::Types< BinTree< int >, Avl_Tree< int >, Avl_Tree_Rk< int >, Rb_Tree< int >, Rb_Tree_Rk< int >, TdRbTree< int >, TdRbTreeRk< int >, HtdRbTree< int >, HtdRbTreeRk< int >, Treap< int >, Treap_Rk< int >, Rand_Tree< int >, Splay_Tree< int >, Splay_Tree_Rk< int > >
 Every binary search tree of the library.
 
using search_trees_test::Ranked_Trees = ::testing::Types< Avl_Tree_Rk< int >, Rb_Tree_Rk< int >, TdRbTreeRk< int >, HtdRbTreeRk< int >, Treap_Rk< int >, Rand_Tree< int >, Splay_Tree_Rk< int > >
 The trees whose nodes count the nodes of their subtree.
 
using search_trees_test::Red_Black_Trees = ::testing::Types< Rb_Tree< int >, Rb_Tree_Rk< int >, TdRbTree< int >, TdRbTreeRk< int >, HtdRbTree< int >, HtdRbTreeRk< int > >
 The red-black trees.
 
using search_trees_test::Avl_Trees = ::testing::Types< Avl_Tree< int >, Avl_Tree_Rk< int > >
 The AVL trees.
 
using search_trees_test::Treaps = ::testing::Types< Treap< int >, Treap_Rk< int > >
 The treaps.
 

Detailed Description

What the tests of the binary search trees share: the list of tree types, what each node carries, and a pool that owns the nodes.

Definition in file search_trees_test_common.H.

Macro Definition Documentation

◆ SEARCH_TREES_TEST_NAME

#define SEARCH_TREES_TEST_NAME (   Tree)
Value:
template <> \
struct Tree_Name<Tree<int>> \
{ \
static constexpr const char * value = #Tree; \
}
size_t size_t int32_t value
Definition ca-c-api.h:116
QuadTree - Hierarchical spatial index for 2D points.
Definition quadtree.H:126
QuadTree Tree

Definition at line 111 of file search_trees_test_common.H.