Debian Codegraph @

packages/seacas/libraries/ioss/src/Ioss_NodeSet.C

raw
1 // Copyright(C) 1999-2020, 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
7 #include "Ioss_DatabaseIO.h"
8 #include "Ioss_NodeSet.h"
9 #include "Ioss_Property.h"
10 #include <cstddef>
11
12 #include "Ioss_EntitySet.h"
13
14 namespace Ioss {
15 class Field;
16 } // namespace Ioss
17
18 Ioss::NodeSet::NodeSet() : Ioss::EntitySet(nullptr, "invalid", 0) {}
19
20 /** \brief Create a node set.
21 *
22 * \param[in] io_database The database associated with the region containing the node set.
23 * \param[in] my_name The node set's name.
24 * \param[in] number_nodes The number of nodes in the node set.
25 */
26 Ioss::NodeSet::NodeSet(Ioss::DatabaseIO *io_database, const std::string &my_name,
27 int64_t number_nodes)
28 : Ioss::EntitySet(io_database, my_name, number_nodes)
29 {
30 }
31
32 int64_t Ioss::NodeSet::internal_get_field_data(const Ioss::Field &field, void *data,
33 size_t data_size) const
34 {
35 return get_database()->get_field(this, field, data, data_size);
36 }
37
38 int64_t Ioss::NodeSet::internal_put_field_data(const Ioss::Field &field, void *data,
39 size_t data_size) const
40 {
41 return get_database()->put_field(this, field, data, data_size);
42 }
43
44 int64_t Ioss::NodeSet::internal_get_zc_field_data(const Field &field, void **data,
45 size_t *data_size) const
46 {
47 return get_database()->get_zc_field(this, field, data, data_size);
48 }
49
50 Ioss::Property Ioss::NodeSet::get_implicit_property(const std::string &my_name) const
51 {
52 return Ioss::EntitySet::get_implicit_property(my_name);
53 }