Wildmeshing Toolkit
local_id_table_offset.hxx
Go to the documentation of this file.
1 #pragma once
2 
5 namespace wmtk::autogen::edge_mesh {
6 // computes the offset of a tuple's local ids in the tables
7 inline int64_t local_id_table_offset(const Tuple& tuple)
8 {
10 }
11 
12 inline std::array<int64_t, 1> lvid_from_table_offset(int64_t table_offset)
13 {
14  std::array<int64_t, 1> r;
15  auto& [lvid] = r;
16 
17  lvid = table_offset;
18  return r;
19 }
20 
21 } // namespace wmtk::autogen::edge_mesh
static int8_t local_vid(const Tuple &t)
int64_t local_id_table_offset(const Tuple &t)
std::array< int64_t, 1 > lvid_from_table_offset(int64_t table_offset)