[651] | 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"> |
---|
[614] | 3 | <title>mixpp: bdm::stdlog Class Reference</title> |
---|
[651] | 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 --> |
---|
[271] | 8 | <script type="text/javascript"> |
---|
| 9 | <!-- |
---|
| 10 | function changeDisplayState (e){ |
---|
| 11 | var num=this.id.replace(/[^[0-9]/g,''); |
---|
| 12 | var button=this.firstChild; |
---|
| 13 | var sectionDiv=document.getElementById('dynsection'+num); |
---|
| 14 | if (sectionDiv.style.display=='none'||sectionDiv.style.display==''){ |
---|
| 15 | sectionDiv.style.display='block'; |
---|
| 16 | button.src='open.gif'; |
---|
| 17 | }else{ |
---|
| 18 | sectionDiv.style.display='none'; |
---|
| 19 | button.src='closed.gif'; |
---|
| 20 | } |
---|
| 21 | } |
---|
| 22 | function initDynSections(){ |
---|
| 23 | var divs=document.getElementsByTagName('div'); |
---|
| 24 | var sectionCounter=1; |
---|
| 25 | for(var i=0;i<divs.length-1;i++){ |
---|
| 26 | if(divs[i].className=='dynheader'&&divs[i+1].className=='dynsection'){ |
---|
| 27 | var header=divs[i]; |
---|
| 28 | var section=divs[i+1]; |
---|
| 29 | var button=header.firstChild; |
---|
| 30 | if (button!='IMG'){ |
---|
| 31 | divs[i].insertBefore(document.createTextNode(' '),divs[i].firstChild); |
---|
| 32 | button=document.createElement('img'); |
---|
| 33 | divs[i].insertBefore(button,divs[i].firstChild); |
---|
| 34 | } |
---|
| 35 | header.style.cursor='pointer'; |
---|
| 36 | header.onclick=changeDisplayState; |
---|
| 37 | header.id='dynheader'+sectionCounter; |
---|
| 38 | button.src='closed.gif'; |
---|
| 39 | section.id='dynsection'+sectionCounter; |
---|
| 40 | section.style.display='none'; |
---|
| 41 | section.style.marginLeft='14px'; |
---|
| 42 | sectionCounter++; |
---|
| 43 | } |
---|
| 44 | } |
---|
| 45 | } |
---|
| 46 | window.onload = initDynSections; |
---|
| 47 | --> |
---|
| 48 | </script> |
---|
[259] | 49 | <div class="navigation" id="top"> |
---|
| 50 | <div class="tabs"> |
---|
| 51 | <ul> |
---|
[271] | 52 | <li><a href="main.html"><span>Main Page</span></a></li> |
---|
[259] | 53 | <li><a href="pages.html"><span>Related Pages</span></a></li> |
---|
[290] | 54 | <li class="current"><a href="annotated.html"><span>Classes</span></a></li> |
---|
[259] | 55 | <li><a href="files.html"><span>Files</span></a></li> |
---|
| 56 | </ul> |
---|
| 57 | </div> |
---|
| 58 | <div class="tabs"> |
---|
| 59 | <ul> |
---|
| 60 | <li><a href="annotated.html"><span>Class List</span></a></li> |
---|
[290] | 61 | <li><a href="classes.html"><span>Class Index</span></a></li> |
---|
[259] | 62 | <li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li> |
---|
| 63 | <li><a href="functions.html"><span>Class Members</span></a></li> |
---|
| 64 | </ul> |
---|
| 65 | </div> |
---|
[614] | 66 | <div class="navpath"><b>bdm</b>::<a class="el" href="classbdm_1_1stdlog.html">stdlog</a> |
---|
[259] | 67 | </div> |
---|
| 68 | </div> |
---|
| 69 | <div class="contents"> |
---|
[651] | 70 | <h1>bdm::stdlog Class Reference</h1><!-- doxytag: class="bdm::stdlog" --><!-- doxytag: inherits="bdm::memlog" -->Simple <a class="el" href="classbdm_1_1logger.html" title="Class for storing results (and semi-results) of an experiment.">logger</a> used for debugging All data records are written out to std from where they could be send to file. |
---|
| 71 | <a href="#_details">More...</a> |
---|
| 72 | <p> |
---|
| 73 | <code>#include <<a class="el" href="loggers_8h_source.html">loggers.h</a>></code> |
---|
| 74 | <p> |
---|
[259] | 75 | |
---|
[651] | 76 | <p> |
---|
| 77 | <a href="classbdm_1_1stdlog-members.html">List of all members.</a><table border="0" cellpadding="0" cellspacing="0"> |
---|
| 78 | <tr><td></td></tr> |
---|
| 79 | <tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr> |
---|
| 80 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="f3831e80f78fa52106501321377a0eb1"></a><!-- doxytag: member="bdm::stdlog::stdlog" ref="f3831e80f78fa52106501321377a0eb1" args="()" --> |
---|
| 81 | </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1stdlog.html#f3831e80f78fa52106501321377a0eb1">stdlog</a> ()</td></tr> |
---|
[259] | 82 | |
---|
[651] | 83 | <tr><td class="mdescLeft"> </td><td class="mdescRight">default constructor <br></td></tr> |
---|
| 84 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="fbe8a8988ec1e66b0c3cf2cb776214a8"></a><!-- doxytag: member="bdm::stdlog::init" ref="fbe8a8988ec1e66b0c3cf2cb776214a8" args="()" --> |
---|
| 85 | void </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1stdlog.html#fbe8a8988ec1e66b0c3cf2cb776214a8">init</a> ()</td></tr> |
---|
| 86 | |
---|
| 87 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Initialize storage. <br></td></tr> |
---|
| 88 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="57004e763add2e08dcdd8f5869db691d"></a><!-- doxytag: member="bdm::stdlog::step" ref="57004e763add2e08dcdd8f5869db691d" args="()" --> |
---|
| 89 | void </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1stdlog.html#57004e763add2e08dcdd8f5869db691d">step</a> ()</td></tr> |
---|
| 90 | |
---|
| 91 | <tr><td class="mdescLeft"> </td><td class="mdescRight">writes everything out <br></td></tr> |
---|
| 92 | <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1stdlog.html#68ac24c94c23887eecfae7c8a11a384d">from_setting</a> (const Setting &set)</td></tr> |
---|
| 93 | |
---|
| 94 | <tr><td class="mdescLeft"> </td><td class="mdescRight"><a class="el" href="classbdm_1_1UI.html" title="UI is an abstract class which collects all the auxiliary functions useful to prepare...">UI</a> for <a class="el" href="classbdm_1_1stdlog.html" title="Simple logger used for debugging All data records are written out to std from where...">stdlog</a>. <a href="#68ac24c94c23887eecfae7c8a11a384d"></a><br></td></tr> |
---|
| 95 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="364e58c5d7058776c2a9cfa7d58dad6d"></a><!-- doxytag: member="bdm::stdlog::logit" ref="364e58c5d7058776c2a9cfa7d58dad6d" args="(int id, const vec &v)" --> |
---|
| 96 | void </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1memlog.html#364e58c5d7058776c2a9cfa7d58dad6d">logit</a> (int id, const vec &v)</td></tr> |
---|
| 97 | |
---|
| 98 | <tr><td class="mdescLeft"> </td><td class="mdescRight">log this vector <br></td></tr> |
---|
| 99 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="2b57dbd3dff49a98c6ce8fccccb170af"></a><!-- doxytag: member="bdm::stdlog::logit" ref="2b57dbd3dff49a98c6ce8fccccb170af" args="(int id, const double &d)" --> |
---|
| 100 | void </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1memlog.html#2b57dbd3dff49a98c6ce8fccccb170af">logit</a> (int id, const double &d)</td></tr> |
---|
| 101 | |
---|
| 102 | <tr><td class="mdescLeft"> </td><td class="mdescRight">log this double <br></td></tr> |
---|
| 103 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="6a74b7a3d889607391594279112aef1f"></a><!-- doxytag: member="bdm::stdlog::itsave" ref="6a74b7a3d889607391594279112aef1f" args="(const char *fname)" --> |
---|
| 104 | void </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1memlog.html#6a74b7a3d889607391594279112aef1f">itsave</a> (const char *fname)</td></tr> |
---|
| 105 | |
---|
| 106 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Save values into an itfile named after <code>fname</code>. <br></td></tr> |
---|
| 107 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="39e32f671414c71304e316976ccc37f3"></a><!-- doxytag: member="bdm::stdlog::finalize" ref="39e32f671414c71304e316976ccc37f3" args="()" --> |
---|
| 108 | void </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1memlog.html#39e32f671414c71304e316976ccc37f3">finalize</a> ()</td></tr> |
---|
| 109 | |
---|
| 110 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Finalize storing information. <br></td></tr> |
---|
| 111 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="47aa3b098a81d02a8ffaea2c9fa09ac7"></a><!-- doxytag: member="bdm::stdlog::add" ref="47aa3b098a81d02a8ffaea2c9fa09ac7" args="(const RV &rv, string prefix="")" --> |
---|
| 112 | virtual int </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1logger.html#47aa3b098a81d02a8ffaea2c9fa09ac7">add</a> (const <a class="el" href="classbdm_1_1RV.html">RV</a> &rv, string prefix="")</td></tr> |
---|
| 113 | |
---|
| 114 | <tr><td class="mdescLeft"> </td><td class="mdescRight">returns an identifier which will be later needed for calling the <code><a class="el" href="classbdm_1_1logger.html#e30f695619931b3c372ab280e452d309" title="log this vector">logit()</a></code> function For empty <a class="el" href="classbdm_1_1RV.html" title="Class representing variables, most often random variables.">RV</a> it returns -1, this entry will be ignored by <code><a class="el" href="classbdm_1_1logger.html#e30f695619931b3c372ab280e452d309" title="log this vector">logit()</a></code>. <br></td></tr> |
---|
| 115 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="af0e6941ba5919cae1bc530e2181b109"></a><!-- doxytag: member="bdm::stdlog::to_string" ref="af0e6941ba5919cae1bc530e2181b109" args="()" --> |
---|
| 116 | virtual string </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1root.html#af0e6941ba5919cae1bc530e2181b109">to_string</a> ()</td></tr> |
---|
| 117 | |
---|
| 118 | <tr><td class="mdescLeft"> </td><td class="mdescRight">This method returns a basic info about the current instance. <br></td></tr> |
---|
| 119 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="67d954d255ede776eade7334d4895790"></a><!-- doxytag: member="bdm::stdlog::to_setting" ref="67d954d255ede776eade7334d4895790" args="(Setting &set) const " --> |
---|
| 120 | virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1root.html#67d954d255ede776eade7334d4895790">to_setting</a> (Setting &set) const </td></tr> |
---|
| 121 | |
---|
| 122 | <tr><td class="mdescLeft"> </td><td class="mdescRight">This method save all the instance properties into the Setting structure. <br></td></tr> |
---|
| 123 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="1c314bd6d6dacb8ba78ea5eb88fd9516"></a><!-- doxytag: member="bdm::stdlog::validate" ref="1c314bd6d6dacb8ba78ea5eb88fd9516" args="()" --> |
---|
| 124 | virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1root.html#1c314bd6d6dacb8ba78ea5eb88fd9516">validate</a> ()</td></tr> |
---|
| 125 | |
---|
| 126 | <tr><td class="mdescLeft"> </td><td class="mdescRight">This method TODO. <br></td></tr> |
---|
| 127 | <tr><td colspan="2"><br><h2>Protected Attributes</h2></td></tr> |
---|
| 128 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a690ebd91430b5973855c9b4c9cf1b1d"></a><!-- doxytag: member="bdm::stdlog::maxlen" ref="a690ebd91430b5973855c9b4c9cf1b1d" args="" --> |
---|
| 129 | int </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1memlog.html#a690ebd91430b5973855c9b4c9cf1b1d">maxlen</a></td></tr> |
---|
| 130 | |
---|
| 131 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Maximum length of vectors stored in memory. <br></td></tr> |
---|
| 132 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="70cec1d3549a82796ad7b6f0d07a4570"></a><!-- doxytag: member="bdm::stdlog::ind" ref="70cec1d3549a82796ad7b6f0d07a4570" args="" --> |
---|
| 133 | int </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1memlog.html#70cec1d3549a82796ad7b6f0d07a4570">ind</a></td></tr> |
---|
| 134 | |
---|
| 135 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Currect record to be written. <br></td></tr> |
---|
| 136 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="1fed143162f2de6ef1c1b6557964f24e"></a><!-- doxytag: member="bdm::stdlog::vectors" ref="1fed143162f2de6ef1c1b6557964f24e" args="" --> |
---|
| 137 | Array< mat > </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1memlog.html#1fed143162f2de6ef1c1b6557964f24e">vectors</a></td></tr> |
---|
| 138 | |
---|
| 139 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Storage. <br></td></tr> |
---|
| 140 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="11fdf8ffca0f509ff637b0c3ac161c1f"></a><!-- doxytag: member="bdm::stdlog::itfilename" ref="11fdf8ffca0f509ff637b0c3ac161c1f" args="" --> |
---|
| 141 | string </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1memlog.html#11fdf8ffca0f509ff637b0c3ac161c1f">itfilename</a></td></tr> |
---|
| 142 | |
---|
| 143 | <tr><td class="mdescLeft"> </td><td class="mdescRight">name of it file to save results <br></td></tr> |
---|
| 144 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="c54566a4554089443a20b2a49ed1a61f"></a><!-- doxytag: member="bdm::stdlog::entries" ref="c54566a4554089443a20b2a49ed1a61f" args="" --> |
---|
| 145 | Array< <a class="el" href="classbdm_1_1RV.html">RV</a> > </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1logger.html#c54566a4554089443a20b2a49ed1a61f">entries</a></td></tr> |
---|
| 146 | |
---|
| 147 | <tr><td class="mdescLeft"> </td><td class="mdescRight">RVs of all logged variables. <br></td></tr> |
---|
| 148 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="68ca1f05cf3d414ba0f39211977b8d02"></a><!-- doxytag: member="bdm::stdlog::names" ref="68ca1f05cf3d414ba0f39211977b8d02" args="" --> |
---|
| 149 | Array< string > </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1logger.html#68ca1f05cf3d414ba0f39211977b8d02">names</a></td></tr> |
---|
| 150 | |
---|
| 151 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Names of logged quantities, e.g. names of algorithm variants. <br></td></tr> |
---|
[259] | 152 | </table> |
---|
[651] | 153 | <hr><a name="_details"></a><h2>Detailed Description</h2> |
---|
| 154 | Simple <a class="el" href="classbdm_1_1logger.html" title="Class for storing results (and semi-results) of an experiment.">logger</a> used for debugging All data records are written out to std from where they could be send to file. <hr><h2>Member Function Documentation</h2> |
---|
| 155 | <a class="anchor" name="68ac24c94c23887eecfae7c8a11a384d"></a><!-- doxytag: member="bdm::stdlog::from_setting" ref="68ac24c94c23887eecfae7c8a11a384d" args="(const Setting &set)" --> |
---|
[368] | 156 | <div class="memitem"> |
---|
| 157 | <div class="memproto"> |
---|
| 158 | <table class="memname"> |
---|
| 159 | <tr> |
---|
[651] | 160 | <td class="memname">void bdm::stdlog::from_setting </td> |
---|
[368] | 161 | <td>(</td> |
---|
| 162 | <td class="paramtype">const Setting & </td> |
---|
[651] | 163 | <td class="paramname"> <em>set</em> </td> |
---|
[368] | 164 | <td> ) </td> |
---|
[538] | 165 | <td><code> [inline, virtual]</code></td> |
---|
[368] | 166 | </tr> |
---|
| 167 | </table> |
---|
| 168 | </div> |
---|
| 169 | <div class="memdoc"> |
---|
| 170 | |
---|
[651] | 171 | <p> |
---|
| 172 | <a class="el" href="classbdm_1_1UI.html" title="UI is an abstract class which collects all the auxiliary functions useful to prepare...">UI</a> for <a class="el" href="classbdm_1_1stdlog.html" title="Simple logger used for debugging All data records are written out to std from where...">stdlog</a>. |
---|
| 173 | <p> |
---|
| 174 | TODO dat tam kam patri, a to celej blok<p> |
---|
| 175 | <div class="fragment"><pre class="fragment"> <a class="code" href="classbdm_1_1logger.html#f9c2fe7db5ddbda0098a4a5bd2c29fbf" title="Default constructor.">logger</a> = { |
---|
| 176 | <span class="keyword">class </span>= "<a class="code" href="classbdm_1_1stdlog.html#f3831e80f78fa52106501321377a0eb1" title="default constructor">stdlog</a>"; <span class="comment">// no parameterization needed</span> |
---|
[614] | 177 | } |
---|
[368] | 178 | </pre></div> |
---|
[651] | 179 | <p>Reimplemented from <a class="el" href="classbdm_1_1memlog.html#7352b474bc54c35ab7c9297c5b958629">bdm::memlog</a>.</p> |
---|
[368] | 180 | |
---|
| 181 | </div> |
---|
[651] | 182 | </div><p> |
---|
| 183 | <hr>The documentation for this class was generated from the following file:<ul> |
---|
| 184 | <li><a class="el" href="loggers_8h_source.html">loggers.h</a></ul> |
---|
[259] | 185 | </div> |
---|
[651] | 186 | <hr size="1"><address style="text-align: right;"><small>Generated on Wed Oct 7 17:34:46 2009 for mixpp by |
---|
[259] | 187 | <a href="http://www.doxygen.org/index.html"> |
---|
[651] | 188 | <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.9 </small></address> |
---|
[259] | 189 | </body> |
---|
| 190 | </html> |
---|