MicroModelicaCCompiler
4.5.3
stored_definition.hpp
Go to the documentation of this file.
1
/*****************************************************************************
2
3
This file is part of QSS Solver.
4
5
QSS Solver is free software: you can redistribute it and/or modify
6
it under the terms of the GNU General Public License as published by
7
the Free Software Foundation, either version 3 of the License, or
8
(at your option) any later version.
9
10
QSS Solver is distributed in the hope that it will be useful,
11
but WITHOUT ANY WARRANTY; without even the implied warranty of
12
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
GNU General Public License for more details.
14
15
You should have received a copy of the GNU General Public License
16
along with QSS Solver. If not, see <http://www.gnu.org/licenses/>.
17
18
******************************************************************************/
19
20
#pragma once
21
22
#include <string>
23
24
#include <
ir/class.hpp
>
25
26
namespace
MicroModelica
{
27
namespace
IR {
28
29
class
StoredDefinition {
30
public
:
31
StoredDefinition
();
32
~StoredDefinition
() =
default
;
33
bool
isModel
();
34
bool
isPackage
();
35
Model
&
model
();
36
Package&
package
();
37
void
setModel
(
string
name);
38
void
setPackage
(
string
name);
39
void
addFunction
(Function& f);
40
Option<Function>
function
(
string
name);
41
void
postProcess
();
42
43
private
:
44
ClassType
_def
;
45
FunctionTable
_functions
;
46
};
47
}
// namespace IR
48
}
// namespace MicroModelica
MicroModelica::IR::StoredDefinition::model
Model & model()
Definition:
stored_definition.cpp:75
MicroModelica::Generator::WRITER::Model
@ Model
Definition:
writer.hpp:79
MicroModelica::IR::StoredDefinition::_functions
FunctionTable _functions
Definition:
stored_definition.hpp:96
MicroModelica::IR::StoredDefinition::isPackage
bool isPackage()
Definition:
stored_definition.cpp:81
Option
Definition:
util_types.hpp:32
MicroModelica::IR::StoredDefinition::postProcess
void postProcess()
Definition:
stored_definition.cpp:83
MicroModelica::IR::StoredDefinition::isModel
bool isModel()
Definition:
stored_definition.cpp:79
MicroModelica::IR::StoredDefinition::~StoredDefinition
~StoredDefinition()=default
MicroModelica::IR::StoredDefinition::_def
ClassType _def
Definition:
stored_definition.hpp:95
MicroModelica::IR::StoredDefinition::addFunction
void addFunction(Function &f)
Definition:
stored_definition.cpp:67
MicroModelica::IR::StoredDefinition::StoredDefinition
StoredDefinition()
Definition:
stored_definition.cpp:61
MicroModelica::IR::StoredDefinition::setModel
void setModel(string name)
Definition:
stored_definition.cpp:63
MicroModelica
Definition:
files.cpp:45
MicroModelica::IR::ClassType
boost::variant< Function, Package, Model > ClassType
Definition:
class.hpp:259
MicroModelica::IR::FunctionTable
ModelTable< std::string, Function > FunctionTable
Definition:
class.hpp:130
MicroModelica::IR::StoredDefinition::package
Package & package()
Definition:
stored_definition.cpp:77
class.hpp
MicroModelica::IR::StoredDefinition::setPackage
void setPackage(string name)
Definition:
stored_definition.cpp:65
ir
stored_definition.hpp
Generated on Fri Feb 21 2025 11:43:43 for MicroModelicaCCompiler by
1.8.17