1 | <?xml version='1.0' encoding='UTF-8' standalone='no'?> |
---|
2 | <doxygen xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="compound.xsd" version="1.5.6"> |
---|
3 | <compounddef id="loggers_8h" kind="file"> |
---|
4 | <compoundname>loggers.h</compoundname> |
---|
5 | <includes local="no">itpp/itbase.h</includes> |
---|
6 | <includes refid="libBM_8h" local="yes">libBM.h</includes> |
---|
7 | <includes refid="itpp__ext_8h" local="yes">../itpp_ext.h</includes> |
---|
8 | <includedby refid="loggers_8cpp" local="yes">work/git/mixpp/bdm/stat/loggers.cpp</includedby> |
---|
9 | <includedby refid="merg__pred_8cpp" local="no">work/git/mixpp/mpdm/merg_pred.cpp</includedby> |
---|
10 | <includedby refid="pmsm__mix_8cpp" local="no">work/git/mixpp/pmsm/pmsm_mix.cpp</includedby> |
---|
11 | <includedby refid="pmsm__sim2_8cpp" local="no">work/git/mixpp/pmsm/pmsm_sim2.cpp</includedby> |
---|
12 | <includedby refid="sim__var_8cpp" local="no">work/git/mixpp/pmsm/sim_var.cpp</includedby> |
---|
13 | <includedby refid="sim__var__arx_8cpp" local="no">work/git/mixpp/pmsm/sim_var_arx.cpp</includedby> |
---|
14 | <includedby refid="loggers__test_8cpp" local="no">work/git/mixpp/tests/loggers_test.cpp</includedby> |
---|
15 | <incdepgraph> |
---|
16 | <node id="432"> |
---|
17 | <label>work/git/mixpp/bdm/stat/loggers.h</label> |
---|
18 | <link refid="loggers.h"/> |
---|
19 | <childnode refid="433" relation="include"> |
---|
20 | </childnode> |
---|
21 | <childnode refid="434" relation="include"> |
---|
22 | </childnode> |
---|
23 | <childnode refid="435" relation="include"> |
---|
24 | </childnode> |
---|
25 | </node> |
---|
26 | <node id="434"> |
---|
27 | <label>libBM.h</label> |
---|
28 | <link refid="libBM_8h"/> |
---|
29 | <childnode refid="433" relation="include"> |
---|
30 | </childnode> |
---|
31 | </node> |
---|
32 | <node id="435"> |
---|
33 | <label>../itpp_ext.h</label> |
---|
34 | <link refid="itpp__ext_8h-source"/> |
---|
35 | <childnode refid="433" relation="include"> |
---|
36 | </childnode> |
---|
37 | </node> |
---|
38 | <node id="433"> |
---|
39 | <label>itpp/itbase.h</label> |
---|
40 | </node> |
---|
41 | </incdepgraph> |
---|
42 | <invincdepgraph> |
---|
43 | <node id="436"> |
---|
44 | <label>work/git/mixpp/bdm/stat/loggers.h</label> |
---|
45 | <link refid="loggers.h"/> |
---|
46 | <childnode refid="437" relation="include"> |
---|
47 | </childnode> |
---|
48 | <childnode refid="438" relation="include"> |
---|
49 | </childnode> |
---|
50 | <childnode refid="439" relation="include"> |
---|
51 | </childnode> |
---|
52 | </node> |
---|
53 | <node id="439"> |
---|
54 | <label>work/git/mixpp/pmsm/sim_var_arx.cpp</label> |
---|
55 | <link refid="sim__var__arx_8cpp"/> |
---|
56 | </node> |
---|
57 | <node id="438"> |
---|
58 | <label>work/git/mixpp/pmsm/sim_var.cpp</label> |
---|
59 | <link refid="sim__var_8cpp"/> |
---|
60 | </node> |
---|
61 | <node id="437"> |
---|
62 | <label>work/git/mixpp/pmsm/pmsm_mix.cpp</label> |
---|
63 | <link refid="pmsm__mix_8cpp"/> |
---|
64 | </node> |
---|
65 | </invincdepgraph> |
---|
66 | <innerclass refid="classlogger" prot="public">logger</innerclass> |
---|
67 | <innerclass refid="classmemlog" prot="public">memlog</innerclass> |
---|
68 | <innerclass refid="classdirfilelog" prot="public">dirfilelog</innerclass> |
---|
69 | <briefdescription> |
---|
70 | <para>Loggers for storing results of experiments. </para> </briefdescription> |
---|
71 | <detaileddescription> |
---|
72 | <para><simplesect kind="author"><para>Vaclav Smidl.</para></simplesect> |
---|
73 | ----------------------------------- BDM++ - C++ library for Bayesian Decision Making under Uncertainty</para><para>Using IT++ for numerical operations ----------------------------------- </para> </detaileddescription> |
---|
74 | <programlisting> |
---|
75 | <codeline lineno="1"></codeline> |
---|
76 | <codeline lineno="13"><highlight class="preprocessor">#ifndef<sp/>LGR_H</highlight></codeline> |
---|
77 | <codeline lineno="14"><highlight class="preprocessor"></highlight><highlight class="preprocessor">#define<sp/>LGR_H</highlight></codeline> |
---|
78 | <codeline lineno="15"><highlight class="preprocessor"></highlight><highlight class="normal"></highlight></codeline> |
---|
79 | <codeline lineno="16"><highlight class="normal"></highlight><highlight class="preprocessor">#include<sp/><itpp/itbase.h></highlight><highlight class="normal"></highlight></codeline> |
---|
80 | <codeline lineno="17"><highlight class="normal"></highlight><highlight class="preprocessor">#include<sp/>"<ref refid="libBM_8h" kindref="compound" tooltip="Bayesian Models (bm) that use Bayes rule to learn from observations.">libBM.h</ref>"</highlight><highlight class="normal"></highlight></codeline> |
---|
81 | <codeline lineno="18"><highlight class="normal"></highlight><highlight class="preprocessor">#include<sp/>"../itpp_ext.h"</highlight><highlight class="normal"></highlight></codeline> |
---|
82 | <codeline lineno="19"><highlight class="normal"></highlight></codeline> |
---|
83 | <codeline lineno="20"><highlight class="normal"></highlight><highlight class="keyword">using<sp/>namespace<sp/></highlight><highlight class="normal">itpp;</highlight></codeline> |
---|
84 | <codeline lineno="21"><highlight class="normal"></highlight><highlight class="keyword">using</highlight><highlight class="normal"><sp/>std::string;</highlight></codeline> |
---|
85 | <codeline lineno="22"><highlight class="normal"></highlight></codeline> |
---|
86 | <codeline lineno="28" refid="classlogger" refkind="compound"><highlight class="keyword">class<sp/></highlight><highlight class="normal"><ref refid="classlogger" kindref="compound" tooltip="Class for storing results (and semi-results) of an experiment.">logger</ref><sp/>{</highlight></codeline> |
---|
87 | <codeline lineno="29"><highlight class="normal"></highlight><highlight class="keyword">protected</highlight><highlight class="normal">:</highlight></codeline> |
---|
88 | <codeline lineno="31" refid="classlogger_183eea0cf4fbca59474d015f751f128a7" refkind="member"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>Array<RV><sp/><ref refid="classlogger_183eea0cf4fbca59474d015f751f128a7" kindref="member" tooltip="RVs of all logged variables.">entries</ref>;</highlight></codeline> |
---|
89 | <codeline lineno="33" refid="classlogger_139cb79e839ca8f8bb9dcbc8c5b9c7786" refkind="member"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>Array<string><sp/><ref refid="classlogger_139cb79e839ca8f8bb9dcbc8c5b9c7786" kindref="member" tooltip="Names of logged quantities, e.g. names of algorithm variants.">names</ref>;</highlight></codeline> |
---|
90 | <codeline lineno="34"><highlight class="normal"></highlight><highlight class="keyword">public</highlight><highlight class="normal">:</highlight></codeline> |
---|
91 | <codeline lineno="36" refid="classlogger_14f753a510e00c892b38e95c2284363a6" refkind="member"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="classlogger_14f753a510e00c892b38e95c2284363a6" kindref="member" tooltip="Default constructor.">logger</ref><sp/>(<sp/>)<sp/>:<sp/><ref refid="classlogger_183eea0cf4fbca59474d015f751f128a7" kindref="member" tooltip="RVs of all logged variables.">entries</ref>(0),<ref refid="classlogger_139cb79e839ca8f8bb9dcbc8c5b9c7786" kindref="member" tooltip="Names of logged quantities, e.g. names of algorithm variants.">names</ref><sp/>(<sp/>0<sp/>)<sp/>{}</highlight></codeline> |
---|
92 | <codeline lineno="37"><highlight class="normal"></highlight></codeline> |
---|
93 | <codeline lineno="39" refid="classlogger_1cfb250a559b71e07a1a6aa92f2185c1b" refkind="member"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keyword">virtual</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/></highlight><highlight class="keyword">add</highlight><highlight class="normal"><sp/>(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/><ref refid="classRV" kindref="compound" tooltip="Class representing variables, most often random variables.">RV</ref><sp/>&rv,<sp/></highlight><highlight class="keywordtype">string</highlight><highlight class="normal"><sp/>name=</highlight><highlight class="stringliteral">""</highlight><highlight class="normal"><sp/>)<sp/>{</highlight></codeline> |
---|
94 | <codeline lineno="40"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">id</highlight><highlight class="normal">=<ref refid="classlogger_183eea0cf4fbca59474d015f751f128a7" kindref="member" tooltip="RVs of all logged variables.">entries</ref>.length();</highlight></codeline> |
---|
95 | <codeline lineno="41"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="classlogger_139cb79e839ca8f8bb9dcbc8c5b9c7786" kindref="member" tooltip="Names of logged quantities, e.g. names of algorithm variants.">names</ref>=concat<sp/>(<sp/><ref refid="classlogger_139cb79e839ca8f8bb9dcbc8c5b9c7786" kindref="member" tooltip="Names of logged quantities, e.g. names of algorithm variants.">names</ref>,<sp/>name<sp/>);<sp/></highlight><highlight class="comment">//<sp/>diff</highlight><highlight class="normal"></highlight></codeline> |
---|
96 | <codeline lineno="42"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="classlogger_183eea0cf4fbca59474d015f751f128a7" kindref="member" tooltip="RVs of all logged variables.">entries</ref>.set_length(</highlight><highlight class="keywordtype">id</highlight><highlight class="normal">+1,</highlight><highlight class="keyword">true</highlight><highlight class="normal">);</highlight></codeline> |
---|
97 | <codeline lineno="43"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="classlogger_183eea0cf4fbca59474d015f751f128a7" kindref="member" tooltip="RVs of all logged variables.">entries</ref>(</highlight><highlight class="keywordtype">id</highlight><highlight class="normal">)=<sp/>rv;</highlight></codeline> |
---|
98 | <codeline lineno="44"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>id;<sp/></highlight><highlight class="comment">//<sp/>identifier<sp/>of<sp/>the<sp/>last<sp/>entry</highlight><highlight class="normal"></highlight></codeline> |
---|
99 | <codeline lineno="45"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline> |
---|
100 | <codeline lineno="46"><highlight class="normal"></highlight></codeline> |
---|
101 | <codeline lineno="48"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keyword">virtual</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/><ref refid="classlogger_1efb5a59cb329f58810b09bd9cc270b78" kindref="member" tooltip="log this vector">logit</ref><sp/>(<sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">id</highlight><highlight class="normal">,<sp/>vec<sp/>v<sp/>)<sp/>=0;</highlight></codeline> |
---|
102 | <codeline lineno="49"><highlight class="normal"></highlight></codeline> |
---|
103 | <codeline lineno="51"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keyword">virtual</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/><ref refid="classlogger_1709b3ebefa0da3ed371aa802b06512a2" kindref="member" tooltip="Shifts storage position for another time step.">step</ref>()<sp/>=0;</highlight></codeline> |
---|
104 | <codeline lineno="52"><highlight class="normal"></highlight></codeline> |
---|
105 | <codeline lineno="54" refid="classlogger_151c1aa8a84a14097b51607a187ae3617" refkind="member"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keyword">virtual</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/><ref refid="classlogger_151c1aa8a84a14097b51607a187ae3617" kindref="member" tooltip="Finalize storing information.">finalize</ref>()<sp/>{};</highlight></codeline> |
---|
106 | <codeline lineno="55"><highlight class="normal"></highlight></codeline> |
---|
107 | <codeline lineno="57" refid="classlogger_192c63a0a87392c62b9ed3c00faa9d5df" refkind="member"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keyword">virtual</highlight><highlight class="normal"><sp/><ref refid="classlogger_192c63a0a87392c62b9ed3c00faa9d5df" kindref="member" tooltip="for future use">~logger</ref>()<sp/>{};</highlight></codeline> |
---|
108 | <codeline lineno="58"><highlight class="normal">};</highlight></codeline> |
---|
109 | <codeline lineno="59"><highlight class="normal"></highlight></codeline> |
---|
110 | <codeline lineno="60"><highlight class="normal"></highlight></codeline> |
---|
111 | <codeline lineno="67" refid="classmemlog" refkind="compound"><highlight class="keyword">class<sp/></highlight><highlight class="normal"><ref refid="classmemlog" kindref="compound" tooltip="Logging into matrices in data format in memory.">memlog</ref><sp/>:<sp/></highlight><highlight class="keyword">public</highlight><highlight class="normal"><sp/><ref refid="classlogger" kindref="compound" tooltip="Class for storing results (and semi-results) of an experiment.">logger</ref><sp/>{</highlight></codeline> |
---|
112 | <codeline lineno="68"><highlight class="normal"></highlight></codeline> |
---|
113 | <codeline lineno="69"><highlight class="normal"></highlight><highlight class="keyword">protected</highlight><highlight class="normal">:</highlight></codeline> |
---|
114 | <codeline lineno="71" refid="classmemlog_14195f322897ededdac66c404b848ced3" refkind="member"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/><ref refid="classmemlog_14195f322897ededdac66c404b848ced3" kindref="member" tooltip="Maximum length of vectors stored in memory.">maxlen</ref>;</highlight></codeline> |
---|
115 | <codeline lineno="73" refid="classmemlog_13410b4c002636508c43ddcba8d394520" refkind="member"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/><ref refid="classmemlog_13410b4c002636508c43ddcba8d394520" kindref="member" tooltip="Currect record to be written.">ind</ref>;</highlight></codeline> |
---|
116 | <codeline lineno="75" refid="classmemlog_1f0f5bc7b83539ad102e8f65297852d91" refkind="member"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>Array<mat><sp/><ref refid="classmemlog_1f0f5bc7b83539ad102e8f65297852d91" kindref="member" tooltip="Storage.">vectors</ref>;</highlight></codeline> |
---|
117 | <codeline lineno="77"><highlight class="keyword">public</highlight><highlight class="normal">:</highlight></codeline> |
---|
118 | <codeline lineno="79" refid="classmemlog_1e056e819c5a65d4431bfe7955b1efe97" refkind="member"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="classmemlog_1e056e819c5a65d4431bfe7955b1efe97" kindref="member" tooltip="Default constructor.">memlog</ref><sp/>(<sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>maxlen0<sp/>)<sp/>:<sp/><ref refid="classlogger" kindref="compound" tooltip="Class for storing results (and semi-results) of an experiment.">logger</ref>(),<ref refid="classmemlog_14195f322897ededdac66c404b848ced3" kindref="member" tooltip="Maximum length of vectors stored in memory.">maxlen</ref><sp/>(<sp/>maxlen0<sp/>),<ref refid="classmemlog_13410b4c002636508c43ddcba8d394520" kindref="member" tooltip="Currect record to be written.">ind</ref><sp/>(<sp/>0<sp/>),<ref refid="classmemlog_1f0f5bc7b83539ad102e8f65297852d91" kindref="member" tooltip="Storage.">vectors</ref><sp/>(<sp/>0<sp/>)<sp/>{}</highlight></codeline> |
---|
119 | <codeline lineno="81" refid="classmemlog_1b081ef5acb4816e6b5fcb56c19cc7e47" refkind="member"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/><ref refid="classmemlog_1b081ef5acb4816e6b5fcb56c19cc7e47" kindref="member" tooltip="Initialize storage.">init</ref>()<sp/>{</highlight></codeline> |
---|
120 | <codeline lineno="82"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>i;<sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>n<sp/>=<ref refid="classlogger_183eea0cf4fbca59474d015f751f128a7" kindref="member" tooltip="RVs of all logged variables.">entries</ref>.length();</highlight></codeline> |
---|
121 | <codeline lineno="83"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="classmemlog_1f0f5bc7b83539ad102e8f65297852d91" kindref="member" tooltip="Storage.">vectors</ref>.set_size<sp/>(<sp/>n<sp/>);<sp/></highlight></codeline> |
---|
122 | <codeline lineno="84"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">for</highlight><highlight class="normal"><sp/>(<sp/>i=0;i<n;i++<sp/>)<sp/>{<ref refid="classmemlog_1f0f5bc7b83539ad102e8f65297852d91" kindref="member" tooltip="Storage.">vectors</ref>(i).set_size<sp/>(<ref refid="classmemlog_14195f322897ededdac66c404b848ced3" kindref="member" tooltip="Maximum length of vectors stored in memory.">maxlen</ref>,<ref refid="classlogger_183eea0cf4fbca59474d015f751f128a7" kindref="member" tooltip="RVs of all logged variables.">entries</ref>(i).count()<sp/>);}</highlight></codeline> |
---|
123 | <codeline lineno="85"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>;</highlight></codeline> |
---|
124 | <codeline lineno="86"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline> |
---|
125 | <codeline lineno="87" refid="classmemlog_1c97961eda9cda9f0e63c703cf21e5804" refkind="member"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/><ref refid="classmemlog_1c97961eda9cda9f0e63c703cf21e5804" kindref="member" tooltip="Shifts storage position for another time step.">step</ref>()<sp/>{</highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(<sp/><ref refid="classmemlog_13410b4c002636508c43ddcba8d394520" kindref="member" tooltip="Currect record to be written.">ind</ref><<ref refid="classmemlog_14195f322897ededdac66c404b848ced3" kindref="member" tooltip="Maximum length of vectors stored in memory.">maxlen</ref><sp/>)<sp/><ref refid="classmemlog_13410b4c002636508c43ddcba8d394520" kindref="member" tooltip="Currect record to be written.">ind</ref>++;<sp/></highlight><highlight class="keywordflow">else</highlight><highlight class="normal"><sp/>it_error<sp/>(<sp/></highlight><highlight class="stringliteral">"memlog::ind<sp/>is<sp/>too<sp/>high;"</highlight><highlight class="normal"><sp/>);}</highlight></codeline> |
---|
126 | <codeline lineno="88" refid="classmemlog_18d2feeb826f7249e9104d616b5a67144" refkind="member"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/><ref refid="classmemlog_18d2feeb826f7249e9104d616b5a67144" kindref="member" tooltip="log this vector">logit</ref><sp/>(<sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">id</highlight><highlight class="normal">,<sp/>vec<sp/>v<sp/>)<sp/>{</highlight></codeline> |
---|
127 | <codeline lineno="89"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>it_assert_debug(</highlight><highlight class="keywordtype">id</highlight><highlight class="normal"><<ref refid="classmemlog_1f0f5bc7b83539ad102e8f65297852d91" kindref="member" tooltip="Storage.">vectors</ref>.length(),</highlight><highlight class="stringliteral">"Logger<sp/>was<sp/>not<sp/>initialized,<sp/>run<sp/>init()."</highlight><highlight class="normal">);</highlight></codeline> |
---|
128 | <codeline lineno="90"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="classmemlog_1f0f5bc7b83539ad102e8f65297852d91" kindref="member" tooltip="Storage.">vectors</ref><sp/>(<sp/></highlight><highlight class="keywordtype">id</highlight><highlight class="normal"><sp/>).set_row<sp/>(<sp/><ref refid="classmemlog_13410b4c002636508c43ddcba8d394520" kindref="member" tooltip="Currect record to be written.">ind</ref>,v<sp/>);}</highlight></codeline> |
---|
129 | <codeline lineno="92"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/><ref refid="classmemlog_165571ebbb16577b5211adbb27baf769c" kindref="member" tooltip="Save values into an itfile named after fname.">itsave</ref>(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">char</highlight><highlight class="normal">*<sp/>fname);</highlight></codeline> |
---|
130 | <codeline lineno="93"><highlight class="normal">};</highlight></codeline> |
---|
131 | <codeline lineno="94"><highlight class="normal"></highlight></codeline> |
---|
132 | <codeline lineno="103" refid="classdirfilelog" refkind="compound"><highlight class="keyword">class<sp/></highlight><highlight class="normal"><ref refid="classdirfilelog" kindref="compound" tooltip="Logging into dirfile with buffer in memory.">dirfilelog</ref><sp/>:<sp/></highlight><highlight class="keyword">public</highlight><highlight class="normal"><sp/><ref refid="classmemlog" kindref="compound" tooltip="Logging into matrices in data format in memory.">memlog</ref><sp/>{</highlight></codeline> |
---|
133 | <codeline lineno="104"><highlight class="normal"></highlight></codeline> |
---|
134 | <codeline lineno="105"><highlight class="normal"></highlight><highlight class="keyword">protected</highlight><highlight class="normal">:</highlight></codeline> |
---|
135 | <codeline lineno="107" refid="classdirfilelog_1cba5ff1f74ed22910ed7d63aadf21771" refkind="member"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordtype">string</highlight><highlight class="normal"><sp/><ref refid="classdirfilelog_1cba5ff1f74ed22910ed7d63aadf21771" kindref="member" tooltip="name of the directory">dirname</ref>;</highlight></codeline> |
---|
136 | <codeline lineno="109" refid="classdirfilelog_1854b7e7cc4cb40542b4a3ea06d915772" refkind="member"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>Array<string><sp/><ref refid="classdirfilelog_1854b7e7cc4cb40542b4a3ea06d915772" kindref="member" tooltip="Automatically generated.">scalarnames</ref>;</highlight></codeline> |
---|
137 | <codeline lineno="110"><highlight class="normal"></highlight><highlight class="keyword">public</highlight><highlight class="normal">:</highlight></codeline> |
---|
138 | <codeline lineno="114" refid="classdirfilelog_1802eeb6fc4ebf11d97638fd5dc651c68" refkind="member"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="classdirfilelog_1802eeb6fc4ebf11d97638fd5dc651c68" kindref="member" tooltip="Default constructor.">dirfilelog</ref><sp/>(<sp/>std::string<sp/>dirname0,<sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>maxlen0<sp/>)<sp/>:<sp/><ref refid="classmemlog" kindref="compound" tooltip="Logging into matrices in data format in memory.">memlog</ref><sp/>(<sp/>maxlen0<sp/>),<sp/><ref refid="classdirfilelog_1cba5ff1f74ed22910ed7d63aadf21771" kindref="member" tooltip="name of the directory">dirname</ref><sp/>(<sp/>dirname0<sp/>),<sp/><ref refid="classdirfilelog_1854b7e7cc4cb40542b4a3ea06d915772" kindref="member" tooltip="Automatically generated.">scalarnames</ref><sp/>(<sp/>0<sp/>)<sp/>{}</highlight></codeline> |
---|
139 | <codeline lineno="116"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/><ref refid="classdirfilelog_1afeaebe003110f9db1ac43edf8e53a92" kindref="member" tooltip="Initialize storage.">init</ref>();</highlight></codeline> |
---|
140 | <codeline lineno="117"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/><ref refid="classdirfilelog_1f5fe9483a041591bfe6f3d6393b02aa7" kindref="member" tooltip="Shifts storage position for another time step.">step</ref>();</highlight></codeline> |
---|
141 | <codeline lineno="118"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/><ref refid="classdirfilelog_14d671baf6f88444d7fe25a5b8a80834a" kindref="member" tooltip="Finalize storing information.">finalize</ref>();</highlight></codeline> |
---|
142 | <codeline lineno="122"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/><ref refid="classdirfilelog_1bd95cdb46af194245f88a7b4bf4c66c7" kindref="member" tooltip="Write memory storage to disk.">write_buffers</ref><sp/>(<sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>Len<sp/>);</highlight></codeline> |
---|
143 | <codeline lineno="123"><highlight class="normal">};</highlight></codeline> |
---|
144 | <codeline lineno="124"><highlight class="normal"></highlight></codeline> |
---|
145 | <codeline lineno="125"><highlight class="normal"></highlight></codeline> |
---|
146 | <codeline lineno="126"><highlight class="normal"></highlight><highlight class="preprocessor">#endif<sp/>//<sp/>LGR_H</highlight></codeline> |
---|
147 | </programlisting> |
---|
148 | <location file="/home/smidl/work/git/mixpp/bdm/stat/loggers.h"/> |
---|
149 | </compounddef> |
---|
150 | </doxygen> |
---|