Wildmeshing Toolkit
Loading...
Searching...
No Matches
local_id_table_offset.hxx
Go to the documentation of this file.
1#pragma once
2
5// computes the offset of a tuple's local ids in the tables
6inline int64_t local_id_table_offset(const Tuple& tuple)
7{
8 return tuple.local_vid();
9}
10
11inline std::array<int64_t, 1> lvid_from_table_offset(int64_t table_offset)
12{
13 std::array<int64_t, 1> r;
14 auto& [lvid] = r;
15
16 lvid = table_offset;
17 return r;
18}
19
20} // namespace wmtk::autogen::edge_mesh
The Tuple is the basic navigation tool in our mesh data structure.
Definition Tuple.hpp:19
int8_t local_vid() const
Definition Tuple.hxx:52
int64_t local_id_table_offset(const Tuple &t)
std::array< int64_t, 1 > lvid_from_table_offset(int64_t table_offset)