MicroModelicaCCompiler  4.5.3
MicroModelica::IR::CompiledFunction Class Reference

#include <helpers.hpp>

Collaboration diagram for MicroModelica::IR::CompiledFunction:

Public Member Functions

 CompiledFunction ()
 
 CompiledFunction (std::string name, std::string includeDir, std::string libraryDir, Util::SymbolTable &libraries, std::string prefix="__")
 
 ~CompiledFunction ()=default
 
bool hasIncludeDirectory () const
 
bool hasLibraryDirectory () const
 
bool hasLibraries () const
 
std::string includeDirectory () const
 
std::string libraryDirectory () const
 
Util::SymbolTable libraries ()
 
std::string name () const
 
std::string prototype () const
 
std::string print () const
 
void setArguments (AST_ExpressionList arguments)
 
void setOutputArguments (AST_ExpressionList output_arguments)
 

Private Attributes

std::string _name
 
std::string _prefix
 
std::string _prototype
 
std::string _includeDirectory
 
std::string _libraryDirectory
 
Util::SymbolTable _libraries
 
AST_ExpressionList _arguments
 
AST_ExpressionList _output_arguments
 

Friends

std::ostream & operator<< (std::ostream &out, const CompiledFunction &cf)
 

Detailed Description

Definition at line 87 of file helpers.hpp.

Constructor & Destructor Documentation

◆ CompiledFunction() [1/2]

MicroModelica::IR::CompiledFunction::CompiledFunction ( )

Definition at line 87 of file helpers.cpp.

References current_element.

◆ CompiledFunction() [2/2]

MicroModelica::IR::CompiledFunction::CompiledFunction ( std::string  name,
std::string  includeDir,
std::string  libraryDir,
Util::SymbolTable libraries,
std::string  prefix = "__" 
)

◆ ~CompiledFunction()

MicroModelica::IR::CompiledFunction::~CompiledFunction ( )
default

Member Function Documentation

◆ hasIncludeDirectory()

bool MicroModelica::IR::CompiledFunction::hasIncludeDirectory ( ) const
inline

Definition at line 93 of file helpers.hpp.

◆ hasLibraries()

bool MicroModelica::IR::CompiledFunction::hasLibraries ( ) const
inline

Definition at line 95 of file helpers.hpp.

◆ hasLibraryDirectory()

bool MicroModelica::IR::CompiledFunction::hasLibraryDirectory ( ) const
inline

Definition at line 94 of file helpers.hpp.

◆ includeDirectory()

std::string MicroModelica::IR::CompiledFunction::includeDirectory ( ) const
inline

Definition at line 96 of file helpers.hpp.

◆ libraries()

Util::SymbolTable MicroModelica::IR::CompiledFunction::libraries ( )
inline

Definition at line 98 of file helpers.hpp.

References MicroModelica::IR::CompiledPackage::_objects, and MicroModelica::IR::CompiledPackage::objects().

Here is the call graph for this function:

◆ libraryDirectory()

std::string MicroModelica::IR::CompiledFunction::libraryDirectory ( ) const
inline

Definition at line 97 of file helpers.hpp.

◆ name()

std::string MicroModelica::IR::CompiledFunction::name ( ) const
inline

Definition at line 99 of file helpers.hpp.

References MicroModelica::IR::CompiledPackage::_cft.

◆ print()

string MicroModelica::IR::CompiledFunction::print ( ) const

◆ prototype()

std::string MicroModelica::IR::CompiledFunction::prototype ( ) const
inline

Definition at line 100 of file helpers.hpp.

◆ setArguments()

void MicroModelica::IR::CompiledFunction::setArguments ( AST_ExpressionList  arguments)
inline

Definition at line 103 of file helpers.hpp.

◆ setOutputArguments()

void MicroModelica::IR::CompiledFunction::setOutputArguments ( AST_ExpressionList  output_arguments)
inline

Definition at line 104 of file helpers.hpp.

Friends And Related Function Documentation

◆ operator<<

std::ostream& operator<< ( std::ostream &  out,
const CompiledFunction cf 
)
friend

Definition at line 94 of file helpers.cpp.

Member Data Documentation

◆ _arguments

AST_ExpressionList MicroModelica::IR::CompiledFunction::_arguments
private

Definition at line 113 of file helpers.hpp.

◆ _includeDirectory

std::string MicroModelica::IR::CompiledFunction::_includeDirectory
private

Definition at line 110 of file helpers.hpp.

◆ _libraries

Util::SymbolTable MicroModelica::IR::CompiledFunction::_libraries
private

Definition at line 112 of file helpers.hpp.

◆ _libraryDirectory

std::string MicroModelica::IR::CompiledFunction::_libraryDirectory
private

Definition at line 111 of file helpers.hpp.

◆ _name

std::string MicroModelica::IR::CompiledFunction::_name
private

Definition at line 104 of file helpers.hpp.

◆ _output_arguments

AST_ExpressionList MicroModelica::IR::CompiledFunction::_output_arguments
private

Definition at line 114 of file helpers.hpp.

◆ _prefix

std::string MicroModelica::IR::CompiledFunction::_prefix
private

Definition at line 108 of file helpers.hpp.

◆ _prototype

std::string MicroModelica::IR::CompiledFunction::_prototype
private

Definition at line 109 of file helpers.hpp.


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