t8code Logo

Contents:

  • Library API
    • Full API
      • Namespaces
      • Classes and Structs
        • Template Struct Addable
        • Template Struct AddAssignable
        • Template Struct Dividable
        • Template Struct EqualityComparable
        • Struct find_owner_data_t
        • Struct ghost_facejoins_struct
        • Template Struct Hashable
        • Template Struct Multipliable
        • Template Struct PrefixDecrementable
        • Template Struct PrefixIncrementable
        • Template Struct Printable
        • Template Struct RandomAccessible
        • Template Struct hash< T8Type< T, Parameter, competence… > >
        • Template Struct Subtractable
        • Template Struct Swapable
        • Struct t8_attribute_info
        • Struct t8_cghost
        • Struct t8_cmesh
        • Struct t8_cmesh_netcdf_context_t
        • Struct t8_cmesh_netcdf_ugrid_namespace_t
        • Struct t8_cmesh_trees
        • Struct t8_cmesh_vertex_connectivity
        • Struct t8_cprofile
        • Template Struct t8_crtp_basic
        • Template Struct t8_crtp_operator
        • Struct t8_ctree
        • Struct t8_data_handler_tag
        • Struct t8_dhex
        • Struct t8_dline
        • Struct t8_dprism
        • Struct t8_dpyramid
        • Struct t8_dtet
        • Struct t8_dtri
        • Struct t8_dvertex
        • Struct t8_element_array_t
        • Struct t8_forest
        • Struct t8_forest_c_search
        • Struct t8_forest_child_type_query_t
        • Struct t8_forest_ghost
        • Struct t8_forest_ghost_boundary_data_t
        • Struct t8_forest_netcdf_context_t
        • Struct t8_forest_netcdf_ugrid_namespace_t
        • Struct t8_forest_partition_tree_info_t
        • Struct t8_forest_search_with_batched_queries
        • Struct t8_forest_search_with_queries
        • Struct t8_geometry
        • Struct t8_geometry_analytic
        • Struct t8_geometry_cad
        • Struct t8_geometry_cubed_sphere
        • Struct t8_geometry_cubed_spherical_shell
        • Struct t8_geometry_extended
        • Struct t8_geometry_handler
        • Struct t8_geometry_hash_tag
        • Struct t8_geometry_lagrange
        • Struct t8_geometry_linear
        • Struct t8_geometry_linear_axis_aligned
        • Struct t8_geometry_prismed_spherical_shell
        • Struct t8_geometry_quadrangulated_disk
        • Struct t8_geometry_tessellated_spherical_surface
        • Struct t8_geometry_triangulated_spherical_surface
        • Struct t8_geometry_with_vertices
        • Struct t8_geometry_zero
        • Struct t8_ghost_data_exchange_t
        • Struct t8_ghost_gtree_hash_t
        • Struct t8_ghost_mpi_send_info_t
        • Struct t8_ghost_process_hash_t
        • Struct t8_ghost_remote_t
        • Struct t8_ghost_remote_tree_t
        • Struct t8_ghost_tree_t
        • Template Struct unrolled_index
        • Struct t8_key_id_pair
        • Struct t8_msh_file_face_t
        • Struct t8_msh_file_node
        • Struct t8_msh_node_equal
        • Struct t8_msh_node_hasher
        • Struct t8_netcdf_variable_t
        • Struct t8_part_ghost_id_and_num_atts
        • Struct t8_part_tree
        • Template Struct t8_point_tag
        • Struct t8_profile
        • Struct t8_recv_list_entry_struct
        • Struct t8_shmem_array
        • Template Struct t8_standalone
        • Template Struct t8_standalone_scheme
        • Struct t8_stash
        • Struct t8_stash_attribute
        • Struct t8_stash_class
        • Struct t8_stash_joinface
        • Struct t8_tree
        • Struct t8_trees_glo_lo_hash_t
        • Template Struct t8_vec_tag
        • Struct t8_vtk_data_field_t
        • Class t8_abstract_vector_handler
        • Class t8_cad
        • Class t8_cmesh_vertex_conn_tree_to_vertex
        • Class t8_cmesh_vertex_conn_vertex_to_tree
        • Template Class t8_data_handler
        • Template Class t8_default_scheme_common
        • Class t8_default_scheme_hex
        • Class t8_default_scheme_line
        • Class t8_default_scheme_prism
        • Class t8_default_scheme_pyramid
        • Class t8_default_scheme_quad
        • Class t8_default_scheme_tet
        • Class t8_default_scheme_tri
        • Class t8_default_scheme_vertex
        • Class t8_element_array_iterator
        • Class t8_lagrange_element
        • Template Class t8_partition_search
        • Class t8_partition_search_base
        • Template Class t8_partition_search_with_batched_queries
        • Template Class t8_partition_search_with_queries
        • Class t8_scheme
        • Class t8_scheme_builder
        • Template Class t8_scheme_helpers
        • Template Class t8_search
        • Class t8_search_base
        • Template Class t8_search_with_batched_queries
        • Template Class t8_search_with_queries
        • Template Class t8_vector_handler
        • Template Class T8Type
        • Template Class vtk_writer
      • Enums
      • Functions
      • Variables
      • Defines
      • Typedefs
t8code
  • Library API
  • Template Class t8_partition_search
  • View page source

Template Class t8_partition_search

  • Defined in File t8_forest_search.hxx

Inheritance Relationships

Base Type

  • public t8_partition_search_base (Class t8_partition_search_base)

Class Documentation

template<typename Udata = void>
class t8_partition_search : public t8_partition_search_base

A class that performs a search in the partition of a forest and supports the usage of user data.

Template Parameters:

Udata –

Public Functions

inline t8_partition_search(t8_partition_search_element_callback<Udata> element_callback, t8_forest_t forest = nullptr, Udata *user_data = nullptr)

Constructor for the t8_partition_search class. This constructor initializes a t8_partition_search object with the given element callback, forest, and user data. If the forest is not null, it increments the reference count of the forest and asserts that the forest is committed.

Parameters:
  • element_callback – [in] A callback function of type t8_partition_search_element_callback<Udata>.

  • forest – [in] A pointer to a t8_forest_t object. Defaults to nullptr.

  • user_data – [in] A pointer to a Udata object. Defaults to nullptr.

inline void update_user_data(Udata *udata)

Updates the user data associated with the object.

This function sets the user data pointer to the provided Udata object.

Parameters:

udata – [in] A pointer to the Udata object to be set as the user data.

Public Members

Udata *user_data

A pointer to the user data associated with the object.

Previous Next

© Copyright 2024, Johannes Holke, David Knapp, Sandro Elsweijer, Ioannis Lilikakis, Lukas Dreyer, Jakob Fußbroich, Carsten Burstedde, Chiara Hergl, Johannes Markert, Niklas Boeing, Florian Becker, Prasanna Ponnusamy.

Built with Sphinx using a theme provided by Read the Docs.