IOSS 2.0
Loading...
Searching...
No Matches
Ioss_ChainGenerator.h
Go to the documentation of this file.
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
15namespace Ioss {
16 class Region;
17
18 template <typename INT> struct chain_entry_t
19 {
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>
32 const std::string &surface_list,
33 int debug_level, INT /*dummy*/);
34} // namespace Ioss
#define IOSS_NODISCARD
Definition Ioss_CodeTypes.h:54
A grouping entity that contains other grouping entities.
Definition Ioss_Region.h:90
The main namespace for the Ioss library.
Definition Ioad_DatabaseIO.C:40
template IOSS_EXPORT Ioss::chain_t< int > generate_element_chains(Ioss::Region &region, const std::string &, int, int)
std::vector< chain_entry_t< INT > > chain_t
Definition Ioss_ChainGenerator.h:28
Definition Ioss_ChainGenerator.h:19
int link
Definition Ioss_ChainGenerator.h:25
int64_t element
Definition Ioss_ChainGenerator.h:24
IOSS_NODISCARD bool operator==(const chain_entry_t< INT > &other) const
Definition Ioss_ChainGenerator.h:20