IOSS 2.0
Loading...
Searching...
No Matches
Ioss_FaceSet.h
Go to the documentation of this file.
1// Copyright(C) 1999-2020, 2022, 2023, 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 "ioss_export.h"
10
11#include "Ioss_EntitySet.h" // for EntitySet
12#include "Ioss_EntityType.h" // for EntityType, etc
13#include "Ioss_Property.h" // for Property
14#include <cstddef> // for size_t
15#include <cstdint> // for int64_t
16#include <string> // for string
17#include <vector> // for vector
18namespace Ioss {
19 class DatabaseIO;
20} // namespace Ioss
21namespace Ioss {
22 class Field;
23} // namespace Ioss
24
25namespace Ioss {
26
27 /** \brief A collection of element faces.
28 */
29 class IOSS_EXPORT FaceSet : public EntitySet
30 {
31 public:
32 FaceSet(); // Used for template typing only
33 FaceSet(const FaceSet &) = default;
34 FaceSet(DatabaseIO *io_database, const std::string &my_name, int64_t number_faces);
35
36 IOSS_NODISCARD std::string type_string() const override { return "FaceSet"; }
37 IOSS_NODISCARD std::string short_type_string() const override { return "facelist"; }
38 IOSS_NODISCARD std::string contains_string() const override { return "Face"; }
39 IOSS_NODISCARD EntityType type() const override { return FACESET; }
40
41 // Handle implicit properties -- These are calculated from data stored
42 // in the grouping entity instead of having an explicit value assigned.
43 // An example would be 'element_block_count' for a region.
44 IOSS_NODISCARD Property get_implicit_property(const std::string &my_name) const override;
45
46 void block_membership(Ioss::NameList &block_membership) override;
47
48 protected:
49 int64_t internal_get_field_data(const Field &field, void *data,
50 size_t data_size) const override;
51
52 int64_t internal_put_field_data(const Field &field, void *data,
53 size_t data_size) const override;
54
55 int64_t internal_get_zc_field_data(const Field &field, void **data,
56 size_t *data_size) const override;
57 };
58} // namespace Ioss
#define IOSS_NODISCARD
Definition Ioss_CodeTypes.h:55
An input or output Database.
Definition Ioss_DatabaseIO.h:63
Base class for all 'set'-type grouping entities, which means that members of the set are not necessar...
Definition Ioss_EntitySet.h:38
A collection of element faces.
Definition Ioss_FaceSet.h:30
IOSS_NODISCARD EntityType type() const override
Get the EntityType, which indicates the particular type of GroupingEntity this is.
Definition Ioss_FaceSet.h:39
IOSS_NODISCARD std::string contains_string() const override
What does this entity contain.
Definition Ioss_FaceSet.h:38
FaceSet(const FaceSet &)=default
IOSS_NODISCARD std::string short_type_string() const override
Get a short name of the particular type of entity.
Definition Ioss_FaceSet.h:37
IOSS_NODISCARD std::string type_string() const override
Get the name of the particular type of entity.
Definition Ioss_FaceSet.h:36
Holds metadata for bulk data associated with a GroupingEntity.
Definition Ioss_Field.h:25
A named value that has a known type.
Definition Ioss_Property.h:27
The main namespace for the Ioss library.
Definition Ioad_DatabaseIO.C:40
Ioss::NameList NameList
Definition Ioss_ChangeSetFactory.h:25
EntityType
The particular type of GroupingEntity.
Definition Ioss_EntityType.h:12
@ FACESET
Definition Ioss_EntityType.h:19