[91] | 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"> |
---|
| 3 | <title>mixpp: dirfilelog Class Reference</title> |
---|
| 4 | <link href="doxygen.css" rel="stylesheet" type="text/css"> |
---|
| 5 | <link href="tabs.css" rel="stylesheet" type="text/css"> |
---|
| 6 | </head><body> |
---|
[139] | 7 | <!-- Generated by Doxygen 1.5.6 --> |
---|
[91] | 8 | <div class="navigation" id="top"> |
---|
| 9 | <div class="tabs"> |
---|
| 10 | <ul> |
---|
| 11 | <li><a href="index.html"><span>Main Page</span></a></li> |
---|
| 12 | <li><a href="pages.html"><span>Related Pages</span></a></li> |
---|
| 13 | <li class="current"><a href="annotated.html"><span>Classes</span></a></li> |
---|
| 14 | <li><a href="files.html"><span>Files</span></a></li> |
---|
| 15 | </ul> |
---|
| 16 | </div> |
---|
| 17 | <div class="tabs"> |
---|
| 18 | <ul> |
---|
| 19 | <li><a href="annotated.html"><span>Class List</span></a></li> |
---|
| 20 | <li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li> |
---|
| 21 | <li><a href="functions.html"><span>Class Members</span></a></li> |
---|
| 22 | </ul> |
---|
| 23 | </div> |
---|
| 24 | </div> |
---|
| 25 | <div class="contents"> |
---|
| 26 | <h1>dirfilelog Class Reference</h1><!-- doxytag: class="dirfilelog" --><!-- doxytag: inherits="memlog" -->Logging into dirfile with buffer in memory. |
---|
| 27 | <a href="#_details">More...</a> |
---|
| 28 | <p> |
---|
| 29 | <code>#include <<a class="el" href="loggers_8h-source.html">loggers.h</a>></code> |
---|
| 30 | <p> |
---|
| 31 | <div class="dynheader"> |
---|
| 32 | Inheritance diagram for dirfilelog:</div> |
---|
| 33 | <div class="dynsection"> |
---|
| 34 | <p><center><img src="classdirfilelog__inherit__graph.png" border="0" usemap="#dirfilelog__inherit__map" alt="Inheritance graph"></center> |
---|
| 35 | <map name="dirfilelog__inherit__map"> |
---|
| 36 | <area shape="rect" href="classmemlog.html" title="Logging into matrices in data format in memory." alt="" coords="7,82,73,106"><area shape="rect" href="classlogger.html" title="Class for storing results (and semi-results) of an experiment." alt="" coords="12,7,68,31"></map> |
---|
| 37 | <center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center></div> |
---|
| 38 | <div class="dynheader"> |
---|
| 39 | Collaboration diagram for dirfilelog:</div> |
---|
| 40 | <div class="dynsection"> |
---|
| 41 | <p><center><img src="classdirfilelog__coll__graph.png" border="0" usemap="#dirfilelog__coll__map" alt="Collaboration graph"></center> |
---|
| 42 | <map name="dirfilelog__coll__map"> |
---|
| 43 | <area shape="rect" href="classmemlog.html" title="Logging into matrices in data format in memory." alt="" coords="5,84,72,108"><area shape="rect" href="classlogger.html" title="Class for storing results (and semi-results) of an experiment." alt="" coords="11,7,67,31"></map> |
---|
| 44 | <center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center></div> |
---|
| 45 | |
---|
| 46 | <p> |
---|
| 47 | <a href="classdirfilelog-members.html">List of all members.</a><table border="0" cellpadding="0" cellspacing="0"> |
---|
| 48 | <tr><td></td></tr> |
---|
| 49 | <tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr> |
---|
| 50 | <tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classdirfilelog.html#802eeb6fc4ebf11d97638fd5dc651c68">dirfilelog</a> (std::string dirname0, int maxlen0)</td></tr> |
---|
| 51 | |
---|
| 52 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Default constructor. <a href="#802eeb6fc4ebf11d97638fd5dc651c68"></a><br></td></tr> |
---|
| 53 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="afeaebe003110f9db1ac43edf8e53a92"></a><!-- doxytag: member="dirfilelog::init" ref="afeaebe003110f9db1ac43edf8e53a92" args="()" --> |
---|
| 54 | void </td><td class="memItemRight" valign="bottom"><a class="el" href="classdirfilelog.html#afeaebe003110f9db1ac43edf8e53a92">init</a> ()</td></tr> |
---|
| 55 | |
---|
| 56 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Initialize storage. <br></td></tr> |
---|
| 57 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="887f2bb97e8c92ca42eea1fbac34eb51"></a><!-- doxytag: member="dirfilelog::step" ref="887f2bb97e8c92ca42eea1fbac34eb51" args="(bool final=false)" --> |
---|
| 58 | void </td><td class="memItemRight" valign="bottom"><a class="el" href="classdirfilelog.html#887f2bb97e8c92ca42eea1fbac34eb51">step</a> (bool final=false)</td></tr> |
---|
| 59 | |
---|
| 60 | <tr><td class="mdescLeft"> </td><td class="mdescRight">consider this record to be complete <br></td></tr> |
---|
| 61 | <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classdirfilelog.html#bd95cdb46af194245f88a7b4bf4c66c7">write_buffers</a> (int Len)</td></tr> |
---|
| 62 | |
---|
| 63 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Write memory storage to disk. <a href="#bd95cdb46af194245f88a7b4bf4c66c7"></a><br></td></tr> |
---|
| 64 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="8d2feeb826f7249e9104d616b5a67144"></a><!-- doxytag: member="dirfilelog::logit" ref="8d2feeb826f7249e9104d616b5a67144" args="(int id, vec v)" --> |
---|
| 65 | void </td><td class="memItemRight" valign="bottom"><a class="el" href="classmemlog.html#8d2feeb826f7249e9104d616b5a67144">logit</a> (int id, vec v)</td></tr> |
---|
| 66 | |
---|
| 67 | <tr><td class="mdescLeft"> </td><td class="mdescRight">log this vector <br></td></tr> |
---|
[106] | 68 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="65571ebbb16577b5211adbb27baf769c"></a><!-- doxytag: member="dirfilelog::itsave" ref="65571ebbb16577b5211adbb27baf769c" args="(const char *fname)" --> |
---|
[145] | 69 | void </td><td class="memItemRight" valign="bottom"><a class="el" href="classmemlog.html#65571ebbb16577b5211adbb27baf769c">itsave</a> (const char *fname)</td></tr> |
---|
[106] | 70 | |
---|
[145] | 71 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Save values into an itfile named after <code>fname</code>. <br></td></tr> |
---|
[91] | 72 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="3d6c6ab580b36619c4010e3ebec55378"></a><!-- doxytag: member="dirfilelog::add" ref="3d6c6ab580b36619c4010e3ebec55378" args="(RV rv, string name="")" --> |
---|
| 73 | virtual int </td><td class="memItemRight" valign="bottom"><a class="el" href="classlogger.html#3d6c6ab580b36619c4010e3ebec55378">add</a> (<a class="el" href="classRV.html">RV</a> rv, string name="")</td></tr> |
---|
| 74 | |
---|
| 75 | <tr><td class="mdescLeft"> </td><td class="mdescRight">returns an identifier which will be later needed for calling the log() function <br></td></tr> |
---|
| 76 | <tr><td colspan="2"><br><h2>Protected Attributes</h2></td></tr> |
---|
| 77 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="cba5ff1f74ed22910ed7d63aadf21771"></a><!-- doxytag: member="dirfilelog::dirname" ref="cba5ff1f74ed22910ed7d63aadf21771" args="" --> |
---|
| 78 | string </td><td class="memItemRight" valign="bottom"><a class="el" href="classdirfilelog.html#cba5ff1f74ed22910ed7d63aadf21771">dirname</a></td></tr> |
---|
| 79 | |
---|
| 80 | <tr><td class="mdescLeft"> </td><td class="mdescRight">name of the directory <br></td></tr> |
---|
| 81 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="854b7e7cc4cb40542b4a3ea06d915772"></a><!-- doxytag: member="dirfilelog::scalarnames" ref="854b7e7cc4cb40542b4a3ea06d915772" args="" --> |
---|
| 82 | Array< string > </td><td class="memItemRight" valign="bottom"><a class="el" href="classdirfilelog.html#854b7e7cc4cb40542b4a3ea06d915772">scalarnames</a></td></tr> |
---|
| 83 | |
---|
| 84 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Automatically generated. <br></td></tr> |
---|
| 85 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="4195f322897ededdac66c404b848ced3"></a><!-- doxytag: member="dirfilelog::maxlen" ref="4195f322897ededdac66c404b848ced3" args="" --> |
---|
| 86 | int </td><td class="memItemRight" valign="bottom"><a class="el" href="classmemlog.html#4195f322897ededdac66c404b848ced3">maxlen</a></td></tr> |
---|
| 87 | |
---|
| 88 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Maximum length of vectors stored in memory. <br></td></tr> |
---|
| 89 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="3410b4c002636508c43ddcba8d394520"></a><!-- doxytag: member="dirfilelog::ind" ref="3410b4c002636508c43ddcba8d394520" args="" --> |
---|
| 90 | int </td><td class="memItemRight" valign="bottom"><a class="el" href="classmemlog.html#3410b4c002636508c43ddcba8d394520">ind</a></td></tr> |
---|
| 91 | |
---|
| 92 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Currect record to be written. <br></td></tr> |
---|
| 93 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="f0f5bc7b83539ad102e8f65297852d91"></a><!-- doxytag: member="dirfilelog::vectors" ref="f0f5bc7b83539ad102e8f65297852d91" args="" --> |
---|
| 94 | Array< mat > </td><td class="memItemRight" valign="bottom"><a class="el" href="classmemlog.html#f0f5bc7b83539ad102e8f65297852d91">vectors</a></td></tr> |
---|
| 95 | |
---|
| 96 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Storage. <br></td></tr> |
---|
| 97 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="83eea0cf4fbca59474d015f751f128a7"></a><!-- doxytag: member="dirfilelog::entries" ref="83eea0cf4fbca59474d015f751f128a7" args="" --> |
---|
| 98 | Array< <a class="el" href="classRV.html">RV</a> > </td><td class="memItemRight" valign="bottom"><a class="el" href="classlogger.html#83eea0cf4fbca59474d015f751f128a7">entries</a></td></tr> |
---|
| 99 | |
---|
| 100 | <tr><td class="mdescLeft"> </td><td class="mdescRight">RVs of all logged variables. <br></td></tr> |
---|
| 101 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="39cb79e839ca8f8bb9dcbc8c5b9c7786"></a><!-- doxytag: member="dirfilelog::names" ref="39cb79e839ca8f8bb9dcbc8c5b9c7786" args="" --> |
---|
| 102 | Array< string > </td><td class="memItemRight" valign="bottom"><a class="el" href="classlogger.html#39cb79e839ca8f8bb9dcbc8c5b9c7786">names</a></td></tr> |
---|
| 103 | |
---|
| 104 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Names of logged quantities, e.g. names of algorithm variants. <br></td></tr> |
---|
| 105 | </table> |
---|
| 106 | <hr><a name="_details"></a><h2>Detailed Description</h2> |
---|
| 107 | Logging into dirfile with buffer in memory. |
---|
| 108 | <p> |
---|
| 109 | Dirfile is a special format used by the kst program. See documentation of kst for description.<p> |
---|
| 110 | This format is used to store scalars, hence multivariate RVs must be separated. <hr><h2>Constructor & Destructor Documentation</h2> |
---|
| 111 | <a class="anchor" name="802eeb6fc4ebf11d97638fd5dc651c68"></a><!-- doxytag: member="dirfilelog::dirfilelog" ref="802eeb6fc4ebf11d97638fd5dc651c68" args="(std::string dirname0, int maxlen0)" --> |
---|
| 112 | <div class="memitem"> |
---|
| 113 | <div class="memproto"> |
---|
| 114 | <table class="memname"> |
---|
| 115 | <tr> |
---|
| 116 | <td class="memname">dirfilelog::dirfilelog </td> |
---|
| 117 | <td>(</td> |
---|
| 118 | <td class="paramtype">std::string </td> |
---|
| 119 | <td class="paramname"> <em>dirname0</em>, </td> |
---|
| 120 | </tr> |
---|
| 121 | <tr> |
---|
| 122 | <td class="paramkey"></td> |
---|
| 123 | <td></td> |
---|
| 124 | <td class="paramtype">int </td> |
---|
| 125 | <td class="paramname"> <em>maxlen0</em></td><td> </td> |
---|
| 126 | </tr> |
---|
| 127 | <tr> |
---|
| 128 | <td></td> |
---|
| 129 | <td>)</td> |
---|
[139] | 130 | <td></td><td></td><td><code> [inline]</code></td> |
---|
[91] | 131 | </tr> |
---|
| 132 | </table> |
---|
| 133 | </div> |
---|
| 134 | <div class="memdoc"> |
---|
| 135 | |
---|
| 136 | <p> |
---|
| 137 | Default constructor. |
---|
| 138 | <p> |
---|
| 139 | <dl compact><dt><b>Parameters:</b></dt><dd> |
---|
| 140 | <table border="0" cellspacing="2" cellpadding="0"> |
---|
| 141 | <tr><td valign="top"></td><td valign="top"><em>dirname0</em> </td><td>name of the directory in which to store the results </td></tr> |
---|
| 142 | <tr><td valign="top"></td><td valign="top"><em>maxlen0</em> </td><td>length of the memory buffers, when full the buffers will be dumped to HDD and returned to the beginning. </td></tr> |
---|
| 143 | </table> |
---|
| 144 | </dl> |
---|
| 145 | |
---|
| 146 | </div> |
---|
| 147 | </div><p> |
---|
| 148 | <hr><h2>Member Function Documentation</h2> |
---|
| 149 | <a class="anchor" name="bd95cdb46af194245f88a7b4bf4c66c7"></a><!-- doxytag: member="dirfilelog::write_buffers" ref="bd95cdb46af194245f88a7b4bf4c66c7" args="(int Len)" --> |
---|
| 150 | <div class="memitem"> |
---|
| 151 | <div class="memproto"> |
---|
| 152 | <table class="memname"> |
---|
| 153 | <tr> |
---|
| 154 | <td class="memname">void dirfilelog::write_buffers </td> |
---|
| 155 | <td>(</td> |
---|
| 156 | <td class="paramtype">int </td> |
---|
| 157 | <td class="paramname"> <em>Len</em> </td> |
---|
| 158 | <td> ) </td> |
---|
[139] | 159 | <td></td> |
---|
[91] | 160 | </tr> |
---|
| 161 | </table> |
---|
| 162 | </div> |
---|
| 163 | <div class="memdoc"> |
---|
| 164 | |
---|
| 165 | <p> |
---|
| 166 | Write memory storage to disk. |
---|
| 167 | <p> |
---|
| 168 | <dl compact><dt><b>Parameters:</b></dt><dd> |
---|
| 169 | <table border="0" cellspacing="2" cellpadding="0"> |
---|
| 170 | <tr><td valign="top"></td><td valign="top"><em>Len</em> </td><td>length of buffer to be written, if 0 the file is truncated at 0. </td></tr> |
---|
| 171 | </table> |
---|
| 172 | </dl> |
---|
| 173 | |
---|
[145] | 174 | <p>References <a class="el" href="loggers_8h-source.html#l00102">dirname</a>, <a class="el" href="loggers_8h-source.html#l00031">logger::entries</a>, <a class="el" href="loggers_8h-source.html#l00068">memlog::maxlen</a>, <a class="el" href="loggers_8h-source.html#l00104">scalarnames</a>, and <a class="el" href="loggers_8h-source.html#l00072">memlog::vectors</a>.</p> |
---|
[91] | 175 | |
---|
[106] | 176 | <p>Referenced by <a class="el" href="loggers_8cpp-source.html#l00018">init()</a>, and <a class="el" href="loggers_8cpp-source.html#l00108">step()</a>.</p> |
---|
[91] | 177 | |
---|
| 178 | </div> |
---|
| 179 | </div><p> |
---|
| 180 | <hr>The documentation for this class was generated from the following files:<ul> |
---|
[145] | 181 | <li>work/git/mixpp/bdm/stat/<a class="el" href="loggers_8h-source.html">loggers.h</a><li>work/git/mixpp/bdm/stat/loggers.cpp</ul> |
---|
[91] | 182 | </div> |
---|
[145] | 183 | <hr size="1"><address style="text-align: right;"><small>Generated on Sat Aug 16 17:22:07 2008 for mixpp by |
---|
[91] | 184 | <a href="http://www.doxygen.org/index.html"> |
---|
[139] | 185 | <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.6 </small></address> |
---|
[91] | 186 | </body> |
---|
| 187 | </html> |
---|