[591] | 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"/> |
---|
[259] | 5 | <title>mixpp: bdm::memlog Class Reference</title> |
---|
[591] | 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 --> |
---|
[271] | 11 | <script type="text/javascript"> |
---|
| 12 | <!-- |
---|
| 13 | function changeDisplayState (e){ |
---|
| 14 | var num=this.id.replace(/[^[0-9]/g,''); |
---|
| 15 | var button=this.firstChild; |
---|
| 16 | var sectionDiv=document.getElementById('dynsection'+num); |
---|
| 17 | if (sectionDiv.style.display=='none'||sectionDiv.style.display==''){ |
---|
| 18 | sectionDiv.style.display='block'; |
---|
| 19 | button.src='open.gif'; |
---|
| 20 | }else{ |
---|
| 21 | sectionDiv.style.display='none'; |
---|
| 22 | button.src='closed.gif'; |
---|
| 23 | } |
---|
| 24 | } |
---|
| 25 | function initDynSections(){ |
---|
| 26 | var divs=document.getElementsByTagName('div'); |
---|
| 27 | var sectionCounter=1; |
---|
| 28 | for(var i=0;i<divs.length-1;i++){ |
---|
| 29 | if(divs[i].className=='dynheader'&&divs[i+1].className=='dynsection'){ |
---|
| 30 | var header=divs[i]; |
---|
| 31 | var section=divs[i+1]; |
---|
| 32 | var button=header.firstChild; |
---|
| 33 | if (button!='IMG'){ |
---|
| 34 | divs[i].insertBefore(document.createTextNode(' '),divs[i].firstChild); |
---|
| 35 | button=document.createElement('img'); |
---|
| 36 | divs[i].insertBefore(button,divs[i].firstChild); |
---|
| 37 | } |
---|
| 38 | header.style.cursor='pointer'; |
---|
| 39 | header.onclick=changeDisplayState; |
---|
| 40 | header.id='dynheader'+sectionCounter; |
---|
| 41 | button.src='closed.gif'; |
---|
| 42 | section.id='dynsection'+sectionCounter; |
---|
| 43 | section.style.display='none'; |
---|
| 44 | section.style.marginLeft='14px'; |
---|
| 45 | sectionCounter++; |
---|
| 46 | } |
---|
| 47 | } |
---|
| 48 | } |
---|
| 49 | window.onload = initDynSections; |
---|
| 50 | --> |
---|
| 51 | </script> |
---|
[259] | 52 | <div class="navigation" id="top"> |
---|
| 53 | <div class="tabs"> |
---|
| 54 | <ul> |
---|
[271] | 55 | <li><a href="main.html"><span>Main Page</span></a></li> |
---|
[259] | 56 | <li><a href="pages.html"><span>Related Pages</span></a></li> |
---|
[290] | 57 | <li class="current"><a href="annotated.html"><span>Classes</span></a></li> |
---|
[259] | 58 | <li><a href="files.html"><span>Files</span></a></li> |
---|
| 59 | </ul> |
---|
| 60 | </div> |
---|
| 61 | <div class="tabs"> |
---|
| 62 | <ul> |
---|
| 63 | <li><a href="annotated.html"><span>Class List</span></a></li> |
---|
[290] | 64 | <li><a href="classes.html"><span>Class Index</span></a></li> |
---|
[259] | 65 | <li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li> |
---|
| 66 | <li><a href="functions.html"><span>Class Members</span></a></li> |
---|
| 67 | </ul> |
---|
| 68 | </div> |
---|
[271] | 69 | <div class="navpath"><b>bdm</b>::<a class="el" href="classbdm_1_1memlog.html">memlog</a> |
---|
[259] | 70 | </div> |
---|
| 71 | </div> |
---|
| 72 | <div class="contents"> |
---|
[591] | 73 | <h1>bdm::memlog Class Reference</h1><!-- doxytag: class="bdm::memlog" --><!-- doxytag: inherits="bdm::logger" --> |
---|
| 74 | <p><code>#include <<a class="el" href="loggers_8h_source.html">loggers.h</a>></code></p> |
---|
[259] | 75 | |
---|
[591] | 76 | <p><a href="classbdm_1_1memlog-members.html">List of all members.</a></p> |
---|
| 77 | <table border="0" cellpadding="0" cellspacing="0"> |
---|
| 78 | <tr><td colspan="2"><h2>Public Member Functions</h2></td></tr> |
---|
| 79 | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a611dda03b3050de2eaa448a59cee9c27"></a><!-- doxytag: member="bdm::memlog::memlog" ref="a611dda03b3050de2eaa448a59cee9c27" args="(int maxlen0, string itf="")" --> |
---|
[590] | 80 | </td><td class="memItemRight" valign="bottom"><b>memlog</b> (int maxlen0, string itf="")</td></tr> |
---|
[591] | 81 | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a943e83e297ec3eb878ab12c89a6659f5"></a><!-- doxytag: member="bdm::memlog::memlog" ref="a943e83e297ec3eb878ab12c89a6659f5" args="()" --> |
---|
| 82 | </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1memlog.html#a943e83e297ec3eb878ab12c89a6659f5">memlog</a> ()</td></tr> |
---|
| 83 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Default constructor. <br/></td></tr> |
---|
| 84 | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ad3a8b007f3540523ff3f9910d9089391"></a><!-- doxytag: member="bdm::memlog::init" ref="ad3a8b007f3540523ff3f9910d9089391" args="()" --> |
---|
| 85 | void </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1memlog.html#ad3a8b007f3540523ff3f9910d9089391">init</a> ()</td></tr> |
---|
| 86 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Initialize storage. <br/></td></tr> |
---|
| 87 | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a69964f0472e53098528ee41507bdfc77"></a><!-- doxytag: member="bdm::memlog::step" ref="a69964f0472e53098528ee41507bdfc77" args="()" --> |
---|
| 88 | void </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1memlog.html#a69964f0472e53098528ee41507bdfc77">step</a> ()</td></tr> |
---|
| 89 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Shifts storage position for another time step. <br/></td></tr> |
---|
| 90 | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a364e58c5d7058776c2a9cfa7d58dad6d"></a><!-- doxytag: member="bdm::memlog::logit" ref="a364e58c5d7058776c2a9cfa7d58dad6d" args="(int id, const vec &v)" --> |
---|
| 91 | void </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1memlog.html#a364e58c5d7058776c2a9cfa7d58dad6d">logit</a> (int id, const vec &v)</td></tr> |
---|
| 92 | <tr><td class="mdescLeft"> </td><td class="mdescRight">log this vector <br/></td></tr> |
---|
| 93 | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a2b57dbd3dff49a98c6ce8fccccb170af"></a><!-- doxytag: member="bdm::memlog::logit" ref="a2b57dbd3dff49a98c6ce8fccccb170af" args="(int id, const double &d)" --> |
---|
| 94 | void </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1memlog.html#a2b57dbd3dff49a98c6ce8fccccb170af">logit</a> (int id, const double &d)</td></tr> |
---|
| 95 | <tr><td class="mdescLeft"> </td><td class="mdescRight">log this double <br/></td></tr> |
---|
| 96 | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a6a74b7a3d889607391594279112aef1f"></a><!-- doxytag: member="bdm::memlog::itsave" ref="a6a74b7a3d889607391594279112aef1f" args="(const char *fname)" --> |
---|
| 97 | void </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1memlog.html#a6a74b7a3d889607391594279112aef1f">itsave</a> (const char *fname)</td></tr> |
---|
| 98 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Save values into an itfile named after <code>fname</code>. <br/></td></tr> |
---|
| 99 | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a39e32f671414c71304e316976ccc37f3"></a><!-- doxytag: member="bdm::memlog::finalize" ref="a39e32f671414c71304e316976ccc37f3" args="()" --> |
---|
| 100 | void </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1memlog.html#a39e32f671414c71304e316976ccc37f3">finalize</a> ()</td></tr> |
---|
| 101 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Finalize storing information. <br/></td></tr> |
---|
| 102 | <tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1memlog.html#a7352b474bc54c35ab7c9297c5b958629">from_setting</a> (const Setting &set)</td></tr> |
---|
| 103 | <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_1memlog.html">memlog</a>. <a href="#a7352b474bc54c35ab7c9297c5b958629"></a><br/></td></tr> |
---|
[608] | 104 | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a47aa3b098a81d02a8ffaea2c9fa09ac7"></a><!-- doxytag: member="bdm::memlog::add" ref="a47aa3b098a81d02a8ffaea2c9fa09ac7" args="(const RV &rv, string prefix="")" --> |
---|
| 105 | virtual int </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1logger.html#a47aa3b098a81d02a8ffaea2c9fa09ac7">add</a> (const <a class="el" href="classbdm_1_1RV.html">RV</a> &rv, string prefix="")</td></tr> |
---|
| 106 | <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#ae30f695619931b3c372ab280e452d309" 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#ae30f695619931b3c372ab280e452d309" title="log this vector">logit()</a></code>. <br/></td></tr> |
---|
[591] | 107 | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aaf0e6941ba5919cae1bc530e2181b109"></a><!-- doxytag: member="bdm::memlog::to_string" ref="aaf0e6941ba5919cae1bc530e2181b109" args="()" --> |
---|
| 108 | virtual string </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1root.html#aaf0e6941ba5919cae1bc530e2181b109">to_string</a> ()</td></tr> |
---|
| 109 | <tr><td class="mdescLeft"> </td><td class="mdescRight">This method returns a basic info about the current instance. <br/></td></tr> |
---|
| 110 | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a67d954d255ede776eade7334d4895790"></a><!-- doxytag: member="bdm::memlog::to_setting" ref="a67d954d255ede776eade7334d4895790" args="(Setting &set) const " --> |
---|
| 111 | virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1root.html#a67d954d255ede776eade7334d4895790">to_setting</a> (Setting &set) const </td></tr> |
---|
| 112 | <tr><td class="mdescLeft"> </td><td class="mdescRight">This method save all the instance properties into the Setting structure. <br/></td></tr> |
---|
| 113 | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a1c314bd6d6dacb8ba78ea5eb88fd9516"></a><!-- doxytag: member="bdm::memlog::validate" ref="a1c314bd6d6dacb8ba78ea5eb88fd9516" args="()" --> |
---|
| 114 | virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1root.html#a1c314bd6d6dacb8ba78ea5eb88fd9516">validate</a> ()</td></tr> |
---|
| 115 | <tr><td class="mdescLeft"> </td><td class="mdescRight">This method TODO. <br/></td></tr> |
---|
| 116 | <tr><td colspan="2"><h2>Protected Attributes</h2></td></tr> |
---|
| 117 | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aa690ebd91430b5973855c9b4c9cf1b1d"></a><!-- doxytag: member="bdm::memlog::maxlen" ref="aa690ebd91430b5973855c9b4c9cf1b1d" args="" --> |
---|
| 118 | int </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1memlog.html#aa690ebd91430b5973855c9b4c9cf1b1d">maxlen</a></td></tr> |
---|
| 119 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Maximum length of vectors stored in memory. <br/></td></tr> |
---|
| 120 | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a70cec1d3549a82796ad7b6f0d07a4570"></a><!-- doxytag: member="bdm::memlog::ind" ref="a70cec1d3549a82796ad7b6f0d07a4570" args="" --> |
---|
| 121 | int </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1memlog.html#a70cec1d3549a82796ad7b6f0d07a4570">ind</a></td></tr> |
---|
| 122 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Currect record to be written. <br/></td></tr> |
---|
| 123 | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a1fed143162f2de6ef1c1b6557964f24e"></a><!-- doxytag: member="bdm::memlog::vectors" ref="a1fed143162f2de6ef1c1b6557964f24e" args="" --> |
---|
| 124 | Array< mat > </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1memlog.html#a1fed143162f2de6ef1c1b6557964f24e">vectors</a></td></tr> |
---|
| 125 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Storage. <br/></td></tr> |
---|
| 126 | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a11fdf8ffca0f509ff637b0c3ac161c1f"></a><!-- doxytag: member="bdm::memlog::itfilename" ref="a11fdf8ffca0f509ff637b0c3ac161c1f" args="" --> |
---|
| 127 | string </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1memlog.html#a11fdf8ffca0f509ff637b0c3ac161c1f">itfilename</a></td></tr> |
---|
| 128 | <tr><td class="mdescLeft"> </td><td class="mdescRight">name of it file to save results <br/></td></tr> |
---|
| 129 | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ac54566a4554089443a20b2a49ed1a61f"></a><!-- doxytag: member="bdm::memlog::entries" ref="ac54566a4554089443a20b2a49ed1a61f" args="" --> |
---|
| 130 | 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#ac54566a4554089443a20b2a49ed1a61f">entries</a></td></tr> |
---|
| 131 | <tr><td class="mdescLeft"> </td><td class="mdescRight">RVs of all logged variables. <br/></td></tr> |
---|
| 132 | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a68ca1f05cf3d414ba0f39211977b8d02"></a><!-- doxytag: member="bdm::memlog::names" ref="a68ca1f05cf3d414ba0f39211977b8d02" args="" --> |
---|
| 133 | Array< string > </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1logger.html#a68ca1f05cf3d414ba0f39211977b8d02">names</a></td></tr> |
---|
| 134 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Names of logged quantities, e.g. names of algorithm variants. <br/></td></tr> |
---|
[259] | 135 | </table> |
---|
[591] | 136 | <hr/><a name="_details"></a><h2>Detailed Description</h2> |
---|
| 137 | <p>Logging into matrices in data format in memory, optionally persisted into a file. </p> |
---|
| 138 | <hr/><h2>Member Function Documentation</h2> |
---|
| 139 | <a class="anchor" id="a7352b474bc54c35ab7c9297c5b958629"></a><!-- doxytag: member="bdm::memlog::from_setting" ref="a7352b474bc54c35ab7c9297c5b958629" args="(const Setting &set)" --> |
---|
[368] | 140 | <div class="memitem"> |
---|
| 141 | <div class="memproto"> |
---|
| 142 | <table class="memname"> |
---|
| 143 | <tr> |
---|
[591] | 144 | <td class="memname">void bdm::memlog::from_setting </td> |
---|
[368] | 145 | <td>(</td> |
---|
| 146 | <td class="paramtype">const Setting & </td> |
---|
[591] | 147 | <td class="paramname"> <em>set</em></td> |
---|
[368] | 148 | <td> ) </td> |
---|
| 149 | <td><code> [virtual]</code></td> |
---|
| 150 | </tr> |
---|
| 151 | </table> |
---|
| 152 | </div> |
---|
| 153 | <div class="memdoc"> |
---|
| 154 | |
---|
[591] | 155 | <p><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_1memlog.html">memlog</a>. </p> |
---|
| 156 | <p>TODO dat tam kam patri, a to celej blok</p> |
---|
| 157 | <div class="fragment"><pre class="fragment"> <a class="code" href="classbdm_1_1logger.html#af9c2fe7db5ddbda0098a4a5bd2c29fbf" title="Default constructor.">logger</a> = { |
---|
| 158 | <span class="keyword">class </span>= "<a class="code" href="classbdm_1_1memlog.html#a943e83e297ec3eb878ab12c89a6659f5" title="Default constructor.">memlog</a>"; |
---|
| 159 | filename = <span class="stringliteral">"file_name.it"</span>; <span class="comment">// resulting filename with results in it format</span> |
---|
| 160 | <a class="code" href="classbdm_1_1memlog.html#aa690ebd91430b5973855c9b4c9cf1b1d" title="Maximum length of vectors stored in memory.">maxlen</a> = 100; <span class="comment">// size of memory buffer</span> |
---|
[368] | 161 | } |
---|
| 162 | </pre></div> |
---|
[591] | 163 | <p>Reimplemented from <a class="el" href="classbdm_1_1root.html#a0551e3121091c5199bf4413b50522176">bdm::root</a>.</p> |
---|
[368] | 164 | |
---|
[614] | 165 | <p>Reimplemented in <a class="el" href="classbdm_1_1stdlog.html#a68ac24c94c23887eecfae7c8a11a384d">bdm::stdlog</a>, <a class="el" href="classbdm_1_1dirfilelog.html#aa32de0f314a30392d69f07458643514e">bdm::dirfilelog</a>, and <a class="el" href="classbdm_1_1mexlog.html#a39c44b30f201091ab3d287fe5741113e">bdm::mexlog</a>.</p> |
---|
[368] | 166 | |
---|
[591] | 167 | <p>References <a class="el" href="loggers_8h_source.html#l00035">itfilename</a>, and <a class="el" href="loggers_8h_source.html#l00029">maxlen</a>.</p> |
---|
[368] | 168 | |
---|
| 169 | </div> |
---|
[259] | 170 | </div> |
---|
[591] | 171 | <hr/>The documentation for this class was generated from the following files:<ul> |
---|
| 172 | <li><a class="el" href="loggers_8h_source.html">loggers.h</a></li> |
---|
| 173 | <li>loggers.cpp</li> |
---|
| 174 | </ul> |
---|
| 175 | </div> |
---|
[614] | 176 | <hr size="1"/><address style="text-align: right;"><small>Generated on Sun Sep 13 22:40:42 2009 for mixpp by |
---|
[259] | 177 | <a href="http://www.doxygen.org/index.html"> |
---|
[591] | 178 | <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.1 </small></address> |
---|
[259] | 179 | </body> |
---|
| 180 | </html> |
---|