Loading [MathJax]/extensions/tex2jax.js
MAIA bb96820c
Multiphysics at AIA
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Pages
property.h
Go to the documentation of this file.
1// Copyright (C) 2024 The m-AIA AUTHORS
2//
3// This file is part of m-AIA (https://git.rwth-aachen.de/aia/m-AIA/m-AIA)
4//
5// SPDX-License-Identifier: LGPL-3.0-only
6
7#ifndef PROPERTY_H
8#define PROPERTY_H
9
10#include "INCLUDE/maiatypes.h"
11#include "enums.h"
12
13class MProperty {
14 public:
15 MProperty();
16 MProperty(MInt size, MString propname, MInt Solver, MString* value);
17 MProperty(MInt size, MString propname, MInt Solver, MFloat* value);
18 MProperty(MInt size, MString propname, MInt Solver, MInt* value);
19 MProperty(MInt size, MString propname, MInt Solver, MBool* value);
20 ~MProperty();
21 MInt count();
24 MInt* asInt();
25 MFloat* asFloat();
26 MBool* asBool();
28 void clear();
29
30 MString* asString(MInt index);
31 MInt* asInt(MInt index);
32 MFloat* asFloat(MInt index);
33 MBool* asBool(MInt index);
40 MString* stringField = nullptr;
41 MFloat* floatField = nullptr;
42 MInt* intField = nullptr;
43 MBool* boolField = nullptr;
44};
45
46
47#endif
VariableType propertyType
Definition: property.h:34
MInt elements
Definition: property.h:35
MFloat * asFloat()
Definition: property.cpp:204
MInt * intField
Definition: property.h:42
MString name
Definition: property.h:36
MInt noAccesses
Definition: property.h:37
VariableType type()
Definition: property.cpp:110
MInt * asInt()
Definition: property.cpp:174
void clear()
Definition: property.cpp:17
MBool * asBool()
Definition: property.cpp:144
MString * stringField
Definition: property.h:40
MInt solverId
Definition: property.h:39
MInt doesExist()
MInt count()
Definition: property.cpp:112
MInt noOldAccesses
Definition: property.h:38
MFloat * floatField
Definition: property.h:41
MString * asString()
Definition: property.cpp:114
MBool * boolField
Definition: property.h:43
~MProperty()
Definition: property.cpp:15
Parent class of all solvers This class is the base for all solvers. I.e. all solver class (e....
Definition: solver.h:29
VariableType
Definition: enums.h:269
int32_t MInt
Definition: maiatypes.h:62
std::basic_string< char > MString
Definition: maiatypes.h:55
double MFloat
Definition: maiatypes.h:52
bool MBool
Definition: maiatypes.h:58