IOSS  2.0
Iotr_MinMax.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_Iotr_MinMax_h
8 #define IOSS_Iotr_MinMax_h
9 
10 #include "Ioss_VariableType.h" // for VariableType
11 #include <Ioss_Transform.h> // for Transform, Factory
12 #include <string> // for string
13 namespace Ioss {
14  class Field;
15 } // namespace Ioss
16 
17 namespace Iotr {
18 
19  class MinMax_Factory : public Factory
20  {
21  public:
22  static const MinMax_Factory *factory();
23 
24  private:
26  Ioss::Transform *make(const std::string &type) const override;
27  };
28 
29  class MinMax : public Ioss::Transform
30  {
31  friend class MinMax_Factory;
32 
33  public:
34  const Ioss::VariableType *output_storage(const Ioss::VariableType *in) const override;
35  int output_count(int in) const override;
36 
37  protected:
38  explicit MinMax(const std::string &type);
39 
40  bool internal_execute(const Ioss::Field &field, void *data) override;
41 
42  private:
43  bool doMin{false};
44  bool doAbs{false};
45  };
46 } // namespace Iotr
47 
48 #endif // IOSS_Iotr_MinMax_h
Ioss::Field
Holds metadata for bulk data associated with a GroupingEntity.
Definition: Ioss_Field.h:22
Ioss::VariableType
A generic variable type.
Definition: Ioss_VariableType.h:61
Ioss::Transform
Definition: Ioss_Transform.h:21
Iotr::MinMax::doMin
bool doMin
Definition: Iotr_MinMax.h:43
Ioss
The main namespace for the Ioss library.
Definition: Ioad_DatabaseIO.C:40
Iotr
A namespace for Ioss transformations.
Definition: Ioss_Transform.h:41
Iotr::MinMax_Factory::MinMax_Factory
MinMax_Factory()
Definition: Iotr_MinMax.C:25
Iotr::MinMax
Definition: Iotr_MinMax.h:30
Iotr::MinMax::output_storage
const Ioss::VariableType * output_storage(const Ioss::VariableType *in) const override
Definition: Iotr_MinMax.C:59
Ioss_Transform.h
Iotr::MinMax_Factory::factory
static const MinMax_Factory * factory()
Definition: Iotr_MinMax.C:19
Iotr::MinMax::internal_execute
bool internal_execute(const Ioss::Field &field, void *data) override
Definition: Iotr_MinMax.C:75
Iotr::MinMax::output_count
int output_count(int in) const override
Definition: Iotr_MinMax.C:69
Iotr::MinMax::doAbs
bool doAbs
Definition: Iotr_MinMax.h:44
Iotr::MinMax::MinMax
MinMax(const std::string &type)
Definition: Iotr_MinMax.C:35
Iotr::Factory
Definition: Ioss_Transform.h:46
anonymous_namespace{cth_pressure_map.C}::data
std::vector< char > data
Definition: cth_pressure_map.C:48
Iotr::MinMax_Factory::make
Ioss::Transform * make(const std::string &type) const override
Definition: Iotr_MinMax.C:33
Ioss_VariableType.h
Iotr::MinMax_Factory
Definition: Iotr_MinMax.h:20