Minsky
variableSummary.h
Go to the documentation of this file.
1 /*
2  @copyright Steve Keen 2023
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 VARIABLE_SUMMARY_H
21 #define VARIABLE_SUMMARY_H
22 #include "variableType.h"
23 #include <string>
24 #include <vector>
25 namespace minsky
26 {
28  struct Summary
29  {
30  std::string valueId;
31  std::string name;
33  std::string definition;
34  std::string udfDefinition;
35  std::string init;
37  double value=nan("");
38  std::string scope;
39  std::string godley;
40  std::vector<unsigned> dimensions;
41  std::string units;
42  };
43 
44 }
45 
46 #include "variableSummary.cd"
47 #include "variableSummary.xcd"
48 #include "variableSummary.rcd"
49 #endif
std::string definition
LaTeXable definition.
std::string udfDefinition
use function compatible definition
std::string name
LaTeXable name.
std::string scope
name, id of scope if local, ":" if global
std::string init
initial value
std::vector< unsigned > dimensions
dimensions (empty if scalar
summary for the variable tab (aka summary tab).
double sliderMax
slider parameters
std::string valueId
double value
value, if scalar
std::string units
Creation and access to the minskyTCL_obj object, which has code to record whenever Minsky&#39;s state cha...
Definition: constMap.h:22
VariableType::Type type
std::string godley
name or id of Godley table, if contained in a Godley table