#include <property.h>
|
| MProperty () |
|
| MProperty (MInt size, MString propname, MInt Solver, MString *value) |
|
| MProperty (MInt size, MString propname, MInt Solver, MFloat *value) |
|
| MProperty (MInt size, MString propname, MInt Solver, MInt *value) |
|
| MProperty (MInt size, MString propname, MInt Solver, MBool *value) |
|
| ~MProperty () |
|
MInt | count () |
|
MInt | doesExist () |
|
MString * | asString () |
|
MInt * | asInt () |
|
MFloat * | asFloat () |
|
MBool * | asBool () |
|
VariableType | type () |
|
void | clear () |
|
MString * | asString (MInt index) |
|
MInt * | asInt (MInt index) |
|
MFloat * | asFloat (MInt index) |
|
MBool * | asBool (MInt index) |
|
Definition at line 13 of file property.h.
◆ MProperty() [1/5]
◆ MProperty() [2/5]
Definition at line 58 of file property.cpp.
58 {
59
67 for(
MInt i = 0; i < size; i++)
69}
VariableType propertyType
Parent class of all solvers This class is the base for all solvers. I.e. all solver class (e....
std::basic_string< char > MString
◆ MProperty() [3/5]
◆ MProperty() [4/5]
◆ MProperty() [5/5]
Definition at line 97 of file property.cpp.
97 {
98
106 for(
MInt i = 0; i < size; i++)
108}
◆ ~MProperty()
MProperty::~MProperty |
( |
| ) |
|
◆ asBool() [1/2]
MBool * MProperty::asBool |
( |
| ) |
|
Definition at line 144 of file property.cpp.
144 {
146 stringstream errorMessage;
147 errorMessage <<
"Property " <<
name <<
" is requested as a Bool, but it is a ";
150 errorMessage << "INT!!";
151 break;
152 }
154 errorMessage << "FLOAT!!";
155 break;
156 }
158 errorMessage << "STRING!!";
159 break;
160 }
162 errorMessage << "BOOL!!";
163 break;
164 }
165 default: {
166 mTerm(1, AT_,
"MProperty::asBool(): switch variable 'propertyType' not matching any case");
167 }
168 }
169 mTerm(1, AT_, errorMessage.str());
170 }
172}
void mTerm(const MInt errorCode, const MString &location, const MString &message)
◆ asBool() [2/2]
Definition at line 277 of file property.cpp.
277 {
279 stringstream errorMessage;
280 errorMessage <<
"Property " <<
name <<
" is requested as a Bool, but it is a ";
283 errorMessage << "INT!!";
284 break;
285 }
287 errorMessage << "FLOAT!!";
288 break;
289 }
291 errorMessage << "STRING!!";
292 break;
293 }
295 errorMessage << "BOOL!!";
296 break;
297 }
298 default: {
299 mTerm(1, AT_,
"MProperty::asBool(): switch variable 'propertyType' not matching any case");
300 }
301 }
302 mTerm(1, AT_, errorMessage.str());
303 }
305 stringstream errorMessage;
306 errorMessage <<
" MProperty::asBool() for property " <<
name <<
" is requested index out of range! It has "
307 <<
elements <<
" ,but it is asked for the " <<
index + 1 <<
" element! ";
308 mTerm(1, AT_, errorMessage.str());
309 }
310
311
313}
IdType index(const FloatType *const x, const IdType level)
Return Hilbert index for given location and level in 2D or 3D.
◆ asFloat() [1/2]
MFloat * MProperty::asFloat |
( |
| ) |
|
Definition at line 204 of file property.cpp.
204 {
206 stringstream errorMessage;
207 errorMessage <<
"Property " <<
name <<
" is requested as a Float, but it is a ";
210 errorMessage << "INT!!";
211 break;
212 }
214 errorMessage << "FLOAT!!";
215 break;
216 }
218 errorMessage << "STRING!!";
219 break;
220 }
222 errorMessage << "BOOL!!";
223 break;
224 }
225 default: {
226 mTerm(1, AT_,
"MProperty::asFloat(): switch variable 'propertyType' not matching any case");
227 }
228 }
229 mTerm(1, AT_, errorMessage.str());
230 }
231
232
236 }
237
239}
◆ asFloat() [2/2]
Definition at line 352 of file property.cpp.
352 {
353
355 stringstream errorMessage;
356 errorMessage <<
"Property " <<
name <<
" is requested as a float, but it is a ";
359 errorMessage << "INT!!";
360 break;
361 }
363 errorMessage << "FLOAT!!";
364 break;
365 }
367 errorMessage << "STRING!!";
368 break;
369 }
371 errorMessage << "BOOL!!";
372 break;
373 }
374 default: {
375 mTerm(1, AT_,
"MProperty::asInt(): switch variable 'propertyType' not matching any case");
376 }
377 }
378 mTerm(1, AT_, errorMessage.str());
379 }
380
381
383 stringstream errorMessage;
384 errorMessage <<
" MProperty::asFloat() for property " <<
name <<
" is requested index out of range! It has "
385 <<
elements <<
" ,but it is asked for the " <<
index + 1 <<
" element! ";
386 mTerm(1, AT_, errorMessage.str());
387 }
388
389
393 }
394
396}
◆ asInt() [1/2]
MInt * MProperty::asInt |
( |
| ) |
|
Definition at line 174 of file property.cpp.
174 {
176 stringstream errorMessage;
177 errorMessage <<
"Property " <<
name <<
" is requested as a Int, but it is a ";
180 errorMessage << "INT!!";
181 break;
182 }
184 errorMessage << "FLOAT!!";
185 break;
186 }
188 errorMessage << "STRING!!";
189 break;
190 }
192 errorMessage << "BOOL!!";
193 break;
194 }
195 default: {
196 mTerm(1, AT_,
"MProperty::asInt(): switch variable 'propertyType' not matching any case");
197 }
198 }
199 mTerm(1, AT_, errorMessage.str());
200 }
202}
◆ asInt() [2/2]
Definition at line 314 of file property.cpp.
314 {
316 stringstream errorMessage;
317 errorMessage <<
"Property " <<
name <<
" is requested as a Int, but it is a ";
320 errorMessage << "INT!!";
321 break;
322 }
324 errorMessage << "FLOAT!!";
325 break;
326 }
328 errorMessage << "STRING!!";
329 break;
330 }
332 errorMessage << "BOOL!!";
333 break;
334 }
335 default: {
336 mTerm(1, AT_,
"MProperty::asInt(): switch variable 'propertyType' not matching any case");
337 }
338 }
339 mTerm(1, AT_, errorMessage.str());
340 }
342 stringstream errorMessage;
343 errorMessage <<
" MProperty::asInt() for property " <<
name <<
" is requested index out of range! It has "
344 <<
elements <<
" ,but it is asked for the " <<
index + 1 <<
" element! ";
345 mTerm(1, AT_, errorMessage.str());
346 }
347
348
350}
◆ asString() [1/2]
Definition at line 114 of file property.cpp.
114 {
116 stringstream errorMessage;
117 errorMessage <<
"Property " <<
name <<
" is requested as a String, but it is a ";
120 errorMessage << "INT!!";
121 break;
122 }
124 errorMessage << "FLOAT!!";
125 break;
126 }
128 errorMessage << "STRING!!";
129 break;
130 }
132 errorMessage << "BOOL!!";
133 break;
134 }
135 default: {
136 mTerm(1, AT_,
"MProperty::asString(): switch variable 'propertyType' not matching any case");
137 }
138 }
139 mTerm(1, AT_, errorMessage.str());
140 }
142}
◆ asString() [2/2]
Definition at line 241 of file property.cpp.
241 {
243 stringstream errorMessage;
244 errorMessage <<
"Property " <<
name <<
" is requested as a String, but it is a ";
247 errorMessage << "INT!!";
248 break;
249 }
251 errorMessage << "FLOAT!!";
252 break;
253 }
255 errorMessage << "STRING!!";
256 break;
257 }
259 errorMessage << "BOOL!!";
260 break;
261 }
262 default: {
263 mTerm(1, AT_,
"MProperty::asString(): switch variable 'propertyType' not matching any case");
264 }
265 }
266 mTerm(1, AT_, errorMessage.str());
267 }
269 stringstream errorMessage;
270 errorMessage <<
" MProperty::asString() for property " <<
name <<
" is requested index out of range! It has "
271 <<
elements <<
" ,but it is asked for the " <<
index + 1 <<
" element! " << endl;
272 mTerm(1, AT_, errorMessage.str());
273 }
275}
◆ clear()
void MProperty::clear |
( |
| ) |
|
Definition at line 17 of file property.cpp.
17 {
18 TRACE();
22
23
24
27 }
28
29 break;
30 }
33 break;
34 }
37 break;
38 }
41 break;
42 }
43 default: {
44 stringstream errorMessage;
45 errorMessage <<
"MProperty::clear(): switch variable 'propertyType' with value " <<
propertyType
46 << " not matching any case." << endl;
47 mTerm(1, AT_, errorMessage.str());
48 }
49 }
50}
◆ count()
MInt MProperty::count |
( |
| ) |
|
◆ doesExist()
MInt MProperty::doesExist |
( |
| ) |
|
◆ type()
◆ boolField
MBool* MProperty::boolField = nullptr |
◆ elements
MInt MProperty::elements = -1 |
◆ floatField
MFloat* MProperty::floatField = nullptr |
◆ intField
MInt* MProperty::intField = nullptr |
◆ name
◆ noAccesses
MInt MProperty::noAccesses = 0 |
◆ noOldAccesses
MInt MProperty::noOldAccesses = 0 |
◆ propertyType
◆ solverId
MInt MProperty::solverId = -1 |
◆ stringField
MString* MProperty::stringField = nullptr |
The documentation for this class was generated from the following files:
- /home/gitlab-runner/scratch/builds/oxpnswJ6/1/aia/m-AIA/m-AIA/src/property.h
- /home/gitlab-runner/scratch/builds/oxpnswJ6/1/aia/m-AIA/m-AIA/src/property.cpp