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 <
util/macros.hpp
>
23
#include <
util/util_types.hpp
>
24
#include <
ast/ast_node.hpp
>
25
#include <
ast/ast_types.hpp
>
26
27
class
AST_Imports
;
28
29
class
AST_StoredDefinition_
:
public
AST_Node_
{
30
public
:
31
AST_StoredDefinition_
(AST_ClassList ml,
AST_String
within
);
32
virtual
~AST_StoredDefinition_
(){};
33
DEFINE_CLASS_PRINTER
(AST_StoredDefinition);
34
AST_ClassList
models
()
const
;
35
AST_String
within
()
const
;
36
void
accept
(
AST_Visitor
*visitor);
37
bool
hasWithin
();
38
AST_StringList
imports
();
39
40
private
:
41
AST_ClassList
_model_list
;
42
AST_String
_within
;
43
AST_Imports
*
_imports
;
44
};
AST_StoredDefinition_
Definition:
stored_definition.hpp:29
AST_StoredDefinition_::imports
AST_StringList imports()
Definition:
stored_definition.cpp:74
AST_StoredDefinition_::~AST_StoredDefinition_
virtual ~AST_StoredDefinition_()
Definition:
stored_definition.hpp:32
macros.hpp
AST_StoredDefinition_::_within
AST_String _within
Definition:
stored_definition.hpp:42
AST_StoredDefinition_::_model_list
AST_ClassList _model_list
Definition:
stored_definition.hpp:41
AST_StoredDefinition_::DEFINE_CLASS_PRINTER
DEFINE_CLASS_PRINTER(AST_StoredDefinition)
AST_StoredDefinition_::hasWithin
bool hasWithin()
Definition:
stored_definition.cpp:72
AST_String
string * AST_String
Definition:
ast_types.hpp:46
AST_StoredDefinition_::AST_StoredDefinition_
AST_StoredDefinition_(AST_ClassList ml, AST_String within)
Definition:
stored_definition.cpp:29
AST_StoredDefinition_::accept
void accept(AST_Visitor *visitor)
Definition:
stored_definition.cpp:51
AST_StoredDefinition_::within
AST_String within() const
Definition:
stored_definition.cpp:38
AST_StoredDefinition_::_imports
AST_Imports * _imports
Definition:
stored_definition.hpp:43
util_types.hpp
AST_Node_
Definition:
ast_node.hpp:29
AST_Imports
Definition:
imports.hpp:29
ast_node.hpp
ast_types.hpp
AST_Visitor
Definition:
ast_util.hpp:224
AST_StoredDefinition_::models
AST_ClassList models() const
Definition:
stored_definition.cpp:36
ast
stored_definition.hpp
Generated on Fri Feb 21 2025 11:43:43 for MicroModelicaCCompiler by
1.8.17