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
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
®ion,
32
const
std::string &surface_list,
33
int
debug_level, INT
/*dummy*/
);
34
}
// namespace Ioss
IOSS_NODISCARD
#define IOSS_NODISCARD
Definition
Ioss_CodeTypes.h:55
Ioss_Region.h
Ioss::Region
A grouping entity that contains other grouping entities.
Definition
Ioss_Region.h:93
Ioss
The main namespace for the Ioss library.
Definition
Ioad_DatabaseIO.C:40
Ioss::generate_element_chains
template IOSS_EXPORT Ioss::chain_t< int > generate_element_chains(Ioss::Region ®ion, const std::string &, int, int)
Ioss::chain_t
std::vector< chain_entry_t< INT > > chain_t
Definition
Ioss_ChainGenerator.h:28
Ioss::chain_entry_t
Definition
Ioss_ChainGenerator.h:19
Ioss::chain_entry_t::link
int link
Definition
Ioss_ChainGenerator.h:25
Ioss::chain_entry_t::element
int64_t element
Definition
Ioss_ChainGenerator.h:24
Ioss::chain_entry_t::operator==
IOSS_NODISCARD bool operator==(const chain_entry_t< INT > &other) const
Definition
Ioss_ChainGenerator.h:20
src
Ioss_ChainGenerator.h
Generated by
1.12.0