Debian Codegraph @

packages/seacas/applications/exodiff/edge_block.h

raw
1 // Copyright(C) 1999-2020, 2022, 2023 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 #pragma once
7
8 #include "exo_entity.h"
9 #include <iostream>
10
11 template <typename INT> class Exo_Read;
12
13 template <typename INT> class Edge_Block : public Exo_Entity
14 {
15 public:
16 Edge_Block();
17 Edge_Block(int file_id, size_t id);
18 Edge_Block(int file_id, size_t id, size_t ne);
19 Edge_Block(const Edge_Block &) = delete; // Not written.
20 const Edge_Block &operator=(const Edge_Block &) = delete; // Not written.
21
22 ~Edge_Block() override;
23
24 size_t Edge_Index(size_t position) const;
25
26 private:
27 int Check_State() const override;
28 void entity_load_params() override;
29
30 EXOTYPE exodus_type() const override;
31 const char *label() const override { return "Edgeblock"; }
32 const char *short_label() const override { return "edgeblock"; }
33
34 std::string elmt_type{};
35 int num_edges_per_elmt{-1};
36
37 friend class Exo_Read<INT>;
38 };