MicroModelicaCCompiler  4.5.3
MicroModelica::IR::Package Class Reference

#include <class.hpp>

Inheritance diagram for MicroModelica::IR::Package:
Collaboration diagram for MicroModelica::IR::Package:

Public Member Functions

 Package ()
 
 Package (string name)
 
virtual ~Package ()=default
 
Util::VarSymbolTable symbols () const
 
string name () const
 
void insert (string n)
 
void insert (AST_Equation eq)
 
void insert (AST_Statement stm, bool initial)
 
void insert (AST_Statement stm)
 
void setFunctions (FunctionTable &fs)
 
void insert (AST_External_Function_Call efc)
 
void insert (VarName n, Util::Variable &vi, DEC_Type type)
 
void insert (VarName n, Util::Variable &vi)
 
void insert (AST_Argument_Modification x)
 
Util::ImportTable imports () const
 
FunctionTable definitions ()
 
std::string fileName ()
 
std::string prefix ()
 
- Public Member Functions inherited from MicroModelica::IR::Class
virtual ~Class ()=default
 

Private Attributes

Util::ImportTable _imports
 
std::string _name
 
FunctionTable _functions
 
CompiledPackageTable _packages
 

Detailed Description

Definition at line 132 of file class.hpp.

Constructor & Destructor Documentation

◆ Package() [1/2]

MicroModelica::IR::Package::Package ( )
inline

Definition at line 134 of file class.hpp.

◆ Package() [2/2]

MicroModelica::IR::Package::Package ( string  name)

Definition at line 186 of file class.cpp.

◆ ~Package()

virtual MicroModelica::IR::Package::~Package ( )
virtualdefault

Member Function Documentation

◆ definitions()

FunctionTable MicroModelica::IR::Package::definitions ( )

Definition at line 212 of file class.cpp.

◆ fileName()

string MicroModelica::IR::Package::fileName ( )

Definition at line 214 of file class.cpp.

◆ imports()

ImportTable MicroModelica::IR::Package::imports ( ) const
virtual

Implements MicroModelica::IR::Class.

Definition at line 210 of file class.cpp.

◆ insert() [1/8]

void MicroModelica::IR::Package::insert ( AST_Argument_Modification  x)
virtual

Implements MicroModelica::IR::Class.

Definition at line 206 of file class.cpp.

◆ insert() [2/8]

void MicroModelica::IR::Package::insert ( AST_Equation  eq)
virtual

Implements MicroModelica::IR::Class.

Definition at line 192 of file class.cpp.

References _imports.

◆ insert() [3/8]

void MicroModelica::IR::Package::insert ( AST_External_Function_Call  efc)
virtual

Implements MicroModelica::IR::Class.

Definition at line 200 of file class.cpp.

◆ insert() [4/8]

void MicroModelica::IR::Package::insert ( AST_Statement  stm)
virtual

Implements MicroModelica::IR::Class.

Definition at line 194 of file class.cpp.

References _functions.

◆ insert() [5/8]

void MicroModelica::IR::Package::insert ( AST_Statement  stm,
bool  initial 
)
virtual

Implements MicroModelica::IR::Class.

Definition at line 196 of file class.cpp.

References _name, MicroModelica::Util::Utils::instance(), and MicroModelica::Util::Utils::packageName().

Here is the call graph for this function:

◆ insert() [6/8]

void MicroModelica::IR::Package::insert ( string  n)
virtual

Implements MicroModelica::IR::Class.

Definition at line 190 of file class.cpp.

References _name.

◆ insert() [7/8]

void MicroModelica::IR::Package::insert ( VarName  n,
Util::Variable vi 
)
virtual

Implements MicroModelica::IR::Class.

Definition at line 204 of file class.cpp.

◆ insert() [8/8]

void MicroModelica::IR::Package::insert ( VarName  n,
Util::Variable vi,
DEC_Type  type 
)
virtual

Implements MicroModelica::IR::Class.

Definition at line 202 of file class.cpp.

◆ name()

string MicroModelica::IR::Package::name ( ) const
virtual

Implements MicroModelica::IR::Class.

Definition at line 208 of file class.cpp.

◆ prefix()

string MicroModelica::IR::Package::prefix ( )

Definition at line 216 of file class.cpp.

◆ setFunctions()

void MicroModelica::IR::Package::setFunctions ( FunctionTable fs)

Definition at line 198 of file class.cpp.

References _name.

◆ symbols()

VarSymbolTable MicroModelica::IR::Package::symbols ( ) const
virtual

Implements MicroModelica::IR::Class.

Definition at line 188 of file class.cpp.

Member Data Documentation

◆ _functions

FunctionTable MicroModelica::IR::Package::_functions
private

Definition at line 156 of file class.hpp.

Referenced by MicroModelica::IR::Function::annotations(), and insert().

◆ _imports

Util::ImportTable MicroModelica::IR::Package::_imports
private

Definition at line 154 of file class.hpp.

Referenced by insert(), and MicroModelica::IR::Function::statements().

◆ _name

std::string MicroModelica::IR::Package::_name
private

Definition at line 155 of file class.hpp.

Referenced by insert(), and setFunctions().

◆ _packages

CompiledPackageTable MicroModelica::IR::Package::_packages
private

Definition at line 157 of file class.hpp.


The documentation for this class was generated from the following files: