clibgen.ClassDefinition クラス
名前空間: clibgen
C++ クラスに対応する MATLAB クラスの定義
説明
clibgen.ClassDefinition
クラスには、C++ ヘッダーで定義されたクラスの MATLAB® 定義が含まれます。
clibgen.ClassDefinition
クラスは handle
クラスです。
作成
MATLAB が addClass
を clibgen.LibraryDefinition
オブジェクトで呼び出すときに、MATLAB が ClassDefinition
オブジェクトを構築します。
プロパティ
Description
— ヘルプ テキスト
string | 文字ベクトル
クラスについてエンド ユーザーに説明するヘルプ テキスト。string または文字ベクトルとして指定します。既定のテキストは次のとおりです。
MATLABName Representation of C++ class CPPName.
パブリッシャーはライブラリ定義ファイルで Description
プロパティの値を変更できます。
例: C++ クラス TestClass
の clib.cppSample.TestClass
表現。
属性:
GetAccess | public |
SetAccess | public |
DetailedDescription
— C++ ヘッダー ファイルからのヘルプ テキスト
string | 文字ベクトル | 空の string
クラスについてエンド ユーザーに説明する C++ ヘッダー ファイルからのヘルプ テキスト。string または文字ベクトルとして指定します。C++ コメントに詳細情報が含まれない場合、DetailedDescription
は定義ファイルに表示されません。
パブリッシャーはライブラリ定義ファイルで DetailedDescription
プロパティの値を変更できます。DetailedDescription
が空でない場合、DetailedDescription
の値を表示する前に MATLAB doc
コマンドにこの文章が表示されます。
This content is from the external library documentation.
属性:
GetAccess | public |
SetAccess | public |
MATLABName
— MATLAB の C++ クラス名
string | 文字ベクトル
MATLAB の C++ クラス名。string または文字ベクトルとして指定します。MATLAB は PackageName プロパティと CPPName
プロパティから MATLABName
を作成します。
clib.DefiningLibrary.InterfaceName.CPPName
例: clib.cppSample.TestClass
属性:
GetAccess | public |
SetAccess | private |
CPPName
— C++ クラス名
string | 文字ベクトル
C++ クラス名。string または文字ベクトルとして指定します。MATLAB はヘッダー ファイルの class
名から CPPName
を作成します。
例: TestClass
属性:
GetAccess | public |
SetAccess | private |
Methods
— クラス メソッド
clibgen.MethodDefinition
Constructors
— クラス コンストラクター
clibgen.ConstructorDefinition
クラス コンストラクター。1 つ以上の clibgen.ConstructorDefinition
オブジェクトとして指定します。
属性:
GetAccess | public |
SetAccess | private |
Properties
— クラス プロパティ
clibgen.PropertyDefinition
DefiningLibrary
— ライブラリ定義クラス
clibgen.LibraryDefinition
メソッド
パブリック メソッド
addConstructor | コンストラクターを C++ クラス定義に追加 |
addMethod | メソッドを C++ クラス定義に追加 |
addProperty | プロパティを C++ クラス定義に追加 |
バージョン履歴
R2019a で導入
MATLAB コマンド
次の MATLAB コマンドに対応するリンクがクリックされました。
コマンドを MATLAB コマンド ウィンドウに入力して実行してください。Web ブラウザーは MATLAB コマンドをサポートしていません。
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)