C++ mwArray
API 共有ライブラリの統合
mwArray
API を使用してパッケージ化された MATLAB® 関数を作成し C++ アプリケーションに統合するC++ mwArray
API は C++03 の機能のみをサポートします。mwArray
API を使用する C++ 共有ライブラリのインターフェイスは、C スタイルの関数を使用して MATLAB Runtime の初期化、パッケージ化された MATLAB 関数の MATLAB Runtime への読み込み、および C++ ドライバー コードと MATLAB Runtime の間で渡されるデータの管理を行います。これらの関数は C/C++ API で説明されています。C++ mwArray
API の下にリストされている関数は mwArray
API に固有であり、他の API 用に作成された共有ライブラリには使用できません。
関数
compiler.build.cppSharedLibrary | C++ 共有ライブラリの作成 |
compiler.build.CppSharedLibraryOptions | C++ 共有ライブラリのビルド オプション |
mbuild | Compile and link source files against MATLAB generated shared libraries |
C/C++ API
mclmcrInitialize | MATLAB Runtime プロキシ ライブラリの初期化 |
mclInitializeApplication | 現在のプロセスで作成されたすべての MATLAB Runtime インスタンスによって共有されるアプリケーション状態の設定 |
mclTerminateApplication | Close MATLAB Runtime-internal application state |
<library>Initialize[WithHandlers] | Initialize MATLAB Runtime instance associated with
|
<library>Terminate | Free all resources allocated by MATLAB Runtime instance associated with
|
mclRunMain | Mechanism for creating identical wrapper code across all platforms |
mclIsMCRInitialized | Determine if MATLAB Runtime has been properly initialized |
mclWaitForFiguresToDie | Enable deployed applications to process graphics events so that figure windows remain displayed |
mclGetLastErrorMessage | Last error message from unsuccessful library initialization or MATLAB function call |
mclGetLogFileName | Retrieve name of log file used by MATLAB Runtime |
mclIsJVMEnabled | Determine if MATLAB Runtime was started with instance of Java Virtual Machine (JVM) |
mclIsNoDisplaySet | -nodisplay モードが有効かどうかを判定 |
C++ mwArray API
mwArray | Class used to pass input/output arguments to C++ functions generated by MATLAB Compiler SDK |
mwException | Exception type used by the mwArray API
and the C++ interface functions |
mwString | String class used by the mwArray API
to pass string data as output from certain methods |
トピック
C++ mwArray API 共有ライブラリの作成
- C++ mwArray API 共有ライブラリの生成と C++ アプリケーションのビルド
MATLAB コードから C++ mwArray API 共有ライブラリを作成し、サンプル C++ ドライバー コードを使って実装する。 - Create C/C++ Shared Libraries from Command Line
Use the command-line compiler to create C/C++ shared libraries.
C++ 共有ライブラリと C++ アプリケーションの統合
- Call MATLAB Compiler SDK API Functions from C/C++
Use MATLAB Compiler SDK™ shared library functions in C and C++ code. - Integrate C++ Shared Libraries with mwArray
Write C++ code to reference shared libraries that use themwArray
API. - Configure the mbuild Options File
How to configure thembuild
options file. - Use Multiple Shared Libraries in Single Application
Use multiple generated shared libraries in a single C/C++ application.
Mac OS X
- Write Applications for macOS
Write deployable C++ applications specifically for macOS.
保守
- Memory Management and Cleanup
See recommendations on memory management. - Understand the mclmcrrt Proxy Layer
All application and software components generated by MATLAB Compiler™ and MATLAB Compiler SDK need to link against only one MATLAB library,mclmcrrt
. This library provides a proxy API for all the public functions in MATLAB libraries used for matrix operations, MAT-file access, utility and memory management, and application MATLAB Runtime. Themclmcrrt
library lies between deployed MATLAB code and these other version-dependent libraries, providing the following functionality: - Compilation Failures
List of possible failures during compilation. - Testing Failures
List of possible failures during testing. - Deployment Failures
List of possible failures during deployment.