Debian Codegraph @

packages/seacas/applications/exodiff/assembly.h

raw
1 // Copyright(C) 1999-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 #pragma once
7
8 #include "exo_entity.h"
9 #include <iostream>
10
11 #include <string>
12
13 template <typename INT> class Exo_Read;
14
15 template <typename INT> class Assembly : public Exo_Entity
16 {
17 public:
18 Assembly();
19 Assembly(int file_id, size_t assembly_id);
20 Assembly(const Assembly &) = delete;
21 const Assembly &operator=(const Assembly &) = delete;
22
23 ex_entity_type Type() const { return assembly_type; }
24 const std::vector<ex_entity_id> &Entities() const { return entities; }
25 size_t Size() const override { return entities.size(); }
26
27 private:
28 int Check_State() const override;
29 void entity_load_params() override;
30
31 EXOTYPE exodus_type() const override;
32 const char *label() const override { return "Assembly"; }
33 const char *short_label() const override { return "assembly"; }
34
35 int entity_count{0};
36 ex_entity_type assembly_type{EX_INVALID};
37 std::vector<ex_entity_id> entities{};
38
39 friend class Exo_Read<INT>;
40 };