Struct TestDFS
Defined in File t8_gtest_dfs_base.hxx
Inheritance Relationships
Base Type
public testing::TestWithParam< std::tuple< int, t8_eclass_t > >
Struct Documentation
-
struct TestDFS : public testing::TestWithParam<std::tuple<int, t8_eclass_t>>
A base class for depth first search tests.
Public Functions
-
inline virtual void check_element()
recursive tests check something for all descendants of a starting element (currently only root) upto maxlevel
-
inline void check_recursive_dfs_to_max_lvl(const int max_dfs_recursion_level)
recursive depth first search to iterate over all descendants of elem up to max_dfs_recursion_level.
- Parameters:
max_dfs_recursion_level – [in] Maximum recursion level.
-
inline void dfs_test_setup()
Test setup for depth first search tests.
-
inline void dfs_test_teardown()
Test teardown for depth first search tests.
Public Members
-
t8_eclass_t eclass
Eclass of the tree to be used for DFS testing.
-
t8_element_t *element
Current element in the DFS traversal.
-
inline virtual void check_element()