Debian Codegraph @

packages/seacas/libraries/ioss/src/Ioss_ChainGenerator.h

raw
1 // Copyright(C) 2022, 2024 National Technology & Engineering Solutions
2 // of Sandia, LLC (NTESS). Under the terms of Contract DE-NA0003525 with
3 // NTESS, the U.S. Government retains certain rights in this software.
4 //
5 // See packages/seacas/LICENSE for details
6
7 #pragma once
8
9 #include <stdint.h>
10 #include <string>
11 #include <vector>
12
13 #include "Ioss_Region.h"
14
15 namespace Ioss {
16 class Region;
17
18 template <typename INT> struct chain_entry_t
19 {
20 IOSS_NODISCARD bool operator==(const chain_entry_t<INT> &other) const
21 {
22 return (other.element == element);
23 }
24 int64_t element{}; // Element at root of chain
25 int link{-1}; // How far is this element in the chain (1-based)
26 };
27
28 template <typename INT> using chain_t = std::vector<chain_entry_t<INT>>;
29
30 template <typename INT>
31 IOSS_NODISCARD chain_t<INT> generate_element_chains(Ioss::Region &region,
32 const std::string &surface_list,
33 int debug_level, INT /*dummy*/);
34 } // namespace Ioss