PeriDyno 1.0.0
Loading...
Searching...
No Matches
Subtract.h
Go to the documentation of this file.
1
16
17#pragma once
19
20namespace dyno
21{
22 class Subtract : public ComputeModule
23 {
24 public:
26 ~Subtract() override {};
27
28 std::string caption() override { return "Subtract"; }
29
30 std::string getModuleType() override { return "Operator"; }
31 };
32
33 template<typename TDataType>
35 {
37 public:
38 typedef typename TDataType::Real Real;
39
41
42 DEF_VAR_IN(Real, A, "First input");
43 DEF_VAR_IN(Real, B, "Second input");
44
46
47 protected:
48 void compute() override;
49 };
50}
std::string caption() override
Return the caption.
Definition Subtract.h:28
std::string getModuleType() override
Definition Subtract.h:30
~Subtract() override
Definition Subtract.h:26
void compute() override
Definition Subtract.cpp:8
DEF_VAR_IN(Real, A, "First input")
DECLARE_TCLASS(SubtractRealAndReal, TDataType)
TDataType::Real Real
Definition Subtract.h:38
DEF_VAR_IN(Real, B, "Second input")
This is an implementation of AdditiveCCD based on peridyno.
Definition Array.h:25