Minsky
enumerateSchema1.h
Go to the documentation of this file.
1 /*
2  @copyright Steve Keen 2013
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 #ifndef ENEUMERATE_SCHEMA1_H
21 #define ENEUMERATE_SCHEMA1_H
22 
23 // These are declared in a separate header file, as classdesc core
24 // dumps on template member function invocation
25 
26 namespace schema1
27 {
30  template<class F>
32  {
33  f.template registerType<Item>();
34  f.template registerType<Port>();
35  f.template registerType<Wire>();
36  f.template registerType<Operation>();
37  f.template registerType<Variable>();
38  f.template registerType<Plot>();
39  f.template registerType<Group>();
40  f.template registerType<Switch>();
41  f.template registerType<Godley>();
42  f.template registerType<Group>();
43  }
44 
45  template<class Factory>
46  void enumerateRegisterLayout(Factory& f)
47  {
48  f.template registerType<Layout>();
49  f.template registerType<PositionLayout>();
50  f.template registerType<WireLayout>();
51  f.template registerType<ItemLayout>();
52  f.template registerType<GroupLayout>();
53  f.template registerType<SliderLayout>();
54  f.template registerType<PlotLayout>();
55  f.template registerType<UnionLayout>();
56  }
57 
58 }
59 
60 #endif
function f
Definition: canvas.m:1
void enumerateRegisterItems(F &f)
utilities to call registerType for these class heirarchies, for different factory types ...
void enumerateRegisterLayout(Factory &f)