Show
Ignore:
Timestamp:
10/12/09 13:49:39 (15 years ago)
Author:
mido
Message:

\doc directory cleaned a bit

Files:
1 modified

Legend:

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

    r641 r651  
    1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
    2 <html xmlns="http://www.w3.org/1999/xhtml"> 
    3 <head> 
    4 <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> 
     1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> 
     2<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8"> 
    53<title>mixpp: loggers.h Source File</title> 
    6 <link href="tabs.css" rel="stylesheet" type="text/css"/> 
    7 <link href="doxygen.css" rel="stylesheet" type="text/css"/> 
    8 </head> 
    9 <body> 
    10 <!-- Generated by Doxygen 1.6.1 --> 
     4<link href="tabs.css" rel="stylesheet" type="text/css"> 
     5<link href="doxygen.css" rel="stylesheet" type="text/css"> 
     6</head><body> 
     7<!-- Generated by Doxygen 1.5.9 --> 
    118<script type="text/javascript"> 
    129<!-- 
     
    6966<a name="l00014"></a>00014 <span class="preprocessor"></span><span class="preprocessor">#define LGR_H</span> 
    7067<a name="l00015"></a>00015 <span class="preprocessor"></span> 
    71 <a name="l00016"></a>00016 <span class="preprocessor">#include &quot;<a class="code" href="bdmbase_8h.html" title="Basic structures of probability calculus: random variables, probability densities...">bdmbase.h</a>&quot;</span> 
    72 <a name="l00017"></a>00017 <span class="preprocessor">#include &quot;<a class="code" href="user__info_8h.html" title="UI (user info) class for loading/saving objects from/to configuration files. It is...">user_info.h</a>&quot;</span> 
     68<a name="l00016"></a>00016 <span class="preprocessor">#include "<a class="code" href="bdmbase_8h.html" title="Basic structures of probability calculus: random variables, probability densities...">bdmbase.h</a>"</span> 
     69<a name="l00017"></a>00017 <span class="preprocessor">#include "<a class="code" href="user__info_8h.html" title="UI (user info) class for loading/saving objects from/to configuration files. It is...">user_info.h</a>"</span> 
    7370<a name="l00018"></a>00018  
    7471<a name="l00019"></a>00019 <span class="keyword">namespace </span>bdm { 
     
    7875<a name="l00026"></a>00026  
    7976<a name="l00027"></a>00027 <span class="keyword">protected</span>: 
    80 <a name="l00029"></a><a class="code" href="classbdm_1_1memlog.html#aa690ebd91430b5973855c9b4c9cf1b1d">00029</a>         <span class="keywordtype">int</span> <a class="code" href="classbdm_1_1memlog.html#aa690ebd91430b5973855c9b4c9cf1b1d" title="Maximum length of vectors stored in memory.">maxlen</a>; 
    81 <a name="l00031"></a><a class="code" href="classbdm_1_1memlog.html#a70cec1d3549a82796ad7b6f0d07a4570">00031</a>         <span class="keywordtype">int</span> <a class="code" href="classbdm_1_1memlog.html#a70cec1d3549a82796ad7b6f0d07a4570" title="Currect record to be written.">ind</a>; 
    82 <a name="l00033"></a><a class="code" href="classbdm_1_1memlog.html#a1fed143162f2de6ef1c1b6557964f24e">00033</a>         Array&lt;mat&gt; <a class="code" href="classbdm_1_1memlog.html#a1fed143162f2de6ef1c1b6557964f24e" title="Storage.">vectors</a>; 
    83 <a name="l00035"></a><a class="code" href="classbdm_1_1memlog.html#a11fdf8ffca0f509ff637b0c3ac161c1f">00035</a>         <span class="keywordtype">string</span> <a class="code" href="classbdm_1_1memlog.html#a11fdf8ffca0f509ff637b0c3ac161c1f" title="name of it file to save results">itfilename</a>; 
     77<a name="l00029"></a><a class="code" href="classbdm_1_1memlog.html#a690ebd91430b5973855c9b4c9cf1b1d">00029</a>         <span class="keywordtype">int</span> <a class="code" href="classbdm_1_1memlog.html#a690ebd91430b5973855c9b4c9cf1b1d" title="Maximum length of vectors stored in memory.">maxlen</a>; 
     78<a name="l00031"></a><a class="code" href="classbdm_1_1memlog.html#70cec1d3549a82796ad7b6f0d07a4570">00031</a>         <span class="keywordtype">int</span> <a class="code" href="classbdm_1_1memlog.html#70cec1d3549a82796ad7b6f0d07a4570" title="Currect record to be written.">ind</a>; 
     79<a name="l00033"></a><a class="code" href="classbdm_1_1memlog.html#1fed143162f2de6ef1c1b6557964f24e">00033</a>         Array&lt;mat&gt; <a class="code" href="classbdm_1_1memlog.html#1fed143162f2de6ef1c1b6557964f24e" title="Storage.">vectors</a>; 
     80<a name="l00035"></a><a class="code" href="classbdm_1_1memlog.html#11fdf8ffca0f509ff637b0c3ac161c1f">00035</a>         <span class="keywordtype">string</span> <a class="code" href="classbdm_1_1memlog.html#11fdf8ffca0f509ff637b0c3ac161c1f" title="name of it file to save results">itfilename</a>; 
    8481<a name="l00036"></a>00036 <span class="keyword">public</span>: 
    85 <a name="l00037"></a>00037         <a class="code" href="classbdm_1_1memlog.html#a943e83e297ec3eb878ab12c89a6659f5" title="Default constructor.">memlog</a> ( <span class="keywordtype">int</span> maxlen0, <span class="keywordtype">string</span> itf = <span class="stringliteral">&quot;&quot;</span> ) : <a class="code" href="classbdm_1_1memlog.html#aa690ebd91430b5973855c9b4c9cf1b1d" title="Maximum length of vectors stored in memory.">maxlen</a> ( maxlen0 ), <a class="code" href="classbdm_1_1memlog.html#a70cec1d3549a82796ad7b6f0d07a4570" title="Currect record to be written.">ind</a> ( 0 ), <a class="code" href="classbdm_1_1memlog.html#a1fed143162f2de6ef1c1b6557964f24e" title="Storage.">vectors</a> ( 0 ), <a class="code" href="classbdm_1_1memlog.html#a11fdf8ffca0f509ff637b0c3ac161c1f" title="name of it file to save results">itfilename</a> ( itf ) {} 
     82<a name="l00037"></a>00037         <a class="code" href="classbdm_1_1memlog.html#943e83e297ec3eb878ab12c89a6659f5" title="Default constructor.">memlog</a> ( <span class="keywordtype">int</span> maxlen0, <span class="keywordtype">string</span> itf = <span class="stringliteral">""</span> ) : <a class="code" href="classbdm_1_1memlog.html#a690ebd91430b5973855c9b4c9cf1b1d" title="Maximum length of vectors stored in memory.">maxlen</a> ( maxlen0 ), <a class="code" href="classbdm_1_1memlog.html#70cec1d3549a82796ad7b6f0d07a4570" title="Currect record to be written.">ind</a> ( 0 ), <a class="code" href="classbdm_1_1memlog.html#1fed143162f2de6ef1c1b6557964f24e" title="Storage.">vectors</a> ( 0 ), <a class="code" href="classbdm_1_1memlog.html#11fdf8ffca0f509ff637b0c3ac161c1f" title="name of it file to save results">itfilename</a> ( itf ) {} 
    8683<a name="l00038"></a>00038  
    87 <a name="l00040"></a><a class="code" href="classbdm_1_1memlog.html#a943e83e297ec3eb878ab12c89a6659f5">00040</a>         <a class="code" href="classbdm_1_1memlog.html#a943e83e297ec3eb878ab12c89a6659f5" title="Default constructor.">memlog</a>() : <a class="code" href="classbdm_1_1memlog.html#aa690ebd91430b5973855c9b4c9cf1b1d" title="Maximum length of vectors stored in memory.">maxlen</a> ( 0 ), <a class="code" href="classbdm_1_1memlog.html#a70cec1d3549a82796ad7b6f0d07a4570" title="Currect record to be written.">ind</a> ( 0 ), <a class="code" href="classbdm_1_1memlog.html#a1fed143162f2de6ef1c1b6557964f24e" title="Storage.">vectors</a> ( 0 ) {} 
     84<a name="l00040"></a><a class="code" href="classbdm_1_1memlog.html#943e83e297ec3eb878ab12c89a6659f5">00040</a>         <a class="code" href="classbdm_1_1memlog.html#943e83e297ec3eb878ab12c89a6659f5" title="Default constructor.">memlog</a>() : <a class="code" href="classbdm_1_1memlog.html#a690ebd91430b5973855c9b4c9cf1b1d" title="Maximum length of vectors stored in memory.">maxlen</a> ( 0 ), <a class="code" href="classbdm_1_1memlog.html#70cec1d3549a82796ad7b6f0d07a4570" title="Currect record to be written.">ind</a> ( 0 ), <a class="code" href="classbdm_1_1memlog.html#1fed143162f2de6ef1c1b6557964f24e" title="Storage.">vectors</a> ( 0 ) {} 
    8885<a name="l00041"></a>00041  
    89 <a name="l00043"></a>00043         <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1memlog.html#ad3a8b007f3540523ff3f9910d9089391" title="Initialize storage.">init</a>(); 
     86<a name="l00043"></a>00043         <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1memlog.html#d3a8b007f3540523ff3f9910d9089391" title="Initialize storage.">init</a>(); 
    9087<a name="l00044"></a>00044  
    91 <a name="l00045"></a><a class="code" href="classbdm_1_1memlog.html#a69964f0472e53098528ee41507bdfc77">00045</a>         <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1memlog.html#a69964f0472e53098528ee41507bdfc77" title="Shifts storage position for another time step.">step</a>() { 
    92 <a name="l00046"></a>00046                 <span class="keywordflow">if</span> ( <a class="code" href="classbdm_1_1memlog.html#a70cec1d3549a82796ad7b6f0d07a4570" title="Currect record to be written.">ind</a> &lt; <a class="code" href="classbdm_1_1memlog.html#aa690ebd91430b5973855c9b4c9cf1b1d" title="Maximum length of vectors stored in memory.">maxlen</a> ) <a class="code" href="classbdm_1_1memlog.html#a70cec1d3549a82796ad7b6f0d07a4570" title="Currect record to be written.">ind</a>++; 
    93 <a name="l00047"></a>00047                 <span class="keywordflow">else</span> <a class="code" href="bdmerror_8h.html#a7c43f3a72afe68ab0c85663a1bb3521a" title="Unconditionally throw std::runtime_error.">bdm_error</a> ( <span class="stringliteral">&quot;memlog::ind is too high;&quot;</span> ); 
     88<a name="l00045"></a><a class="code" href="classbdm_1_1memlog.html#69964f0472e53098528ee41507bdfc77">00045</a>         <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1memlog.html#69964f0472e53098528ee41507bdfc77" title="Shifts storage position for another time step.">step</a>() { 
     89<a name="l00046"></a>00046                 <span class="keywordflow">if</span> ( <a class="code" href="classbdm_1_1memlog.html#70cec1d3549a82796ad7b6f0d07a4570" title="Currect record to be written.">ind</a> &lt; <a class="code" href="classbdm_1_1memlog.html#a690ebd91430b5973855c9b4c9cf1b1d" title="Maximum length of vectors stored in memory.">maxlen</a> ) <a class="code" href="classbdm_1_1memlog.html#70cec1d3549a82796ad7b6f0d07a4570" title="Currect record to be written.">ind</a>++; 
     90<a name="l00047"></a>00047                 <span class="keywordflow">else</span> <a class="code" href="bdmerror_8h.html#7c43f3a72afe68ab0c85663a1bb3521a" title="Unconditionally throw std::runtime_error.">bdm_error</a> ( <span class="stringliteral">"memlog::ind is too high;"</span> ); 
    9491<a name="l00048"></a>00048         } 
    9592<a name="l00049"></a>00049  
    96 <a name="l00050"></a><a class="code" href="classbdm_1_1memlog.html#a364e58c5d7058776c2a9cfa7d58dad6d">00050</a>         <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1memlog.html#a364e58c5d7058776c2a9cfa7d58dad6d" title="log this vector">logit</a> ( <span class="keywordtype">int</span> <span class="keywordtype">id</span>, <span class="keyword">const</span> vec &amp;v ) { 
    97 <a name="l00051"></a>00051                 <a class="code" href="bdmerror_8h.html#a7a3399d182b8e3065532596e76f84849" title="Throw std::runtime_exception if t is not true.">bdm_assert</a> ( <span class="keywordtype">id</span> &lt; <a class="code" href="classbdm_1_1memlog.html#a1fed143162f2de6ef1c1b6557964f24e" title="Storage.">vectors</a>.length(), <span class="stringliteral">&quot;Logger was not initialized, run init().&quot;</span> ); 
     93<a name="l00050"></a><a class="code" href="classbdm_1_1memlog.html#364e58c5d7058776c2a9cfa7d58dad6d">00050</a>         <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1memlog.html#364e58c5d7058776c2a9cfa7d58dad6d" title="log this vector">logit</a> ( <span class="keywordtype">int</span> <span class="keywordtype">id</span>, <span class="keyword">const</span> vec &amp;v ) { 
     94<a name="l00051"></a>00051                 <a class="code" href="bdmerror_8h.html#7a3399d182b8e3065532596e76f84849" title="Throw std::runtime_exception if t is not true.">bdm_assert</a> ( <span class="keywordtype">id</span> &lt; <a class="code" href="classbdm_1_1memlog.html#1fed143162f2de6ef1c1b6557964f24e" title="Storage.">vectors</a>.length(), <span class="stringliteral">"Logger was not initialized, run init()."</span> ); 
    9895<a name="l00052"></a>00052                 <span class="keywordflow">if</span> ( <span class="keywordtype">id</span> &gt;= 0 ) { 
    99 <a name="l00053"></a>00053                         <a class="code" href="classbdm_1_1memlog.html#a1fed143162f2de6ef1c1b6557964f24e" title="Storage.">vectors</a> ( <span class="keywordtype">id</span> ).set_row ( <a class="code" href="classbdm_1_1memlog.html#a70cec1d3549a82796ad7b6f0d07a4570" title="Currect record to be written.">ind</a>, v ); 
     96<a name="l00053"></a>00053                         <a class="code" href="classbdm_1_1memlog.html#1fed143162f2de6ef1c1b6557964f24e" title="Storage.">vectors</a> ( <span class="keywordtype">id</span> ).set_row ( <a class="code" href="classbdm_1_1memlog.html#70cec1d3549a82796ad7b6f0d07a4570" title="Currect record to be written.">ind</a>, v ); 
    10097<a name="l00054"></a>00054                 } 
    10198<a name="l00055"></a>00055         } 
    102 <a name="l00056"></a><a class="code" href="classbdm_1_1memlog.html#a2b57dbd3dff49a98c6ce8fccccb170af">00056</a>         <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1memlog.html#a2b57dbd3dff49a98c6ce8fccccb170af" title="log this double">logit</a> ( <span class="keywordtype">int</span> <span class="keywordtype">id</span>, <span class="keyword">const</span> <span class="keywordtype">double</span> &amp;d ) { 
    103 <a name="l00057"></a>00057                 <a class="code" href="bdmerror_8h.html#a89a0f906b242b79c5d3d342291b2cab4" title="Throw std::runtime_exception if t is not true and NDEBUG is not defined.">bdm_assert_debug</a> ( <span class="keywordtype">id</span> &lt; <a class="code" href="classbdm_1_1memlog.html#a1fed143162f2de6ef1c1b6557964f24e" title="Storage.">vectors</a>.length(), <span class="stringliteral">&quot;Logger was not initialized, run init().&quot;</span> ); 
    104 <a name="l00058"></a>00058                 <a class="code" href="bdmerror_8h.html#a89a0f906b242b79c5d3d342291b2cab4" title="Throw std::runtime_exception if t is not true and NDEBUG is not defined.">bdm_assert_debug</a> ( <a class="code" href="classbdm_1_1memlog.html#a1fed143162f2de6ef1c1b6557964f24e" title="Storage.">vectors</a> ( <span class="keywordtype">id</span> ).cols() == 1, <span class="stringliteral">&quot;Vector expected&quot;</span> ); 
     99<a name="l00056"></a><a class="code" href="classbdm_1_1memlog.html#2b57dbd3dff49a98c6ce8fccccb170af">00056</a>         <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1memlog.html#2b57dbd3dff49a98c6ce8fccccb170af" title="log this double">logit</a> ( <span class="keywordtype">int</span> <span class="keywordtype">id</span>, <span class="keyword">const</span> <span class="keywordtype">double</span> &amp;d ) { 
     100<a name="l00057"></a>00057                 <a class="code" href="bdmerror_8h.html#89a0f906b242b79c5d3d342291b2cab4" title="Throw std::runtime_exception if t is not true and NDEBUG is not defined.">bdm_assert_debug</a> ( <span class="keywordtype">id</span> &lt; <a class="code" href="classbdm_1_1memlog.html#1fed143162f2de6ef1c1b6557964f24e" title="Storage.">vectors</a>.length(), <span class="stringliteral">"Logger was not initialized, run init()."</span> ); 
     101<a name="l00058"></a>00058                 <a class="code" href="bdmerror_8h.html#89a0f906b242b79c5d3d342291b2cab4" title="Throw std::runtime_exception if t is not true and NDEBUG is not defined.">bdm_assert_debug</a> ( <a class="code" href="classbdm_1_1memlog.html#1fed143162f2de6ef1c1b6557964f24e" title="Storage.">vectors</a> ( <span class="keywordtype">id</span> ).cols() == 1, <span class="stringliteral">"Vector expected"</span> ); 
    105102<a name="l00059"></a>00059                 <span class="keywordflow">if</span> ( <span class="keywordtype">id</span> &gt;= 0 ) { 
    106 <a name="l00060"></a>00060                         <a class="code" href="classbdm_1_1memlog.html#a1fed143162f2de6ef1c1b6557964f24e" title="Storage.">vectors</a> ( <span class="keywordtype">id</span> ) ( <a class="code" href="classbdm_1_1memlog.html#a70cec1d3549a82796ad7b6f0d07a4570" title="Currect record to be written.">ind</a> ) = d; 
     103<a name="l00060"></a>00060                         <a class="code" href="classbdm_1_1memlog.html#1fed143162f2de6ef1c1b6557964f24e" title="Storage.">vectors</a> ( <span class="keywordtype">id</span> ) ( <a class="code" href="classbdm_1_1memlog.html#70cec1d3549a82796ad7b6f0d07a4570" title="Currect record to be written.">ind</a> ) = d; 
    107104<a name="l00061"></a>00061                 } 
    108105<a name="l00062"></a>00062         } 
    109 <a name="l00064"></a>00064         <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1memlog.html#a6a74b7a3d889607391594279112aef1f" title="Save values into an itfile named after fname.">itsave</a> ( <span class="keyword">const</span> <span class="keywordtype">char</span>* fname ); 
    110 <a name="l00066"></a><a class="code" href="classbdm_1_1memlog.html#a39e32f671414c71304e316976ccc37f3">00066</a>         <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1memlog.html#a39e32f671414c71304e316976ccc37f3" title="Finalize storing information.">finalize</a>() { 
    111 <a name="l00067"></a>00067                 <span class="keywordflow">if</span> ( <a class="code" href="classbdm_1_1memlog.html#a11fdf8ffca0f509ff637b0c3ac161c1f" title="name of it file to save results">itfilename</a>.length() &gt; 0 ) <a class="code" href="classbdm_1_1memlog.html#a6a74b7a3d889607391594279112aef1f" title="Save values into an itfile named after fname.">itsave</a> ( <a class="code" href="classbdm_1_1memlog.html#a11fdf8ffca0f509ff637b0c3ac161c1f" title="name of it file to save results">itfilename</a>.c_str() ); 
     106<a name="l00064"></a>00064         <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1memlog.html#6a74b7a3d889607391594279112aef1f" title="Save values into an itfile named after fname.">itsave</a> ( <span class="keyword">const</span> <span class="keywordtype">char</span>* fname ); 
     107<a name="l00066"></a><a class="code" href="classbdm_1_1memlog.html#39e32f671414c71304e316976ccc37f3">00066</a>         <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1memlog.html#39e32f671414c71304e316976ccc37f3" title="Finalize storing information.">finalize</a>() { 
     108<a name="l00067"></a>00067                 <span class="keywordflow">if</span> ( <a class="code" href="classbdm_1_1memlog.html#11fdf8ffca0f509ff637b0c3ac161c1f" title="name of it file to save results">itfilename</a>.length() &gt; 0 ) <a class="code" href="classbdm_1_1memlog.html#6a74b7a3d889607391594279112aef1f" title="Save values into an itfile named after fname.">itsave</a> ( <a class="code" href="classbdm_1_1memlog.html#11fdf8ffca0f509ff637b0c3ac161c1f" title="name of it file to save results">itfilename</a>.c_str() ); 
    112109<a name="l00068"></a>00068         }; 
    113110<a name="l00069"></a>00069  
    114111<a name="l00070"></a>00070  
    115 <a name="l00083"></a>00083         <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1memlog.html#a7352b474bc54c35ab7c9297c5b958629" title="UI for memlog.">from_setting</a> ( <span class="keyword">const</span> Setting &amp;<span class="keyword">set</span> ); 
     112<a name="l00083"></a>00083         <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1memlog.html#7352b474bc54c35ab7c9297c5b958629" title="UI for memlog.">from_setting</a> ( <span class="keyword">const</span> Setting &amp;<span class="keyword">set</span> ); 
    116113<a name="l00084"></a>00084  
    117114<a name="l00085"></a>00085         <span class="comment">// TODO dodelat void to_setting( Setting &amp;set ) const;</span> 
    118115<a name="l00086"></a>00086 }; 
    119116<a name="l00087"></a>00087  
    120 <a name="l00088"></a>00088 <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> ( memlog ); 
     117<a name="l00088"></a>00088 <a class="code" href="user__info_8h.html#4f9de2f17e844047726487b99def99c6" title="Macro for registration of class into map of user-infos, registered class is scriptable...">UIREGISTER</a> ( memlog ); 
    121118<a name="l00089"></a>00089 SHAREDPTR ( memlog ); 
    122119<a name="l00090"></a>00090  
     
    124121<a name="l00095"></a><a class="code" href="classbdm_1_1stdlog.html">00095</a> <span class="keyword">class </span><a class="code" href="classbdm_1_1stdlog.html" title="Simple logger used for debugging All data records are written out to std from where...">stdlog</a>: <span class="keyword">public</span> <a class="code" href="classbdm_1_1memlog.html">memlog</a>{ 
    125122<a name="l00096"></a>00096         <span class="keyword">public</span>: 
    126 <a name="l00098"></a><a class="code" href="classbdm_1_1stdlog.html#af3831e80f78fa52106501321377a0eb1">00098</a>                 <a class="code" href="classbdm_1_1stdlog.html#af3831e80f78fa52106501321377a0eb1" title="default constructor">stdlog</a>():<a class="code" href="classbdm_1_1memlog.html">memlog</a>(1){}; 
     123<a name="l00098"></a><a class="code" href="classbdm_1_1stdlog.html#f3831e80f78fa52106501321377a0eb1">00098</a>                 <a class="code" href="classbdm_1_1stdlog.html#f3831e80f78fa52106501321377a0eb1" title="default constructor">stdlog</a>():<a class="code" href="classbdm_1_1memlog.html">memlog</a>(1){}; 
    127124<a name="l00099"></a>00099                  
    128 <a name="l00100"></a><a class="code" href="classbdm_1_1stdlog.html#afbe8a8988ec1e66b0c3cf2cb776214a8">00100</a>                 <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1stdlog.html#afbe8a8988ec1e66b0c3cf2cb776214a8" title="Initialize storage.">init</a>() { 
    129 <a name="l00101"></a>00101                         <a class="code" href="classbdm_1_1stdlog.html#afbe8a8988ec1e66b0c3cf2cb776214a8" title="Initialize storage.">memlog::init</a>(); 
    130 <a name="l00102"></a>00102                         <span class="keywordflow">for</span> (<span class="keywordtype">int</span> i=0; i&lt;<a class="code" href="classbdm_1_1logger.html#ac54566a4554089443a20b2a49ed1a61f" title="RVs of all logged variables.">entries</a>.length();i++){ 
    131 <a name="l00103"></a>00103                                 <span class="keywordflow">if</span> (<a class="code" href="classbdm_1_1logger.html#ac54566a4554089443a20b2a49ed1a61f" title="RVs of all logged variables.">entries</a>(i)._dsize()==1) { 
    132 <a name="l00104"></a>00104                                         cout &lt;&lt; <a class="code" href="classbdm_1_1logger.html#a68ca1f05cf3d414ba0f39211977b8d02" title="Names of logged quantities, e.g. names of algorithm variants.">names</a>(i) &lt;&lt; <a class="code" href="classbdm_1_1logger.html#ac54566a4554089443a20b2a49ed1a61f" title="RVs of all logged variables.">entries</a>(i).name(0) &lt;&lt; <span class="stringliteral">&quot;\t&quot;</span>; 
     125<a name="l00100"></a><a class="code" href="classbdm_1_1stdlog.html#fbe8a8988ec1e66b0c3cf2cb776214a8">00100</a>                 <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1stdlog.html#fbe8a8988ec1e66b0c3cf2cb776214a8" title="Initialize storage.">init</a>() { 
     126<a name="l00101"></a>00101                         <a class="code" href="classbdm_1_1stdlog.html#fbe8a8988ec1e66b0c3cf2cb776214a8" title="Initialize storage.">memlog::init</a>(); 
     127<a name="l00102"></a>00102                         <span class="keywordflow">for</span> (<span class="keywordtype">int</span> i=0; i&lt;<a class="code" href="classbdm_1_1logger.html#c54566a4554089443a20b2a49ed1a61f" title="RVs of all logged variables.">entries</a>.length();i++){ 
     128<a name="l00103"></a>00103                                 <span class="keywordflow">if</span> (<a class="code" href="classbdm_1_1logger.html#c54566a4554089443a20b2a49ed1a61f" title="RVs of all logged variables.">entries</a>(i)._dsize()==1) { 
     129<a name="l00104"></a>00104                                         cout &lt;&lt; <a class="code" href="classbdm_1_1logger.html#68ca1f05cf3d414ba0f39211977b8d02" title="Names of logged quantities, e.g. names of algorithm variants.">names</a>(i) &lt;&lt; <a class="code" href="classbdm_1_1logger.html#c54566a4554089443a20b2a49ed1a61f" title="RVs of all logged variables.">entries</a>(i).name(0) &lt;&lt; <span class="stringliteral">"\t"</span>; 
    133130<a name="l00105"></a>00105                                 } 
    134131<a name="l00106"></a>00106                                 <span class="keywordflow">else</span> 
    135 <a name="l00107"></a>00107                                 <span class="keywordflow">for</span> (<span class="keywordtype">int</span> j=0; j&lt;<a class="code" href="classbdm_1_1memlog.html#a1fed143162f2de6ef1c1b6557964f24e" title="Storage.">vectors</a>(i).cols(); j++){ 
    136 <a name="l00108"></a>00108                                         cout &lt;&lt; <a class="code" href="classbdm_1_1logger.html#a68ca1f05cf3d414ba0f39211977b8d02" title="Names of logged quantities, e.g. names of algorithm variants.">names</a>(i) &lt;&lt; <a class="code" href="classbdm_1_1logger.html#ac54566a4554089443a20b2a49ed1a61f" title="RVs of all logged variables.">entries</a>(i).scalarname(j) &lt;&lt; <span class="stringliteral">&quot;\t&quot;</span>; 
     132<a name="l00107"></a>00107                                 <span class="keywordflow">for</span> (<span class="keywordtype">int</span> j=0; j&lt;<a class="code" href="classbdm_1_1memlog.html#1fed143162f2de6ef1c1b6557964f24e" title="Storage.">vectors</a>(i).cols(); j++){ 
     133<a name="l00108"></a>00108                                         cout &lt;&lt; <a class="code" href="classbdm_1_1logger.html#68ca1f05cf3d414ba0f39211977b8d02" title="Names of logged quantities, e.g. names of algorithm variants.">names</a>(i) &lt;&lt; <a class="code" href="classbdm_1_1logger.html#c54566a4554089443a20b2a49ed1a61f" title="RVs of all logged variables.">entries</a>(i).scalarname(j) &lt;&lt; <span class="stringliteral">"\t"</span>; 
    137134<a name="l00109"></a>00109                                 } 
    138135<a name="l00110"></a>00110                         } 
     
    141138<a name="l00113"></a>00113                          
    142139<a name="l00114"></a>00114                 } 
    143 <a name="l00116"></a><a class="code" href="classbdm_1_1stdlog.html#a57004e763add2e08dcdd8f5869db691d">00116</a>                 <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1stdlog.html#a57004e763add2e08dcdd8f5869db691d" title="writes everything out">step</a>() { 
    144 <a name="l00117"></a>00117                         <span class="keywordflow">for</span> (<span class="keywordtype">int</span> i=0; i&lt;<a class="code" href="classbdm_1_1memlog.html#a1fed143162f2de6ef1c1b6557964f24e" title="Storage.">vectors</a>.length();i++){ 
    145 <a name="l00118"></a>00118                                 <span class="keywordflow">for</span> (<span class="keywordtype">int</span> j=0; j&lt;<a class="code" href="classbdm_1_1memlog.html#a1fed143162f2de6ef1c1b6557964f24e" title="Storage.">vectors</a>(i).cols(); j++){ 
    146 <a name="l00119"></a>00119                                         cout &lt;&lt; <a class="code" href="classbdm_1_1memlog.html#a1fed143162f2de6ef1c1b6557964f24e" title="Storage.">vectors</a>(i)(0,j) &lt;&lt; <span class="stringliteral">&quot;\t&quot;</span>; 
     140<a name="l00116"></a><a class="code" href="classbdm_1_1stdlog.html#57004e763add2e08dcdd8f5869db691d">00116</a>                 <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1stdlog.html#57004e763add2e08dcdd8f5869db691d" title="writes everything out">step</a>() { 
     141<a name="l00117"></a>00117                         <span class="keywordflow">for</span> (<span class="keywordtype">int</span> i=0; i&lt;<a class="code" href="classbdm_1_1memlog.html#1fed143162f2de6ef1c1b6557964f24e" title="Storage.">vectors</a>.length();i++){ 
     142<a name="l00118"></a>00118                                 <span class="keywordflow">for</span> (<span class="keywordtype">int</span> j=0; j&lt;<a class="code" href="classbdm_1_1memlog.html#1fed143162f2de6ef1c1b6557964f24e" title="Storage.">vectors</a>(i).cols(); j++){ 
     143<a name="l00119"></a>00119                                         cout &lt;&lt; <a class="code" href="classbdm_1_1memlog.html#1fed143162f2de6ef1c1b6557964f24e" title="Storage.">vectors</a>(i)(0,j) &lt;&lt; <span class="stringliteral">"\t"</span>; 
    147144<a name="l00120"></a>00120                                 } 
    148145<a name="l00121"></a>00121                         } 
    149146<a name="l00122"></a>00122                         cout &lt;&lt; endl; 
    150147<a name="l00123"></a>00123                 } 
    151 <a name="l00134"></a><a class="code" href="classbdm_1_1stdlog.html#a68ac24c94c23887eecfae7c8a11a384d">00134</a>                 <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1stdlog.html#a68ac24c94c23887eecfae7c8a11a384d" title="UI for stdlog.">from_setting</a> ( <span class="keyword">const</span> Setting &amp;<span class="keyword">set</span> ){ 
     148<a name="l00134"></a><a class="code" href="classbdm_1_1stdlog.html#68ac24c94c23887eecfae7c8a11a384d">00134</a>                 <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1stdlog.html#68ac24c94c23887eecfae7c8a11a384d" title="UI for stdlog.">from_setting</a> ( <span class="keyword">const</span> Setting &amp;<span class="keyword">set</span> ){ 
    152149<a name="l00135"></a>00135                 } 
    153150<a name="l00136"></a>00136                  
    154151<a name="l00137"></a>00137 }; 
    155 <a name="l00138"></a>00138 <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>(stdlog); 
     152<a name="l00138"></a>00138 <a class="code" href="user__info_8h.html#4f9de2f17e844047726487b99def99c6" title="Macro for registration of class into map of user-infos, registered class is scriptable...">UIREGISTER</a>(stdlog); 
    156153<a name="l00139"></a>00139  
    157154<a name="l00147"></a><a class="code" href="classbdm_1_1dirfilelog.html">00147</a> <span class="keyword">class </span><a class="code" href="classbdm_1_1dirfilelog.html" title="Logging into dirfile with buffer in memory.">dirfilelog</a> : <span class="keyword">public</span> <a class="code" href="classbdm_1_1memlog.html">memlog</a> { 
    158155<a name="l00148"></a>00148  
    159156<a name="l00149"></a>00149 <span class="keyword">protected</span>: 
    160 <a name="l00151"></a><a class="code" href="classbdm_1_1dirfilelog.html#a985eb02770f01e25cdceff32ff53a9c5">00151</a>         <span class="keywordtype">string</span> <a class="code" href="classbdm_1_1dirfilelog.html#a985eb02770f01e25cdceff32ff53a9c5" title="name of the directory">dirname</a>; 
    161 <a name="l00153"></a><a class="code" href="classbdm_1_1dirfilelog.html#a7805040fe1ffa2a048c33980bc995793">00153</a>         Array&lt;string&gt; <a class="code" href="classbdm_1_1dirfilelog.html#a7805040fe1ffa2a048c33980bc995793" title="Automatically generated.">scalarnames</a>; 
     157<a name="l00151"></a><a class="code" href="classbdm_1_1dirfilelog.html#985eb02770f01e25cdceff32ff53a9c5">00151</a>         <span class="keywordtype">string</span> <a class="code" href="classbdm_1_1dirfilelog.html#985eb02770f01e25cdceff32ff53a9c5" title="name of the directory">dirname</a>; 
     158<a name="l00153"></a><a class="code" href="classbdm_1_1dirfilelog.html#7805040fe1ffa2a048c33980bc995793">00153</a>         Array&lt;string&gt; <a class="code" href="classbdm_1_1dirfilelog.html#7805040fe1ffa2a048c33980bc995793" title="Automatically generated.">scalarnames</a>; 
    162159<a name="l00154"></a>00154 <span class="keyword">public</span>: 
    163 <a name="l00158"></a><a class="code" href="classbdm_1_1dirfilelog.html#a15e1c0228c8ecefb372b364742748dff">00158</a>         <a class="code" href="classbdm_1_1dirfilelog.html#a15e1c0228c8ecefb372b364742748dff" title="Default constructor.">dirfilelog</a> ( <span class="keywordtype">string</span> dirname0, <span class="keywordtype">int</span> maxlen0 ) : <a class="code" href="classbdm_1_1memlog.html">memlog</a> ( maxlen0 ), <a class="code" href="classbdm_1_1dirfilelog.html#a985eb02770f01e25cdceff32ff53a9c5" title="name of the directory">dirname</a> ( dirname0 ), <a class="code" href="classbdm_1_1dirfilelog.html#a7805040fe1ffa2a048c33980bc995793" title="Automatically generated.">scalarnames</a> ( 0 ) {} 
     160<a name="l00158"></a><a class="code" href="classbdm_1_1dirfilelog.html#15e1c0228c8ecefb372b364742748dff">00158</a>         <a class="code" href="classbdm_1_1dirfilelog.html#15e1c0228c8ecefb372b364742748dff" title="Default constructor.">dirfilelog</a> ( <span class="keywordtype">string</span> dirname0, <span class="keywordtype">int</span> maxlen0 ) : <a class="code" href="classbdm_1_1memlog.html">memlog</a> ( maxlen0 ), <a class="code" href="classbdm_1_1dirfilelog.html#985eb02770f01e25cdceff32ff53a9c5" title="name of the directory">dirname</a> ( dirname0 ), <a class="code" href="classbdm_1_1dirfilelog.html#7805040fe1ffa2a048c33980bc995793" title="Automatically generated.">scalarnames</a> ( 0 ) {} 
    164161<a name="l00159"></a>00159  
    165162<a name="l00160"></a>00160         <a class="code" href="classbdm_1_1dirfilelog.html" title="Logging into dirfile with buffer in memory.">dirfilelog</a>() {} 
    166163<a name="l00161"></a>00161  
    167 <a name="l00163"></a>00163         <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1dirfilelog.html#a78a3bd8a83cbd6299e279544bc81493d" title="Initialize storage.">init</a>(); 
    168 <a name="l00164"></a>00164         <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1dirfilelog.html#af79660645d09aa2d8bdd18923a721662" title="Shifts storage position for another time step.">step</a>(); 
    169 <a name="l00165"></a>00165         <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1dirfilelog.html#a521d7ba159f97a0182392df27953804f" title="Finalize storing information.">finalize</a>(); 
    170 <a name="l00169"></a>00169         <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1dirfilelog.html#af595c0df25f5fa5d8c27ea1e375d9c51" title="Write memory storage to disk.">write_buffers</a> ( <span class="keywordtype">int</span> Len ); 
     164<a name="l00163"></a>00163         <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1dirfilelog.html#78a3bd8a83cbd6299e279544bc81493d" title="Initialize storage.">init</a>(); 
     165<a name="l00164"></a>00164         <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1dirfilelog.html#f79660645d09aa2d8bdd18923a721662" title="Shifts storage position for another time step.">step</a>(); 
     166<a name="l00165"></a>00165         <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1dirfilelog.html#521d7ba159f97a0182392df27953804f" title="Finalize storing information.">finalize</a>(); 
     167<a name="l00169"></a>00169         <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1dirfilelog.html#f595c0df25f5fa5d8c27ea1e375d9c51" title="Write memory storage to disk.">write_buffers</a> ( <span class="keywordtype">int</span> Len ); 
    171168<a name="l00170"></a>00170  
    172 <a name="l00180"></a>00180         <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1dirfilelog.html#aa32de0f314a30392d69f07458643514e" title="UI for dirfilelog (Kst file format).">from_setting</a> ( <span class="keyword">const</span> Setting &amp;<span class="keyword">set</span> ); 
     169<a name="l00180"></a>00180         <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1dirfilelog.html#a32de0f314a30392d69f07458643514e" title="UI for dirfilelog (Kst file format).">from_setting</a> ( <span class="keyword">const</span> Setting &amp;<span class="keyword">set</span> ); 
    173170<a name="l00181"></a>00181  
    174171<a name="l00182"></a>00182         <span class="comment">// TODO dodelat void to_setting( Setting &amp;set ) const;</span> 
    175172<a name="l00183"></a>00183 }; 
    176173<a name="l00184"></a>00184  
    177 <a name="l00185"></a>00185 <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> ( dirfilelog ); 
     174<a name="l00185"></a>00185 <a class="code" href="user__info_8h.html#4f9de2f17e844047726487b99def99c6" title="Macro for registration of class into map of user-infos, registered class is scriptable...">UIREGISTER</a> ( dirfilelog ); 
    178175<a name="l00186"></a>00186 SHAREDPTR ( dirfilelog ); 
    179176<a name="l00187"></a>00187  
     
    181178<a name="l00189"></a>00189 <span class="preprocessor">#endif // LGR_H</span> 
    182179</pre></div></div> 
    183 <hr size="1"/><address style="text-align: right;"><small>Generated on Sun Sep 27 00:49:04 2009 for mixpp by&nbsp; 
     180<hr size="1"><address style="text-align: right;"><small>Generated on Wed Oct 7 17:34:43 2009 for mixpp by&nbsp; 
    184181<a href="http://www.doxygen.org/index.html"> 
    185 <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.1 </small></address> 
     182<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.9 </small></address> 
    186183</body> 
    187184</html>