IOSS  2.0
Ioss_EntitySet.h
Go to the documentation of this file.
1 // Copyright(C) 1999-2020 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 #ifndef IOSS_Ioss_EntitySet_h
8 #define IOSS_Ioss_EntitySet_h
9 
10 #include <Ioss_GroupingEntity.h> // for GroupingEntity
11 #include <Ioss_Property.h> // for Property
12 #include <cstddef> // for size_t
13 #include <string> // for string
14 namespace Ioss {
15  class DatabaseIO;
16 } // namespace Ioss
17 
18 namespace Ioss {
19  class ElementSet;
20 
21  /** \brief Base class for all 'set'-type grouping entities, which means that members
22  * of the set are not necessarily similar, or do not necessarily have the
23  * same topology.
24  *
25  * The following derived classes are typical:
26  *
27  * -- NodeSet -- grouping of nodes (0d topology)
28  *
29  * -- EdgeSet -- grouping of edges (1d topology)
30  *
31  * -- FaceSet -- grouping of faces (2d topology) [Surface]
32  *
33  *
34  */
35  class EntitySet : public GroupingEntity
36  {
37  public:
38  Property get_implicit_property(const std::string &my_name) const override = 0;
39 
40  protected:
41  EntitySet(DatabaseIO *io_database, const std::string &my_name, size_t entity_cnt);
42  EntitySet(const EntitySet &) = default;
43  EntitySet &operator=(const EntitySet &) = delete;
44  ~EntitySet() override = default;
45 
46  protected:
47  void count_attributes() const;
48  };
49 } // namespace Ioss
50 #endif
Ioss::EntitySet::operator=
EntitySet & operator=(const EntitySet &)=delete
Ioss_Property.h
Ioss
The main namespace for the Ioss library.
Definition: Ioad_DatabaseIO.C:40
Ioss::EntitySet::get_implicit_property
Property get_implicit_property(const std::string &my_name) const override=0
Calculate and get an implicit property.
Definition: Ioss_EntitySet.C:40
Ioss::EntitySet::EntitySet
EntitySet(const EntitySet &)=default
Ioss::DatabaseIO
An input or output Database.
Definition: Ioss_DatabaseIO.h:59
Ioss::EntitySet::EntitySet
EntitySet(DatabaseIO *io_database, const std::string &my_name, size_t entity_cnt)
Base class constructor adds "name" and "entity_count" properties to the set.
Definition: Ioss_EntitySet.C:28
Ioss::EntitySet
Base class for all 'set'-type grouping entities, which means that members of the set are not necessar...
Definition: Ioss_EntitySet.h:36
Ioss_GroupingEntity.h
Ioss::EntitySet::~EntitySet
~EntitySet() override=default
Ioss::EntitySet::count_attributes
void count_attributes() const
Ioss::Property
A named value that has a known type.
Definition: Ioss_Property.h:24
Ioss::GroupingEntity
Base class for all 'grouping' entities. The following derived classes are typical:
Definition: Ioss_GroupingEntity.h:68