Struct t8_forest_search_with_batched_queries

Struct Documentation

struct t8_forest_search_with_batched_queries

The structure that contains the C++ search object with batched queries. Needed for the C interface.

Public Functions

inline void wrapped_queries_callback(const t8_forest_t forest, const t8_locidx_t ltreeid, const t8_element_t *element, const bool is_leaf, const t8_element_array_t *leaf_elements, const t8_locidx_t tree_leaf_index, const std::vector<void*> &queries, const std::vector<size_t> &active_query_indices, std::vector<bool> &query_matches, void *user_data)

A wrapper function that converts the C callback to the C++ callback.

Parameters:
  • forest[in] the forest on which the search is performed

  • ltreeid[in] the local tree id of the tree being searched

  • element[in] the element being searched

  • is_leaf[in] whether the element is a leaf

  • leaf_elements[in] the array of leaf elements

  • tree_leaf_index[in] the index of the first leaf in the tree

  • queries[in] a vector of pointers to the queries

  • active_query_indices[in] a vector of indices of the active queries

  • query_matches[out] a vector of booleans indicating whether each query matched

  • user_data[in] a pointer to user data

Public Members

t8_search_with_batched_queries<void*, void*> *cpp_search

The C++ search object.

t8_search_batched_queries_callback_c_wrapper queries_callback

The C++ query object.