root/doc/latex/classdirfilelog.tex @ 102

Revision 99, 4.7 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 
38virtual int {\bf add} ({\bf RV} rv, string name=\char`\"{}\char`\"{})\label{classlogger_3d6c6ab580b36619c4010e3ebec55378}
39
40\begin{CompactList}\small\item\em returns an identifier which will be later needed for calling the log() function \item\end{CompactList}\end{CompactItemize}
41\subsection*{Protected Attributes}
42\begin{CompactItemize}
43\item 
44string {\bf dirname}\label{classdirfilelog_cba5ff1f74ed22910ed7d63aadf21771}
45
46\begin{CompactList}\small\item\em name of the directory \item\end{CompactList}\item 
47Array$<$ string $>$ {\bf scalarnames}\label{classdirfilelog_854b7e7cc4cb40542b4a3ea06d915772}
48
49\begin{CompactList}\small\item\em Automatically generated. \item\end{CompactList}\item 
50int {\bf maxlen}\label{classmemlog_4195f322897ededdac66c404b848ced3}
51
52\begin{CompactList}\small\item\em Maximum length of vectors stored in memory. \item\end{CompactList}\item 
53int {\bf ind}\label{classmemlog_3410b4c002636508c43ddcba8d394520}
54
55\begin{CompactList}\small\item\em Currect record to be written. \item\end{CompactList}\item 
56Array$<$ mat $>$ {\bf vectors}\label{classmemlog_f0f5bc7b83539ad102e8f65297852d91}
57
58\begin{CompactList}\small\item\em Storage. \item\end{CompactList}\item 
59Array$<$ {\bf RV} $>$ {\bf entries}\label{classlogger_83eea0cf4fbca59474d015f751f128a7}
60
61\begin{CompactList}\small\item\em RVs of all logged variables. \item\end{CompactList}\item 
62Array$<$ string $>$ {\bf names}\label{classlogger_39cb79e839ca8f8bb9dcbc8c5b9c7786}
63
64\begin{CompactList}\small\item\em Names of logged quantities, e.g. names of algorithm variants. \item\end{CompactList}\end{CompactItemize}
65
66
67\subsection{Detailed Description}
68Logging into dirfile with buffer in memory.
69
70Dirfile is a special format used by the kst program. See documentation of kst for description.
71
72This format is used to store scalars, hence multivariate RVs must be separated.
73
74\subsection{Constructor \& Destructor Documentation}
75\index{dirfilelog@{dirfilelog}!dirfilelog@{dirfilelog}}
76\index{dirfilelog@{dirfilelog}!dirfilelog@{dirfilelog}}
77\subsubsection{\setlength{\rightskip}{0pt plus 5cm}dirfilelog::dirfilelog (std::string {\em dirname0}, \/  int {\em maxlen0})\hspace{0.3cm}{\tt  [inline]}}\label{classdirfilelog_802eeb6fc4ebf11d97638fd5dc651c68}
78
79
80Default constructor.
81
82\begin{Desc}
83\item[Parameters:]
84\begin{description}
85\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}
86\end{Desc}
87
88
89\subsection{Member Function Documentation}
90\index{dirfilelog@{dirfilelog}!write\_\-buffers@{write\_\-buffers}}
91\index{write\_\-buffers@{write\_\-buffers}!dirfilelog@{dirfilelog}}
92\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void dirfilelog::write\_\-buffers (int {\em Len})}\label{classdirfilelog_bd95cdb46af194245f88a7b4bf4c66c7}
93
94
95Write memory storage to disk.
96
97\begin{Desc}
98\item[Parameters:]
99\begin{description}
100\item[{\em Len}]length of buffer to be written, if 0 the file is truncated at 0. \end{description}
101\end{Desc}
102
103
104References dirname, logger::entries, memlog::maxlen, scalarnames, and memlog::vectors.
105
106Referenced by init(), and step().
107
108The documentation for this class was generated from the following files:\begin{CompactItemize}
109\item 
110work/mixpp/bdm/stat/{\bf loggers.h}\item 
111work/mixpp/bdm/stat/loggers.cpp\end{CompactItemize}
Note: See TracBrowser for help on using the browser.