clibgen.ClassDefinition 类
包: clibgen
创建对象
当 MATLAB 对 clibgen.LibraryDefinition
对象调用 addClass
时,MATLAB 会构造一个 ClassDefinition
对象。
属性
Description
— 帮助文本
字符串 | 字符向量
最终用户用于描述类的帮助文本,指定为字符串或字符向量。默认文本是:
MATLABName Representation of C++ class CPPName.
发布者可以在库定义文件中修改 Description
属性的值。
示例: C++ 类 TestClass
的 clib.cppSample.TestClass
表示。
属性:
GetAccess | public |
SetAccess | public |
DetailedDescription
— C++ 头文件中的帮助文本
字符串 | 字符向量 | 空字符串
最终用户用于描述关于类的详细信息的 C++ 头文件中的帮助文本,指定为字符串或字符向量。如果 C++ 注释不包含详细信息,则 DetailedDescription
不会出现在定义文件中。
发布者可以在库定义文件中修改 DetailedDescription
属性的值。如果 DetailedDescription
不为空,则 MATLAB doc
命令会在显示 DetailedDescription
的值之前显示以下句子。
This content is from the external library documentation.
属性:
GetAccess | public |
SetAccess | public |
MATLABName
— MATLAB 中的 C++ 类名
字符串 | 字符向量
MATLAB 中的 C++ 类名,指定为字符串或字符向量。MATLAB 基于 PackageName 和 CPPName
属性创建 MATLABName
。
clib.DefiningLibrary.PackageName.CPPName
示例: clib.cppSample.TestClass
属性:
GetAccess | public |
SetAccess | private |
CPPName
— C++ 类名
字符串 | 字符向量
C++ 类名,指定为字符串或字符向量。MATLAB 基于头文件中的 class
名称创建 CPPName
。
示例: TestClass
属性:
GetAccess | public |
SetAccess | private |
Methods
— 类方法
clibgen.MethodDefinition
Constructors
— 类构造函数
clibgen.ConstructorDefinition
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)