![]() |
UtilsLite
Utilities for C++ programming
|
A class template that manages a C++ object for use with MATLAB. More...
#include <mex_utils.hxx>
Public Member Functions | |
mex_class_handle< base > const & | operator= (mex_class_handle< base > const &)=delete |
Deleted copy assignment operator. | |
mex_class_handle ()=delete | |
Deleted default constructor. | |
mex_class_handle (base *ptr) | |
Constructor that initializes the handle with a pointer to a C++ object. | |
~mex_class_handle () | |
Destructor that cleans up the managed object. | |
bool | is_valid () |
Checks if the handle is valid. | |
base * | ptr () |
Retrieves the pointer to the managed C++ object. | |
A class template that manages a C++ object for use with MATLAB.
This class template is designed to wrap a C++ class pointer for integration with MATLAB. It manages the memory of the object and provides a mechanism for checking the validity of the handle.
base | The type of the C++ class being wrapped. |
|
delete |
Deleted default constructor.
This constructor is deleted to prevent creating an uninitialized handle.
|
inlineexplicit |
Constructor that initializes the handle with a pointer to a C++ object.
ptr | Pointer to the C++ object being managed. |
|
inline |
Destructor that cleans up the managed object.
|
inline |
Checks if the handle is valid.
The handle is considered valid if the signature matches and the type name is correct.
|
delete |
Deleted copy assignment operator.
This operator is deleted to prevent copying of the handle.
|
inline |
Retrieves the pointer to the managed C++ object.