2012-02-07 03:45:40 +08:00
|
|
|
// automatically generated by wrap
|
2011-12-09 04:51:13 +08:00
|
|
|
#include <wrap/matlab.h>
|
2011-12-16 03:39:14 +08:00
|
|
|
#include <path/to/ns2.h>
|
|
|
|
#include <path/to/ns2/ClassA.h>
|
2012-06-29 00:13:22 +08:00
|
|
|
typedef boost::shared_ptr<double> Shareddouble;
|
|
|
|
typedef boost::shared_ptr<ns2::ClassA> Shared;
|
2011-12-09 04:51:13 +08:00
|
|
|
void mexFunction(int nargout, mxArray *out[], int nargin, const mxArray *in[])
|
|
|
|
{
|
|
|
|
checkArguments("ns2ClassA_afunction",nargout,nargin,0);
|
|
|
|
double result = ns2::ClassA::afunction();
|
|
|
|
out[0] = wrap< double >(result);
|
|
|
|
}
|