-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Extracted no mex template functions in externalCall lib.
- Loading branch information
Showing
3 changed files
with
50 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
47 changes: 47 additions & 0 deletions
47
sources/jvxLibraries/jvxLexternalCall/include/CjvxMexCallsProfileNoMexTpl.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
#ifndef __CJVXMEXCALLSPROFILENOMEXTPL_H__ | ||
#define __CJVXMEXCALLSPROFILENOMEXTPL_H__ | ||
|
||
#include "CjvxMexCallsProfileInterfacing.h" | ||
|
||
template <class T> | ||
class CjvxMexCallsProfileNoMexTpl : public T, public CjvxMexCallsProfileInterfacing | ||
{ | ||
protected: | ||
|
||
public: | ||
JVX_CALLINGCONVENTION CjvxMexCallsProfileNoMexTpl(JVX_CONSTRUCTOR_ARGUMENTS_MACRO_DECLARE) : | ||
T(JVX_CONSTRUCTOR_ARGUMENTS_MACRO_CALL) {}; | ||
|
||
jvxErrorType prepare_connect_icon(JVX_CONNECTION_FEEDBACK_TYPE(fdb)) | ||
{ | ||
jvxErrorType res = T::prepare_connect_icon(JVX_CONNECTION_FEEDBACK_CALL(fdb)); | ||
if (res == JVX_NO_ERROR) | ||
{ | ||
res = local_prepare_connect_icon(JVX_CONNECTION_FEEDBACK_CALL(fdb)); | ||
} | ||
return res; | ||
}; | ||
|
||
jvxErrorType postprocess_connect_icon(JVX_CONNECTION_FEEDBACK_TYPE(fdb)) | ||
{ | ||
jvxErrorType res = T::postprocess_connect_icon(JVX_CONNECTION_FEEDBACK_CALL(fdb)); | ||
if (res == JVX_NO_ERROR) | ||
{ | ||
res = local_postprocess_connect_icon(JVX_CONNECTION_FEEDBACK_CALL(fdb)); | ||
} | ||
return res; | ||
}; | ||
|
||
jvxErrorType process_buffers_icon(jvxSize mt_mask, jvxSize idx_stage) | ||
{ | ||
jvxErrorType res = JVX_NO_ERROR; | ||
|
||
// Run core algorithm in C | ||
res = local_process_buffers_icon(mt_mask, idx_stage); | ||
|
||
// Forward calling chain | ||
return fwd_process_buffers_icon(mt_mask, idx_stage); | ||
}; | ||
}; | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters