root/doc/latex/classdirfilelog.tex @ 122

Revision 106, 4.8 kB (checked in by smidl, 16 years ago)

doc

  • Property svn:eol-style set to native
Line 
1\section{dirfilelog Class Reference}
2\label{classdirfilelog}\index{dirfilelog@{dirfilelog}}
3Logging into dirfile with buffer in memory. 
4
5
6{\tt \#include $<$loggers.h$>$}
7
8Inheritance diagram for dirfilelog:\nopagebreak
9\begin{figure}[H]
10\begin{center}
11\leavevmode
12\includegraphics[width=48pt]{classdirfilelog__inherit__graph}
13\end{center}
14\end{figure}
15Collaboration diagram for dirfilelog:\nopagebreak
16\begin{figure}[H]
17\begin{center}
18\leavevmode
19\includegraphics[width=79pt]{classdirfilelog__coll__graph}
20\end{center}
21\end{figure}
22\subsection*{Public Member Functions}
23\begin{CompactItemize}
24\item 
25{\bf dirfilelog} (std::string dirname0, int maxlen0)
26\begin{CompactList}\small\item\em Default constructor. \item\end{CompactList}\item 
27void {\bf init} ()\label{classdirfilelog_afeaebe003110f9db1ac43edf8e53a92}
28
29\begin{CompactList}\small\item\em Initialize storage. \item\end{CompactList}\item 
30void {\bf step} (bool final=false)\label{classdirfilelog_887f2bb97e8c92ca42eea1fbac34eb51}
31
32\begin{CompactList}\small\item\em consider this record to be complete \item\end{CompactList}\item 
33void {\bf write\_\-buffers} (int Len)
34\begin{CompactList}\small\item\em Write memory storage to disk. \item\end{CompactList}\item 
35void {\bf logit} (int id, vec v)\label{classmemlog_8d2feeb826f7249e9104d616b5a67144}
36
37\begin{CompactList}\small\item\em log this vector \item\end{CompactList}\item 
38void \textbf{itsave} (const char $\ast$fname)\label{classmemlog_65571ebbb16577b5211adbb27baf769c}
39
40\item 
41virtual int {\bf add} ({\bf RV} rv, string name=\char`\"{}\char`\"{})\label{classlogger_3d6c6ab580b36619c4010e3ebec55378}
42
43\begin{CompactList}\small\item\em returns an identifier which will be later needed for calling the log() function \item\end{CompactList}\end{CompactItemize}
44\subsection*{Protected Attributes}
45\begin{CompactItemize}
46\item 
47string {\bf dirname}\label{classdirfilelog_cba5ff1f74ed22910ed7d63aadf21771}
48
49\begin{CompactList}\small\item\em name of the directory \item\end{CompactList}\item 
50Array$<$ string $>$ {\bf scalarnames}\label{classdirfilelog_854b7e7cc4cb40542b4a3ea06d915772}
51
52\begin{CompactList}\small\item\em Automatically generated. \item\end{CompactList}\item 
53int {\bf maxlen}\label{classmemlog_4195f322897ededdac66c404b848ced3}
54
55\begin{CompactList}\small\item\em Maximum length of vectors stored in memory. \item\end{CompactList}\item 
56int {\bf ind}\label{classmemlog_3410b4c002636508c43ddcba8d394520}
57
58\begin{CompactList}\small\item\em Currect record to be written. \item\end{CompactList}\item 
59Array$<$ mat $>$ {\bf vectors}\label{classmemlog_f0f5bc7b83539ad102e8f65297852d91}
60
61\begin{CompactList}\small\item\em Storage. \item\end{CompactList}\item 
62Array$<$ {\bf RV} $>$ {\bf entries}\label{classlogger_83eea0cf4fbca59474d015f751f128a7}
63
64\begin{CompactList}\small\item\em RVs of all logged variables. \item\end{CompactList}\item 
65Array$<$ string $>$ {\bf names}\label{classlogger_39cb79e839ca8f8bb9dcbc8c5b9c7786}
66
67\begin{CompactList}\small\item\em Names of logged quantities, e.g. names of algorithm variants. \item\end{CompactList}\end{CompactItemize}
68
69
70\subsection{Detailed Description}
71Logging into dirfile with buffer in memory.
72
73Dirfile is a special format used by the kst program. See documentation of kst for description.
74
75This format is used to store scalars, hence multivariate RVs must be separated.
76
77\subsection{Constructor \& Destructor Documentation}
78\index{dirfilelog@{dirfilelog}!dirfilelog@{dirfilelog}}
79\index{dirfilelog@{dirfilelog}!dirfilelog@{dirfilelog}}
80\subsubsection{\setlength{\rightskip}{0pt plus 5cm}dirfilelog::dirfilelog (std::string {\em dirname0}, \/  int {\em maxlen0})\hspace{0.3cm}{\tt  [inline]}}\label{classdirfilelog_802eeb6fc4ebf11d97638fd5dc651c68}
81
82
83Default constructor.
84
85\begin{Desc}
86\item[Parameters:]
87\begin{description}
88\item[{\em dirname0}]name of the directory in which to store the results \item[{\em maxlen0}]length of the memory buffers, when full the buffers will be dumped to HDD and returned to the beginning. \end{description}
89\end{Desc}
90
91
92\subsection{Member Function Documentation}
93\index{dirfilelog@{dirfilelog}!write\_\-buffers@{write\_\-buffers}}
94\index{write\_\-buffers@{write\_\-buffers}!dirfilelog@{dirfilelog}}
95\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void dirfilelog::write\_\-buffers (int {\em Len})}\label{classdirfilelog_bd95cdb46af194245f88a7b4bf4c66c7}
96
97
98Write memory storage to disk.
99
100\begin{Desc}
101\item[Parameters:]
102\begin{description}
103\item[{\em Len}]length of buffer to be written, if 0 the file is truncated at 0. \end{description}
104\end{Desc}
105
106
107References dirname, logger::entries, memlog::maxlen, scalarnames, and memlog::vectors.
108
109Referenced by init(), and step().
110
111The documentation for this class was generated from the following files:\begin{CompactItemize}
112\item 
113work/mixpp/bdm/stat/{\bf loggers.h}\item 
114work/mixpp/bdm/stat/loggers.cpp\end{CompactItemize}
Note: See TracBrowser for help on using the browser.