template<class S, class T>
void mex2cpp const mxArray *&  md,
map< S, T > &  cd
[inline]
 

Definition at line 276 of file mexaux.hpp.

References mex2cpp().

00277 {
00278   int m = mxGetM(md);
00279   int n = mxGetN(md);  assert(n==1);
00280   for(int ci=0; ci<m*n; ci++) {
00281          const mxArray* now = mxGetCell(md, ci);
00282          const mxArray* tmp;
00283          S ss;   tmp = mxGetCell(now,0); mex2cpp(tmp, ss);
00284          T tt;   tmp = mxGetCell(now,1); mex2cpp(tmp, tt);
00285          cd[ss] = tt;
00286   }
00287   return;
00288 }


Generated on Sun Dec 4 19:24:40 2005 for fmm3d by  doxygen 1.4.5