IOSS 2.0
Loading...
Searching...
No Matches
Iotr_MinMax.h
Go to the documentation of this file.
1// Copyright(C) 1999-2022, 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_Transform.h" // for Transform, Factory
11#include "Ioss_VariableType.h" // for VariableType
12#include <stddef.h>
13#include <string> // for string
14
15#include "iotr_export.h"
16
17namespace Ioss {
18 class Field;
19} // namespace Ioss
20
21namespace Iotr {
22
23 class IOTR_EXPORT MinMax_Factory : public Ioss::TransformFactory
24 {
25 public:
26 static const MinMax_Factory *factory();
27
28 private:
30 IOSS_NODISCARD Ioss::Transform *make(const std::string &type) const override;
31 };
32
33 class IOTR_EXPORT MinMax : public Ioss::Transform
34 {
35 friend class MinMax_Factory;
36
37 public:
39 output_storage(const Ioss::VariableType *in) const override;
40 IOSS_NODISCARD size_t output_count(size_t in) const override;
41
42 protected:
43 explicit MinMax(const std::string &type);
44
45 bool internal_execute(const Ioss::Field &field, void *data) override;
46
47 private:
48 bool doMin{false};
49 bool doAbs{false};
50 };
51} // namespace Iotr
#define IOSS_NODISCARD
Definition Ioss_CodeTypes.h:55
Holds metadata for bulk data associated with a GroupingEntity.
Definition Ioss_Field.h:25
Definition Ioss_TransformFactory.h:24
Definition Ioss_Transform.h:21
A generic variable type.
Definition Ioss_VariableType.h:70
Definition Iotr_MinMax.h:24
Definition Iotr_MinMax.h:34
The main namespace for the Ioss library.
Definition Ioad_DatabaseIO.C:40
A namespace for Ioss transformations.
Definition Iotr_Initializer.C:16