CppADCodeGen
HEAD
A C++ Algorithmic Differentiation Package with Source Code Generation
|
Public Member Functions | |
virtual const std::string & | getTemporaryFolder () const =0 |
virtual void | setTemporaryFolder (const std::string &tmpFolder)=0 |
virtual bool | isSaveToDiskFirst () const =0 |
virtual void | setSaveToDiskFirst (bool saveToDiskFirst)=0 |
virtual const std::string & | getSourcesFolder () const =0 |
virtual void | setSourcesFolder (const std::string &srcFolder)=0 |
virtual const std::set< std::string > & | getObjectFiles () const =0 |
virtual const std::set< std::string > & | getSourceFiles () const =0 |
virtual bool | isVerbose () const =0 |
virtual void | setVerbose (bool verbose)=0 |
virtual void | compileSources (const std::map< std::string, std::string > &sources, bool posIndepCode, JobTimer *timer=nullptr)=0 |
virtual void | buildDynamic (const std::string &library, JobTimer *timer=nullptr)=0 |
virtual void | cleanup ()=0 |
C compiler class used to create a dynamic library
Definition at line 154 of file declare_cg.hpp.
|
pure virtual |
Creates a dynamic library from the previously compiled object files
library | the path to the dynamic library to be created |
Implemented in CppAD::cg::AbstractCCompiler< Base >, CppAD::cg::ClangCompiler< Base >, and CppAD::cg::GccCompiler< Base >.
Referenced by CppAD::cg::DynamicModelLibraryProcessor< Base >::createDynamicLibrary().
|
pure virtual |
Deletes the previously compiled object files and clears of files to include in a dynamic library
Implemented in CppAD::cg::AbstractCCompiler< Base >, and CppAD::cg::ClangCompiler< Base >.
Referenced by CppAD::cg::DynamicModelLibraryProcessor< Base >::createDynamicLibrary(), and CppAD::cg::DynamicModelLibraryProcessor< Base >::createStaticLibrary().
|
pure virtual |
Compiles the provided C source code.
sources | maps the names to the content of the source files |
posIndepCode | whether or not to create position-independent code for dynamic linking |
Implemented in CppAD::cg::AbstractCCompiler< Base >.
Referenced by CppAD::cg::DynamicModelLibraryProcessor< Base >::createDynamicLibrary(), and CppAD::cg::DynamicModelLibraryProcessor< Base >::createStaticLibrary().
|
pure virtual |
Provides the path to a folder where the source files should be created when the option to save files to disk is active.
Implemented in CppAD::cg::AbstractCCompiler< Base >.
|
pure virtual |
Provides the path to a temporary folder that should not exist (it will be deleted after the dynamic library is created)
Implemented in CppAD::cg::AbstractCCompiler< Base >.
|
pure virtual |
Defines the path to a folder where the source files should be created when the option to save files to disk is active.
srcFolder | path to the folder. |
Implemented in CppAD::cg::AbstractCCompiler< Base >.
|
pure virtual |
Defines the path to a temporary folder that should not exist (it will be deleted after the dynamic library is created)
tmpFolder | path to a temporary folder. |
Implemented in CppAD::cg::AbstractCCompiler< Base >.