Wildmeshing Toolkit
local_id_table_offset.hxx
Go to the documentation of this file.
1
#pragma once
2
3
#include <
wmtk/utils/TupleInspector.hpp
>
4
#include "
autogenerated_tables.hpp
"
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
{
9
return
wmtk::utils::TupleInspector::local_vid
(tuple);
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
TupleInspector.hpp
wmtk::Tuple
Definition:
Tuple.hpp:42
wmtk::utils::TupleInspector::local_vid
static int8_t local_vid(const Tuple &t)
Definition:
TupleInspector.hpp:13
wmtk::autogen::edge_mesh
Definition:
autogenerated_tables.cpp:4
wmtk::autogen::edge_mesh::local_id_table_offset
int64_t local_id_table_offset(const Tuple &t)
Definition:
local_id_table_offset.hxx:7
wmtk::autogen::edge_mesh::lvid_from_table_offset
std::array< int64_t, 1 > lvid_from_table_offset(int64_t table_offset)
Definition:
local_id_table_offset.hxx:12
autogenerated_tables.hpp
src
wmtk
autogen
edge_mesh
local_id_table_offset.hxx
Generated by
1.9.1