IOSS 2.0
Loading...
Searching...
No Matches
Iotr_Scale.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"
11#include "Ioss_VariableType.h"
12#include <stddef.h>
13#include <string>
14
15#include "iotr_export.h"
16
17namespace Ioss {
18 class Field;
19} // namespace Ioss
20
21namespace Iotr {
22
23 class IOTR_EXPORT Scale_Factory : public Ioss::TransformFactory
24 {
25 public:
26 static const Scale_Factory *factory();
27
28 private:
30 IOSS_NODISCARD Ioss::Transform *make(const std::string & /*unused*/) const override;
31 };
32
33 class IOTR_EXPORT Scale : public Ioss::Transform
34 {
35 friend class Scale_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 void set_property(const std::string &name, int value) override;
43 void set_property(const std::string &name, double value) override;
44
45 protected:
47
48 bool internal_execute(const Ioss::Field &field, void *data) override;
49
50 private:
51 int intMultiplier{1};
52 double realMultiplier{1.0};
53 };
54} // 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_Scale.h:24
Definition Iotr_Scale.h:34
The main namespace for the Ioss library.
Definition Ioad_DatabaseIO.C:40
A namespace for Ioss transformations.
Definition Iotr_Initializer.C:16