kyamagu / mexplus

C++ Matlab MEX development kit.
Other
99 stars 49 forks source link

Define MEX function as a MATLAB class method #29

Closed hokiedsp closed 6 years ago

hokiedsp commented 6 years ago

Hey, pretty cool C++ wrapping of mxXXX functions.

This really doesn't affect your code per se, just a comment on your ReadMe example.

FYI, it would be more foolproof if you define MEX interface function as a private/protected method of the wrapping class. I think it's a little known secret that you can do this. Check out my hokiedsp/matlab-mexutils repo for an example.

kyamagu commented 6 years ago

@hokiedsp Thanks, the recommendation here is to use private/ directory to hide MEX interface: https://github.com/kyamagu/mexplus#dispatching-calls

hokiedsp commented 6 years ago

Hum, I missed that part of the documentation and yeah I guess private folder makes sense, too. For some reason, I thought MATLAB doesn’t acknowledge a private folder inside an @class folder but I guess I’m wrong.

From: Kota Yamaguchi Sent: Tuesday, February 27, 2018 7:13 PM To: kyamagu/mexplus Cc: Kesh Ikuma; Mention Subject: Re: [kyamagu/mexplus] Define MEX function as a MATLAB class method(#29)

@hokiedsp Thanks, the recommendation here is to use private/ directory to hide MEX interface: https://github.com/kyamagu/mexplus#dispatching-calls — You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or mute the thread.