Loading...
Searching...
No Matches
gamsparameter.h
1
26#ifndef GAMSPARAMETER_H
27#define GAMSPARAMETER_H
28
29#include "gamssymbol.h"
30#include "gamsparameterrecord.h"
31
32namespace gams {
33
36class LIBSPEC GAMSParameter : public GAMSSymbol
37{
38public:
40
43
47
50
54
58
63
67 GAMSParameterRecord firstRecord(const std::vector<std::string>& slice);
68
72
76 GAMSParameterRecord firstRecord(const std::string& key1);
77
82 GAMSParameterRecord firstRecord(const std::string& key1, const std::string& key2);
83
89 GAMSParameterRecord firstRecord(const std::string& key1, const std::string& key2, const std::string& key3);
90
94 GAMSParameterRecord lastRecord(const std::vector<std::string>& slice);
95
99
103 GAMSParameterRecord lastRecord(const std::string& key1);
104
109 GAMSParameterRecord lastRecord(const std::string& key1, const std::string& key2);
110
116 GAMSParameterRecord lastRecord(const std::string& key1, const std::string& key2, const std::string& key3);
117
121 GAMSParameterRecord findRecord(const std::vector<std::string>& keys);
122
126
130 GAMSParameterRecord findRecord(const std::string& key1);
131
136 GAMSParameterRecord findRecord(const std::string& key1, const std::string& key2);
137
143 GAMSParameterRecord findRecord(const std::string& key1, const std::string& key2, const std::string& key3);
144
148 GAMSParameterRecord mergeRecord(const std::vector<std::string>& keys);
149
153
157 GAMSParameterRecord mergeRecord(const std::string& key1);
158
163 GAMSParameterRecord mergeRecord(const std::string& key1, const std::string& key2);
164
170 GAMSParameterRecord mergeRecord(const std::string& key1, const std::string& key2, const std::string& key3);
171
175 GAMSParameterRecord addRecord(const std::vector<std::string>& keys);
176
180
184 GAMSParameterRecord addRecord(const std::string& key1);
185
190 GAMSParameterRecord addRecord(const std::string& key1, const std::string& key2);
191
197 GAMSParameterRecord addRecord(const std::string& key1, const std::string& key2, const std::string& key3);
198
199private:
200 friend class GAMSDatabaseImpl;
201 friend class GAMSSymbolIter<GAMSParameter>;
202 GAMSParameter(GAMSDatabase& database, void *symPtr, int dim, std::string name, std::string text);
203 GAMSParameter(GAMSDatabase& database, const std::string& name, const int dim, const std::string& text);
204 GAMSParameter(GAMSDatabase& database, const std::string& name, const std::string& text, const std::vector<GAMSDomain>& domains);
205
206};
207
208
209} // namespace gams
210
211#endif // GAMSPARAMETER_H
This is the representation of a single record of a GAMSParameter.
GAMSParameterRecord lastRecord()
GAMSParameterRecord lastRecord(const std::string &key1, const std::string &key2)
GAMSParameterRecord addRecord(const std::string &key1)
GAMSParameterRecord findRecord(const std::vector< std::string > &keys)
GAMSParameterRecord lastRecord(const std::string &key1, const std::string &key2, const std::string &key3)
GAMSParameterRecord mergeRecord(const std::string &key1, const std::string &key2)
GAMSParameterRecord firstRecord(const std::string &key1, const std::string &key2, const std::string &key3)
GAMSParameterRecord mergeRecord(const std::string &key1, const std::string &key2, const std::string &key3)
GAMSParameterRecord firstRecord(const std::vector< std::string > &slice)
GAMSParameterRecord findRecord(const std::string &key1)
GAMSParameterRecord addRecord(const std::vector< std::string > &keys)
GAMSParameterRecord addRecord()
~GAMSParameter()
Destructor.
GAMSParameterRecord mergeRecord(const std::string &key1)
GAMSSymbolIter< GAMSParameter > begin()
GAMSParameter(const GAMSSymbol &other)
GAMSParameterRecord findRecord(const std::string &key1, const std::string &key2, const std::string &key3)
GAMSSymbolIter< GAMSParameter > end()
GAMSParameterRecord firstRecord()
GAMSParameterRecord firstRecord(const std::string &key1, const std::string &key2)
GAMSParameterRecord firstRecord(const std::string &key1)
GAMSParameterRecord mergeRecord()
GAMSParameterRecord lastRecord(const std::vector< std::string > &slice)
GAMSParameterRecord findRecord(const std::string &key1, const std::string &key2)
GAMSParameterRecord mergeRecord(const std::vector< std::string > &keys)
GAMSParameterRecord lastRecord(const std::string &key1)
GAMSParameter()
Standard constructor.
Definition: gamsparameter.h:42
GAMSParameter & operator=(const GAMSParameter &other)
GAMSParameterRecord addRecord(const std::string &key1, const std::string &key2, const std::string &key3)
GAMSParameterRecord addRecord(const std::string &key1, const std::string &key2)
GAMSParameterRecord findRecord()
Definition: gams.h:91