#include <importer.hpp>
Just-in-time compilation of code
- clang
- shell
Note: some of the plugins in this list might not be available on your system. Also, there might be extra plugins available to you that are not listed here. You can obtain their documentation with Importer.doc("myextraplugin")
Interface to the JIT compiler CLANG
Extra doc: https://github.com/casadi/casadi/wiki/L_21v
Id | Type | Description |
---|---|---|
flags | OT_STRINGVECTOR | Compile flags for the JIT compiler. Default: None |
include_path | OT_STRING | Include paths for the JIT compiler. The include directory shipped with CasADi will be automatically appended. |
Interface to the JIT compiler SHELL
Extra doc: https://github.com/casadi/casadi/wiki/L_22w
Id | Type | Description |
---|---|---|
cleanup | OT_BOOL | Cleanup temporary files when unloading. Default: true |
compiler | OT_STRING | Compiler command |
compiler_flags | OT_STRINGVECTOR | Alias for 'compiler_flags' |
compiler_output_flag | OT_STRING | Compiler flag to denote object output. Default: '-o ' |
compiler_setup | OT_STRING | Compiler setup command. Intended to be fixed. The 'flag' option is the prefered way to set custom flags. |
directory | OT_STRING | Directory to put temporary objects in. Must end with a file separator. |
extra_suffixes | OT_STRINGVECTOR | List of suffixes for extra files that the compiler may generate. Default: None |
flags | OT_STRINGVECTOR | Compile flags for the JIT compiler. Default: None |
linker | OT_STRING | Linker command |
linker_flags | OT_STRINGVECTOR | Linker flags for the JIT compiler. Default: None |
linker_output_flag | OT_STRING | Linker flag to denote shared library output. Default: '-o ' |
linker_setup | OT_STRING | Linker setup command. Intended to be fixed. The 'flag' option is the prefered way to set custom flags. |
name | OT_STRING | The file name used to write out compiled objects/libraries. The actual file names used depend on 'temp_suffix' and include extensions. Default: 'tmp_casadi_compiler_shell' |
temp_suffix | OT_BOOL | Use a temporary (seemingly random) filename suffix for file names. This is desired for thread-safety. This behaviour may defeat caching compiler wrappers. Default: true |
Extra doc: https://github.com/casadi/casadi/wiki/L_161
Definition at line 84 of file importer.hpp.
Public Member Functions | |
Importer () | |
Default constructor. More... | |
Importer (const std::string &name, const std::string &compiler, const Dict &opts=Dict()) | |
Importer factory. More... | |
ImporterInternal * | operator-> () |
Access functions of the node. More... | |
const ImporterInternal * | operator-> () const |
std::string | plugin_name () const |
Query plugin name. More... | |
bool | has_function (const std::string &symname) const |
bool | has_meta (const std::string &cmd, casadi_int ind=-1) const |
Does a meta entry exist? More... | |
std::string | get_meta (const std::string &cmd, casadi_int ind=-1) const |
Get entry as a text. More... | |
bool | inlined (const std::string &symname) const |
Check if a function is inlined. More... | |
std::string | body (const std::string &symname) const |
Get the function body, if inlined. More... | |
std::string | library () const |
Get library name. More... | |
void | serialize (SerializingStream &s) const |
Serialize an object. More... | |
std::string | class_name () const |
Get class name. More... | |
void | disp (std::ostream &stream, bool more=false) const |
Print a description of the object. More... | |
std::string | get_str (bool more=false) const |
Get string representation. More... | |
bool | is_null () const |
Is a null pointer? More... | |
casadi_int | __hash__ () const |
Returns a number that is unique for a given Node. More... | |
Static Public Member Functions | |
static std::string | type_name () |
Get type name. More... | |
static bool | test_cast (const SharedObjectInternal *ptr) |
Check if a particular cast is allowed. More... | |
static bool | has_plugin (const std::string &name) |
Check if a plugin is available. More... | |
static void | load_plugin (const std::string &name) |
Explicitly load a plugin dynamically. More... | |
static std::string | doc (const std::string &name) |
Get solver specific documentation. More... | |
static Importer | deserialize (DeserializingStream &s) |
Deserialize with type disambiguation. More... | |
casadi::Importer::Importer | ( | ) |
|
explicit |
|
inherited |
If the Object does not point to any node, "0" is returned.
Extra doc: https://github.com/casadi/casadi/wiki/L_av
std::string casadi::Importer::body | ( | const std::string & | symname | ) | const |
|
inherited |
Extra doc: https://github.com/casadi/casadi/wiki/L_au
|
static |
Extra doc: https://github.com/casadi/casadi/wiki/L_16d
|
inherited |
|
static |
std::string casadi::Importer::get_meta | ( | const std::string & | cmd, |
casadi_int | ind = -1 |
||
) | const |
Extra doc: https://github.com/casadi/casadi/wiki/L_166
|
inlineinherited |
Definition at line 138 of file shared_object.hpp.
bool casadi::Importer::has_function | ( | const std::string & | symname | ) | const |
bool casadi::Importer::has_meta | ( | const std::string & | cmd, |
casadi_int | ind = -1 |
||
) | const |
Extra doc: https://github.com/casadi/casadi/wiki/L_165
|
static |
bool casadi::Importer::inlined | ( | const std::string & | symname | ) | const |
|
inherited |
std::string casadi::Importer::library | ( | ) | const |
|
static |
ImporterInternal* casadi::Importer::operator-> | ( | ) |
const ImporterInternal* casadi::Importer::operator-> | ( | ) | const |
std::string casadi::Importer::plugin_name | ( | ) | const |
void casadi::Importer::serialize | ( | SerializingStream & | s | ) | const |
Extra doc: https://github.com/casadi/casadi/wiki/L_16c
|
static |
|
inlinestatic |
Extra doc: https://github.com/casadi/casadi/wiki/L_162
Definition at line 91 of file importer.hpp.