Function t8_cmesh_tree_vertex_pair_compare
Defined in File t8_cmesh_vertex_conn_vertex_to_tree.cxx
Function Documentation
-
static inline bool t8_cmesh_tree_vertex_pair_compare(tree_vertex_pair const &pair_a, tree_vertex_pair const &pair_b)
Compare function callback for two tree vertex pairs. Implements the ‘<’ operation for tree_vertex_pair (tree_id_A, vertex_id_A) is consider smaller than (tree_id_B, vertex_id_B) if either tree_id_A < tree_id_B or tree_id_A == tree_id_B and vertex_id_A < vertex_id_B
- Parameters:
pair_a – [in] A pair of (local_tree_id_a, local_tree_vertex_a)
pair_b – [in] A pair of (local_tree_id_b, local_tree_vertex_b)
- Returns:
True if pair_a < pair_b meaning either local_tree_id_a < local_tree_id_b or (local_tree_id_a == local_tree_id_b and local_tree_vertex_a < local_tree_vertex_b)