Minsky
itemTemplateInstantiations.cc
Go to the documentation of this file.
1 /*
2  @copyright Steve Keen 2019
3  @author Russell Standish
4  This file is part of Minsky.
5 
6  Minsky is free software: you can redistribute it and/or modify it
7  under the terms of the GNU General Public License as published by
8  the Free Software Foundation, either version 3 of the License, or
9  (at your option) any later version.
10 
11  Minsky is distributed in the hope that it will be useful,
12  but WITHOUT ANY WARRANTY; without even the implied warranty of
13  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  GNU General Public License for more details.
15 
16  You should have received a copy of the GNU General Public License
17  along with Minsky. If not, see <http://www.gnu.org/licenses/>.
18 */
19 
20 #include "dataOp.h"
21 #include "intOp.h"
22 #include "item.h"
23 #include "lasso.h"
24 #include "lock.h"
25 #include "operation.h"
26 #include "ravelWrap.h"
27 #include "selection.h"
28 #include "userFunction.h"
29 #include "sheet.h"
30 #include "switchIcon.h"
31 #include "variable.h"
32 
33 #include "minsky_epilogue.h"
34 
35 namespace classdesc
36 {
37  class RESTProcess_t;
38  class json_pack_t;
39 }
40 
41 namespace minsky
42 {
44  template <class T, class B>
45  void ItemT<T,B>::RESTProcess(classdesc::RESTProcess_t& rp, const std::string& d)
46  {}
47  template <class T, class B>
48  void ItemT<T,B>::RESTProcess(classdesc::RESTProcess_t& rp, const std::string& d) const
49  {}
50  template <class T, class B>
51  void ItemT<T,B>::json_pack(classdesc::json_pack_t& j) const
52  {}
53 
55  void Item::RESTProcess(classdesc::RESTProcess_t& rp, const std::string& d)
56  {}
57  void Item::RESTProcess(classdesc::RESTProcess_t& rp, const std::string& d) const
58  {}
59  void Item::json_pack(classdesc::json_pack_t& rp) const
60  {}
61 }
62 
64 
65 namespace minsky
66 {
67  DEFOP(constant)
68  DEFOP(time)
69  DEFOP(integrate)
70  DEFOP(differentiate)
71  DEFOP(data)
72  DEFOP(ravel)
73  DEFOP(euler)
74  DEFOP(pi)
75  DEFOP(zero)
76  DEFOP(one)
77  DEFOP(inf)
78  DEFOP(percent)
79  DEFOP(add)
80  DEFOP(subtract)
81  DEFOP(multiply)
82  DEFOP(divide)
83  DEFOP(min)
84  DEFOP(max)
85  DEFOP(and_)
86  DEFOP(or_)
87  DEFOP(log)
88  DEFOP(pow)
90  DEFOP(lt)
91  DEFOP(le)
92  DEFOP(eq)
93  DEFOP(userFunction)
94  DEFOP(copy)
95  DEFOP(sqrt)
96  DEFOP(exp)
97  DEFOP(ln)
98  DEFOP(sin)
99  DEFOP(cos)
100  DEFOP(tan)
101  DEFOP(asin)
102  DEFOP(acos)
103  DEFOP(atan)
104  DEFOP(sinh)
105  DEFOP(cosh)
106  DEFOP(tanh)
107  DEFOP(abs)
108  DEFOP(floor)
109  DEFOP(frac)
110  DEFOP(not_)
111  DEFOP(Gamma)
112  DEFOP(fact)
113  DEFOP(sum)
114  DEFOP(product)
115  DEFOP(infimum)
116  DEFOP(supremum)
117  DEFOP(any)
118  DEFOP(all)
119  DEFOP(infIndex)
120  DEFOP(supIndex)
121  DEFOP(runningSum)
122  DEFOP(runningProduct)
123  DEFOP(difference)
124  DEFOP(innerProduct)
125  DEFOP(outerProduct)
126  DEFOP(index)
127  DEFOP(gather)
128  DEFOP(meld)
129  DEFOP(merge)
130  DEFOP(numOps)
131 
132  DEFVAR(undefined)
133  DEFVAR(constant)
134  DEFVAR(parameter)
135  DEFVAR(flow)
136  DEFVAR(integral)
137  DEFVAR(stock)
138  DEFVAR(tempFlow)
139 
140  DEF(GodleyIcon,Item)
141  DEF(Group,Item)
142  DEF(Lock,Item)
143  DEF(PlotWidget,Item)
144  DEF(Sheet,Item)
145  DEF(SwitchIcon,BottomRightResizerItem)
146 
147  DEF(DataOp, Operation<OperationType::data>)
148  DEF(IntOp, Operation<OperationType::integrate>)
149  DEF(Ravel, Operation<OperationType::ravel>)
150  DEF(UserFunction, Operation<OperationType::userFunction>)
151 }
Expr sin(const Expr &x)
Definition: expr.h:131
Expr cos(const Expr &x)
Definition: expr.h:137
Expr polygamma(const Expr &x, const Expr &y)
Definition: expr.h:166
UnitsExpressionWalker pow(const UnitsExpressionWalker &x, const UnitsExpressionWalker &y)
Expr sqrt(const Expr &x)
Definition: expr.h:154
Expr Gamma(const Expr &x)
Definition: expr.h:160
#define DEF(type, base)
void RESTProcess(classdesc::RESTProcess_t &rp, const std::string &d) override
runs the RESTProcess descriptor suitable for this type
Definition: item.h:333
Creation and access to the minskyTCL_obj object, which has code to record whenever Minsky&#39;s state cha...
Definition: constMap.h:22
Expr exp(const Expr &x)
Definition: expr.h:126
Expr sinh(const Expr &x)
Definition: expr.h:142
Expr cosh(const Expr &x)
Definition: expr.h:148
void json_pack(classdesc::json_pack_t &j) const override
Definition: itemT.h:51
Expr fact(const Expr &x)
Definition: expr.h:173
#define DEFOP(type)
#define DEFVAR(type)
virtual void json_pack(classdesc::json_pack_t &j) const
Definition: item.h:337
void RESTProcess(classdesc::RESTProcess_t &rp, const std::string &d) override
dummy template definition for use with gui executable
Definition: itemT.h:47
Expr log(const Expr &x)
Definition: expr.h:120