Show
Ignore:
Timestamp:
09/13/09 23:14:58 (15 years ago)
Author:
smidl
Message:

doc

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • library/doc/html/mex__logger_8h_source.html

    r608 r614  
    111111<a name="l00046"></a>00046 <span class="keyword">public</span>: 
    112112<a name="l00048"></a><a class="code" href="classbdm_1_1mexlog.html#ac458d92bb26518c908521a8c9460a2c1">00048</a>         <a class="code" href="classbdm_1_1mexlog.html#ac458d92bb26518c908521a8c9460a2c1" title="constructor">mexlog</a>() : <a class="code" href="classbdm_1_1memlog.html">memlog</a> ( 0, <span class="stringliteral">&quot;&quot;</span> ) {}; 
    113 <a name="l00050"></a>00050         mxArray* toCell() { 
    114 <a name="l00051"></a>00051                 mxArray* tmp = mxCreateStructMatrix ( 1, 1, 0, NULL ); 
    115 <a name="l00052"></a>00052  
    116 <a name="l00053"></a>00053                 <span class="comment">//copied from itsave</span> 
    117 <a name="l00054"></a>00054                 <span class="keywordtype">int</span> i; 
    118 <a name="l00055"></a>00055                 <span class="keywordtype">string</span> vec_name = <span class="stringliteral">&quot;&quot;</span>; 
    119 <a name="l00056"></a>00056                 <span class="keywordtype">int</span> istart, iend; 
    120 <a name="l00057"></a>00057  
    121 <a name="l00058"></a>00058                 mat M; <span class="comment">//temporary matrix</span> 
    122 <a name="l00059"></a>00059                 <span class="keywordflow">for</span> ( i = 0; i &lt; <a class="code" href="classbdm_1_1logger.html#ac54566a4554089443a20b2a49ed1a61f" title="RVs of all logged variables.">entries</a>.length(); i++ ) { 
    123 <a name="l00060"></a>00060                         istart = 0; 
    124 <a name="l00061"></a>00061                         <span class="keywordflow">for</span> ( <span class="keywordtype">int</span> j = 0; j &lt; <a class="code" href="classbdm_1_1logger.html#ac54566a4554089443a20b2a49ed1a61f" title="RVs of all logged variables.">entries</a> ( i ).length(); j++ ) { <span class="comment">// same for as in add!!!</span> 
    125 <a name="l00062"></a>00062                                 vec_name = <a class="code" href="classbdm_1_1logger.html#a68ca1f05cf3d414ba0f39211977b8d02" title="Names of logged quantities, e.g. names of algorithm variants.">names</a> ( i ) + <a class="code" href="classbdm_1_1logger.html#ac54566a4554089443a20b2a49ed1a61f" title="RVs of all logged variables.">entries</a> ( i ).name ( j ); 
    126 <a name="l00063"></a>00063                                 iend = istart + <a class="code" href="classbdm_1_1logger.html#ac54566a4554089443a20b2a49ed1a61f" title="RVs of all logged variables.">entries</a> ( i ).size ( j ) - 1; 
    127 <a name="l00064"></a>00064                                 M = <a class="code" href="classbdm_1_1memlog.html#a1fed143162f2de6ef1c1b6557964f24e" title="Storage.">vectors</a> ( i ).get_cols ( istart, iend ); 
    128 <a name="l00065"></a>00065                                 istart = iend + 1; 
    129 <a name="l00066"></a>00066                                 <span class="comment">// copy the selection to mx</span> 
    130 <a name="l00067"></a>00067                                 mxArray* fld = mxCreateDoubleMatrix ( M.rows(), M.cols(), mxREAL ); 
    131 <a name="l00068"></a>00068                                 mat2mxArray ( M, fld ); 
    132 <a name="l00069"></a>00069                                 mxReplaceFieldNM ( tmp, vec_name.c_str(), fld ); 
    133 <a name="l00070"></a>00070                         } 
    134 <a name="l00071"></a>00071                 } 
    135 <a name="l00072"></a>00072                 <span class="keywordflow">return</span> tmp; 
    136 <a name="l00073"></a>00073         } 
    137 <a name="l00074"></a><a class="code" href="classbdm_1_1mexlog.html#a39c44b30f201091ab3d287fe5741113e">00074</a>         <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1mexlog.html#a39c44b30f201091ab3d287fe5741113e" title="UI for memlog.">from_setting</a> ( <span class="keyword">const</span> Setting &amp;<a class="code" href="classbdm_1_1root.html" title="Root class of BDM objects.">root</a> ) { 
    138 <a name="l00075"></a>00075                 <a class="code" href="classbdm_1_1memlog.html#aa690ebd91430b5973855c9b4c9cf1b1d" title="Maximum length of vectors stored in memory.">maxlen</a> = root[<span class="stringliteral">&quot;maxlen&quot;</span>]; 
    139 <a name="l00076"></a>00076         } 
    140 <a name="l00077"></a>00077 }; 
    141 <a name="l00078"></a>00078 <a class="code" href="user__info_8h.html#a4f9de2f17e844047726487b99def99c6" title="Macro for registration of class into map of user-infos, registered class is scriptable...">UIREGISTER</a> ( mexlog ); 
    142 <a name="l00079"></a>00079 SHAREDPTR ( mexlog ); 
    143 <a name="l00080"></a>00080 } 
    144 <a name="l00081"></a>00081  
    145 <a name="l00082"></a>00082 <span class="preprocessor">#endif //MXLOG_H</span> 
     113<a name="l00050"></a><a class="code" href="classbdm_1_1mexlog.html#ac72a726786de976f1ea052026462e1c2">00050</a>         <a class="code" href="classbdm_1_1mexlog.html#ac72a726786de976f1ea052026462e1c2" title="constructor">mexlog</a>(<span class="keywordtype">long</span> maxlen0) : <a class="code" href="classbdm_1_1memlog.html">memlog</a> ( maxlen0, <span class="stringliteral">&quot;&quot;</span> ) {}; 
     114<a name="l00052"></a>00052         mxArray* toCell() { 
     115<a name="l00053"></a>00053                 mxArray* tmp = mxCreateStructMatrix ( 1, 1, 0, NULL ); 
     116<a name="l00054"></a>00054  
     117<a name="l00055"></a>00055                 <span class="comment">//copied from itsave</span> 
     118<a name="l00056"></a>00056                 <span class="keywordtype">int</span> i; 
     119<a name="l00057"></a>00057                 <span class="keywordtype">string</span> vec_name = <span class="stringliteral">&quot;&quot;</span>; 
     120<a name="l00058"></a>00058                 <span class="keywordtype">int</span> istart, iend; 
     121<a name="l00059"></a>00059  
     122<a name="l00060"></a>00060                 mat M; <span class="comment">//temporary matrix</span> 
     123<a name="l00061"></a>00061                 <span class="keywordflow">for</span> ( i = 0; i &lt; <a class="code" href="classbdm_1_1logger.html#ac54566a4554089443a20b2a49ed1a61f" title="RVs of all logged variables.">entries</a>.length(); i++ ) { 
     124<a name="l00062"></a>00062                         istart = 0; 
     125<a name="l00063"></a>00063                         <span class="keywordflow">for</span> ( <span class="keywordtype">int</span> j = 0; j &lt; <a class="code" href="classbdm_1_1logger.html#ac54566a4554089443a20b2a49ed1a61f" title="RVs of all logged variables.">entries</a> ( i ).length(); j++ ) { <span class="comment">// same for as in add!!!</span> 
     126<a name="l00064"></a>00064                                 vec_name = <a class="code" href="classbdm_1_1logger.html#a68ca1f05cf3d414ba0f39211977b8d02" title="Names of logged quantities, e.g. names of algorithm variants.">names</a> ( i ) + <a class="code" href="classbdm_1_1logger.html#ac54566a4554089443a20b2a49ed1a61f" title="RVs of all logged variables.">entries</a> ( i ).name ( j ); 
     127<a name="l00065"></a>00065                                 iend = istart + <a class="code" href="classbdm_1_1logger.html#ac54566a4554089443a20b2a49ed1a61f" title="RVs of all logged variables.">entries</a> ( i ).size ( j ) - 1; 
     128<a name="l00066"></a>00066                                 M = <a class="code" href="classbdm_1_1memlog.html#a1fed143162f2de6ef1c1b6557964f24e" title="Storage.">vectors</a> ( i ).get_cols ( istart, iend ); 
     129<a name="l00067"></a>00067                                 istart = iend + 1; 
     130<a name="l00068"></a>00068                                 <span class="comment">// copy the selection to mx</span> 
     131<a name="l00069"></a>00069                                 mxArray* fld = mxCreateDoubleMatrix ( M.rows(), M.cols(), mxREAL ); 
     132<a name="l00070"></a>00070                                 mat2mxArray ( M, fld ); 
     133<a name="l00071"></a>00071                                 mxReplaceFieldNM ( tmp, vec_name.c_str(), fld ); 
     134<a name="l00072"></a>00072                         } 
     135<a name="l00073"></a>00073                 } 
     136<a name="l00074"></a>00074                 <span class="keywordflow">return</span> tmp; 
     137<a name="l00075"></a>00075         } 
     138<a name="l00076"></a><a class="code" href="classbdm_1_1mexlog.html#a39c44b30f201091ab3d287fe5741113e">00076</a>         <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1mexlog.html#a39c44b30f201091ab3d287fe5741113e" title="UI for memlog.">from_setting</a> ( <span class="keyword">const</span> Setting &amp;<a class="code" href="classbdm_1_1root.html" title="Root class of BDM objects.">root</a> ) { 
     139<a name="l00077"></a>00077                 <a class="code" href="classbdm_1_1memlog.html#aa690ebd91430b5973855c9b4c9cf1b1d" title="Maximum length of vectors stored in memory.">maxlen</a> = root[<span class="stringliteral">&quot;maxlen&quot;</span>]; 
     140<a name="l00078"></a>00078         } 
     141<a name="l00079"></a>00079 }; 
     142<a name="l00080"></a>00080 <a class="code" href="user__info_8h.html#a4f9de2f17e844047726487b99def99c6" title="Macro for registration of class into map of user-infos, registered class is scriptable...">UIREGISTER</a> ( mexlog ); 
     143<a name="l00081"></a>00081 SHAREDPTR ( mexlog ); 
     144<a name="l00082"></a>00082 } 
     145<a name="l00083"></a>00083  
     146<a name="l00084"></a>00084 <span class="preprocessor">#endif //MXLOG_H</span> 
    146147</pre></div></div> 
    147 <hr size="1"/><address style="text-align: right;"><small>Generated on Tue Sep 8 22:11:32 2009 for mixpp by&nbsp; 
     148<hr size="1"/><address style="text-align: right;"><small>Generated on Sun Sep 13 22:40:40 2009 for mixpp by&nbsp; 
    148149<a href="http://www.doxygen.org/index.html"> 
    149150<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.1 </small></address>