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

Definition at line 289 of file mexaux.hpp.

References cpp2mex().

00290 {
00291   int n = cd.size();
00292   md = mxCreateCellMatrix(n,1);
00293   int cnt = 0;
00294   for(map<S,T>::const_iterator mi=cd.begin(); mi!=cd.end(); mi++) {
00295          mxArray* now = mxCreateCellMatrix(2,1);
00296          mxArray* ss;    cpp2mex((*mi).first, ss);       mxSetCell(now, 0, ss);
00297          mxArray* tt;    cpp2mex((*mi).second, tt);      mxSetCell(now, 1, tt);
00298          mxSetCell(md, cnt, now);
00299          cnt++;
00300   }
00301   assert(cnt==n);
00302   return;
00303 }


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