| Audio Processing Framework (APF) version 0.5.0
    | 
Some tools for working with the MEX API for Matlab/Octave. More...
#include <mex.h>#include <string>#include <map>#include <cmath>#include <vector>#include "apf/stringtools.h"Go to the source code of this file.
| Namespaces | |
| namespace | apf | 
| Audio Processing Framework. | |
| namespace | apf::mex | 
| Helper functions for creating MEX files. | |
| Macros | |
| #define | APF_MEX_ERROR_NO_OUTPUT_SUPPORTED(name) | 
| #define | APF_MEX_ERROR_EXACTLY_ONE_OUTPUT(name) | 
| #define | APF_MEX_ERROR_ONE_OPTIONAL_OUTPUT(name) | 
| #define | APF_MEX_ERROR_NO_FURTHER_INPUTS(name) | 
| #define | APF_MEX_ERROR_FURTHER_INPUT_NEEDED(text) | 
| #define | APF_MEX_ERROR_NUMERIC_INPUT(text) | 
| #define | APF_MEX_ERROR_REAL_INPUT(text) | 
| #define | APF_MEX_ERROR_SAME_NUMBER_OF_ROWS(value, text) | 
| #define | APF_MEX_ERROR_SAME_NUMBER_OF_COLUMNS(value, text) | 
| Functions | |
| bool | apf::mex::convert (const mxArray *in, std::string &out) | 
| Convert mxArraytostd::string.  More... | |
| bool | apf::mex::convert (const mxArray *in, double &out) | 
| Convert mxArraytodouble.  More... | |
| bool | apf::mex::convert (const mxArray *in, int &out) | 
| Convert mxArraytoint.  More... | |
| bool | apf::mex::convert (const mxArray *in, long int &out) | 
| Convert mxArraytolong intMore... | |
| bool | apf::mex::convert (const mxArray *in, bool &out) | 
| Convert mxArraytobool.  More... | |
| bool | apf::mex::convert (const mxArray *in, size_t &out) | 
| Convert mxArraytosize_t.  More... | |
| bool | apf::mex::convert (const mxArray *in, std::map< std::string, std::string > &out) | 
| Convert mxArrayto astd::mapofstd::strings.  More... | |
| bool | apf::mex::convert (const mxArray *in, std::vector< std::string > &out) | 
| Convert mxArrayto astd::vectorofstd::strings.  More... | |
| template<bool optional, typename T > | |
| bool | apf::mex::internal::next_arg_helper (int &n, const mxArray **&p, T &data) | 
| template<typename T > | |
| bool | apf::mex::next_arg (int &n, const mxArray **&p, T &data) | 
| Get next argument, converted to T.  More... | |
| template<typename T > | |
| bool | apf::mex::next_optarg (int &n, const mxArray **&p, T &data) | 
| Get next optional argument, converted to T.  More... | |
| template<typename T > | |
| void | apf::mex::next_arg (int &n, const mxArray **&p, T &data, const std::string &error) | 
| Get next argument, converted to T.  More... | |
| template<typename T > | |
| void | apf::mex::next_optarg (int &n, const mxArray **&p, T &data, const std::string &error) | 
| Get next optional argument, converted to T.  More... | |
Some tools for working with the MEX API for Matlab/Octave.
Definition in file mextools.h.
| #define APF_MEX_ERROR_NO_OUTPUT_SUPPORTED | ( | name | ) | 
Definition at line 41 of file mextools.h.
| #define APF_MEX_ERROR_EXACTLY_ONE_OUTPUT | ( | name | ) | 
Definition at line 48 of file mextools.h.
| #define APF_MEX_ERROR_ONE_OPTIONAL_OUTPUT | ( | name | ) | 
Definition at line 55 of file mextools.h.
| #define APF_MEX_ERROR_NO_FURTHER_INPUTS | ( | name | ) | 
Definition at line 62 of file mextools.h.
| #define APF_MEX_ERROR_FURTHER_INPUT_NEEDED | ( | text | ) | 
Definition at line 69 of file mextools.h.
| #define APF_MEX_ERROR_NUMERIC_INPUT | ( | text | ) | 
Definition at line 75 of file mextools.h.
| #define APF_MEX_ERROR_REAL_INPUT | ( | text | ) | 
Definition at line 81 of file mextools.h.
| #define APF_MEX_ERROR_SAME_NUMBER_OF_ROWS | ( | value, | |
| text | |||
| ) | 
Definition at line 88 of file mextools.h.
| #define APF_MEX_ERROR_SAME_NUMBER_OF_COLUMNS | ( | value, | |
| text | |||
| ) | 
Definition at line 95 of file mextools.h.
| bool apf::mex::internal::next_arg_helper | ( | int & | n, | 
| const mxArray **& | p, | ||
| T & | data | ||
| ) | 
Definition at line 243 of file mextools.h.