Debian Codegraph @

packages/seacas/applications/exodiff/face_block.h

raw
1 // Copyright(C) 1999-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 Face_Block : public Exo_Entity
14 {
15 public:
16 Face_Block();
17 Face_Block(int file_id, size_t id);
18 Face_Block(int file_id, size_t id, size_t ne);
19 ~Face_Block() override;
20 Face_Block(const Face_Block &) = delete; // Not written.
21 const Face_Block &operator=(const Face_Block &) = delete; // Not written.
22
23 size_t Face_Index(size_t position) const;
24
25 private:
26 int Check_State() const override;
27 void entity_load_params() override;
28
29 EXOTYPE exodus_type() const override;
30 const char *label() const override { return "Faceblock"; }
31 const char *short_label() const override { return "faceblock"; }
32
33 std::string elmt_type{};
34 int num_faces_per_elmt{-1};
35
36 friend class Exo_Read<INT>;
37 };