clibgen.ClassDefinition Class
Namespace: clibgen
Definition for MATLAB class corresponding to C++ class
Description
The clibgen.ClassDefinition
class contains the MATLAB® definition for a class defined in the C++ header.
The clibgen.ClassDefinition
class is a handle
class.
Creation
MATLAB constructs a ClassDefinition
object when MATLAB calls addClass
on a
clibgen.LibraryDefinition
object.
Properties
Help text for the end user describing the class, specified as a string or a character vector. The default text is:
MATLABName Representation of C++ class CPPName.
The publisher can modify the value of the Description
property
in the library definition file.
Example: clib.cppSample.TestClass
Representation of C++ class
TestClass
.
Attributes:
GetAccess | public |
SetAccess | public |
Help text from C++ header file for the end user describing details about the class,
specified as a string or a character vector. If the C++ comment does not contain
detailed information, then DetailedDescription
does not appear in
the definition file.
The publisher can modify the value of the DetailedDescription
property in the library definition file. If DetailedDescription
is
not empty, then the MATLAB
doc
command displays this sentence before displaying the value of
DetailedDescription
.
This content is from the external library documentation.
Attributes:
GetAccess | public |
SetAccess | public |
C++ class name in MATLAB, specified as a string or a character vector. MATLAB creates MATLABName
from the InterfaceName and CPPName
properties.
clib.DefiningLibrary.InterfaceName.CPPName
Example: clib.cppSample.TestClass
Attributes:
GetAccess | public |
SetAccess | private |
C++ class name, specified as a string or a character vector. MATLAB creates CPPName
from the class
name in the header file.
Example: TestClass
Attributes:
GetAccess | public |
SetAccess | private |
Class methods, specified as one or more clibgen.MethodDefinition
objects.
Attributes:
GetAccess | public |
SetAccess | private |
Class constructors, specified as one or more clibgen.ConstructorDefinition
objects.
Attributes:
GetAccess | public |
SetAccess | private |
Class properties, specified as one or more clibgen.PropertyDefinition
objects.
Attributes:
GetAccess | public |
SetAccess | private |
Library defining the class, specified as a clibgen.LibraryDefinition
object.
Attributes:
GetAccess | public |
SetAccess | private |
Methods
addConstructor | Add constructor to C++ class definition |
addMethod | Add method to C++ class definition |
addProperty | Add property to C++ class definition |
Version History
Introduced in R2019a
See Also
MATLAB Command
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
Sélectionner un site web
Choisissez un site web pour accéder au contenu traduit dans votre langue (lorsqu'il est disponible) et voir les événements et les offres locales. D’après votre position, nous vous recommandons de sélectionner la région suivante : .
Vous pouvez également sélectionner un site web dans la liste suivante :
Comment optimiser les performances du site
Pour optimiser les performances du site, sélectionnez la région Chine (en chinois ou en anglais). Les sites de MathWorks pour les autres pays ne sont pas optimisés pour les visites provenant de votre région.
Amériques
- 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)