IOSS 2.0
Loading...
Searching...
No Matches
Ioss_CommSet.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_EntityType.h" // for EntityType, etc
12#include "Ioss_GroupingEntity.h" // for GroupingEntity
13#include "Ioss_Property.h" // for Property
14#include <cstddef> // for size_t
15#include <cstdint> // for int64_t
16#include <string> // for string
17namespace Ioss {
18 class DatabaseIO;
19} // namespace Ioss
20namespace Ioss {
21 class Field;
22} // namespace Ioss
23
24namespace Ioss {
25
26 class IOSS_EXPORT CommSet : public GroupingEntity
27 {
28 public:
29 CommSet(DatabaseIO *io_database, const std::string &my_name, const std::string &entity_type,
30 size_t entity_cnt);
31 CommSet(const CommSet &) = default;
32
33 IOSS_NODISCARD std::string type_string() const override { return "CommSet"; }
34 IOSS_NODISCARD std::string short_type_string() const override { return "commlist"; }
35 IOSS_NODISCARD std::string contains_string() const override { return "Entity/Processor pair"; }
36 IOSS_NODISCARD EntityType type() const override { return COMMSET; }
37
38 // Handle implicit properties -- These are calculated from data stored
39 // in the grouping entity instead of having an explicit value assigned.
40 // An example would be 'element_block_count' for a region.
41 IOSS_NODISCARD Property get_implicit_property(const std::string &my_name) const override;
42
43 protected:
44 int64_t internal_get_field_data(const Field &field, void *data,
45 size_t data_size) const override;
46
47 int64_t internal_put_field_data(const Field &field, void *data,
48 size_t data_size) const override;
49
50 int64_t internal_get_zc_field_data(const Field &field, void **data,
51 size_t *data_size) const override;
52 };
53} // namespace Ioss
#define IOSS_NODISCARD
Definition Ioss_CodeTypes.h:55
Definition Ioss_CommSet.h:27
IOSS_NODISCARD EntityType type() const override
Get the EntityType, which indicates the particular type of GroupingEntity this is.
Definition Ioss_CommSet.h:36
IOSS_NODISCARD std::string short_type_string() const override
Get a short name of the particular type of entity.
Definition Ioss_CommSet.h:34
IOSS_NODISCARD std::string type_string() const override
Get the name of the particular type of entity.
Definition Ioss_CommSet.h:33
IOSS_NODISCARD std::string contains_string() const override
What does this entity contain.
Definition Ioss_CommSet.h:35
CommSet(const CommSet &)=default
An input or output Database.
Definition Ioss_DatabaseIO.h:63
Holds metadata for bulk data associated with a GroupingEntity.
Definition Ioss_Field.h:25
Base class for all 'grouping' entities. The following derived classes are typical:
Definition Ioss_GroupingEntity.h:67
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
EntityType
The particular type of GroupingEntity.
Definition Ioss_EntityType.h:12
@ COMMSET
Definition Ioss_EntityType.h:23