Contenido principal

clibgen Namespace

R2026b

(Not recommended. Instead use objects in the clibgen.api namespace.) Classes to publish MATLAB interface to C++ library using the clibgen.generateLibraryDefinition function

Description

The recommended way to generate MATLAB® definitions for a C/C++ library is to create a clibgen.api.InterfaceDefinition object in the clibgen.api namespace.

Before R2026b: Use these clibgen classes to publish a MATLAB interface to a C++ shared library using the Generate C++ Interface task or the clibgen.generateLibraryDefinition function.

If you already have a MATLAB interface, then see Call Functions in C/C++ Compiled Library.

Classes

clibgen.LibraryDefinition(Not recommended) MATLAB definition for C++ library
clibgen.ClassDefinition(Not recommended) Definition for MATLAB class corresponding to C++ class
clibgen.ConstructorDefinition(Not recommended) Definition for MATLAB function corresponding to C++ class constructor
clibgen.MethodDefinition(Not recommended) Definition for MATLAB function corresponding to C++ class method
clibgen.PropertyDefinition(Not recommended) Definition for MATLAB property corresponding to public property of C++ class
clibgen.FunctionDefinition(Not recommended) Definition for MATLAB function corresponding to C++ package function
clibgen.EnumDefinition(Not recommended) Definition for MATLAB enumeration corresponding to C++ enumeration
clibgen.FunctionTypeDefinition(Not recommended) Definition for MATLAB function type corresponding to C++ function type
clibgen.OpaqueTypeDefinition(Not recommended) Definition for MATLAB type corresponding to C++ opaque type

Functions