Function t8_forest_search
Defined in File t8_forest_iterate.h
Function Documentation
-
void t8_forest_search(t8_forest_t forest, t8_forest_search_fn search_fn, t8_forest_query_fn query_fn, sc_array_t *queries)
Perform a top-down search of the forest, executing a callback on each intermediate element.
The search will enter each tree at least once. If the callback returns false for an element, its descendants are not further searched. To pass user data to the search_fn function use t8_forest_set_user_data.
- Parameters:
forest – [in] The forest.
search_fn – [in] The callback function describing the search criterion.
query_fn – [in] The query function.
queries – [in] The array of queries.