1 | \hypertarget{classbdm_1_1memlog}{ |
---|
2 | \section{bdm::memlog Class Reference} |
---|
3 | \label{classbdm_1_1memlog}\index{bdm::memlog@{bdm::memlog}} |
---|
4 | } |
---|
5 | {\tt \#include $<$loggers.h$>$} |
---|
6 | |
---|
7 | Inheritance diagram for bdm::memlog::\begin{figure}[H] |
---|
8 | \begin{center} |
---|
9 | \leavevmode |
---|
10 | \includegraphics[height=4cm]{classbdm_1_1memlog} |
---|
11 | \end{center} |
---|
12 | \end{figure} |
---|
13 | |
---|
14 | |
---|
15 | \subsection{Detailed Description} |
---|
16 | Logging into matrices in data format in memory. |
---|
17 | |
---|
18 | More?... \subsection*{Public Member Functions} |
---|
19 | \begin{CompactItemize} |
---|
20 | \item |
---|
21 | \hypertarget{classbdm_1_1memlog_e761799874d28bbfc4edc121be8c0a86}{ |
---|
22 | \hyperlink{classbdm_1_1memlog_e761799874d28bbfc4edc121be8c0a86}{memlog} (int maxlen0)} |
---|
23 | \label{classbdm_1_1memlog_e761799874d28bbfc4edc121be8c0a86} |
---|
24 | |
---|
25 | \begin{CompactList}\small\item\em Default constructor. \item\end{CompactList}\item |
---|
26 | \hypertarget{classbdm_1_1memlog_d3a8b007f3540523ff3f9910d9089391}{ |
---|
27 | void \hyperlink{classbdm_1_1memlog_d3a8b007f3540523ff3f9910d9089391}{init} ()} |
---|
28 | \label{classbdm_1_1memlog_d3a8b007f3540523ff3f9910d9089391} |
---|
29 | |
---|
30 | \begin{CompactList}\small\item\em Initialize storage. \item\end{CompactList}\item |
---|
31 | \hypertarget{classbdm_1_1memlog_69964f0472e53098528ee41507bdfc77}{ |
---|
32 | void \hyperlink{classbdm_1_1memlog_69964f0472e53098528ee41507bdfc77}{step} ()} |
---|
33 | \label{classbdm_1_1memlog_69964f0472e53098528ee41507bdfc77} |
---|
34 | |
---|
35 | \begin{CompactList}\small\item\em Shifts storage position for another time step. \item\end{CompactList}\item |
---|
36 | \hypertarget{classbdm_1_1memlog_364e58c5d7058776c2a9cfa7d58dad6d}{ |
---|
37 | void \hyperlink{classbdm_1_1memlog_364e58c5d7058776c2a9cfa7d58dad6d}{logit} (int id, const vec \&v)} |
---|
38 | \label{classbdm_1_1memlog_364e58c5d7058776c2a9cfa7d58dad6d} |
---|
39 | |
---|
40 | \begin{CompactList}\small\item\em log this vector \item\end{CompactList}\item |
---|
41 | \hypertarget{classbdm_1_1memlog_6a74b7a3d889607391594279112aef1f}{ |
---|
42 | void \hyperlink{classbdm_1_1memlog_6a74b7a3d889607391594279112aef1f}{itsave} (const char $\ast$fname)} |
---|
43 | \label{classbdm_1_1memlog_6a74b7a3d889607391594279112aef1f} |
---|
44 | |
---|
45 | \begin{CompactList}\small\item\em Save values into an itfile named after {\tt fname}. \item\end{CompactList}\item |
---|
46 | virtual int \hyperlink{classbdm_1_1logger_cfb4807e20b3d00f3d33e55ada528dc1}{add} (const \hyperlink{classbdm_1_1RV}{RV} \&rv, string name=\char`\"{}\char`\"{}) |
---|
47 | \item |
---|
48 | \hypertarget{classbdm_1_1logger_0e3fc7d13e23a8f71fc7c8a5ea68559d}{ |
---|
49 | virtual void \hyperlink{classbdm_1_1logger_0e3fc7d13e23a8f71fc7c8a5ea68559d}{finalize} ()} |
---|
50 | \label{classbdm_1_1logger_0e3fc7d13e23a8f71fc7c8a5ea68559d} |
---|
51 | |
---|
52 | \begin{CompactList}\small\item\em Finalize storing information. \item\end{CompactList}\end{CompactItemize} |
---|
53 | \subsection*{Protected Attributes} |
---|
54 | \begin{CompactItemize} |
---|
55 | \item |
---|
56 | \hypertarget{classbdm_1_1memlog_a690ebd91430b5973855c9b4c9cf1b1d}{ |
---|
57 | int \hyperlink{classbdm_1_1memlog_a690ebd91430b5973855c9b4c9cf1b1d}{maxlen}} |
---|
58 | \label{classbdm_1_1memlog_a690ebd91430b5973855c9b4c9cf1b1d} |
---|
59 | |
---|
60 | \begin{CompactList}\small\item\em Maximum length of vectors stored in memory. \item\end{CompactList}\item |
---|
61 | \hypertarget{classbdm_1_1memlog_70cec1d3549a82796ad7b6f0d07a4570}{ |
---|
62 | int \hyperlink{classbdm_1_1memlog_70cec1d3549a82796ad7b6f0d07a4570}{ind}} |
---|
63 | \label{classbdm_1_1memlog_70cec1d3549a82796ad7b6f0d07a4570} |
---|
64 | |
---|
65 | \begin{CompactList}\small\item\em Currect record to be written. \item\end{CompactList}\item |
---|
66 | \hypertarget{classbdm_1_1memlog_1fed143162f2de6ef1c1b6557964f24e}{ |
---|
67 | Array$<$ mat $>$ \hyperlink{classbdm_1_1memlog_1fed143162f2de6ef1c1b6557964f24e}{vectors}} |
---|
68 | \label{classbdm_1_1memlog_1fed143162f2de6ef1c1b6557964f24e} |
---|
69 | |
---|
70 | \begin{CompactList}\small\item\em Storage. \item\end{CompactList}\item |
---|
71 | \hypertarget{classbdm_1_1logger_c54566a4554089443a20b2a49ed1a61f}{ |
---|
72 | Array$<$ \hyperlink{classbdm_1_1RV}{RV} $>$ \hyperlink{classbdm_1_1logger_c54566a4554089443a20b2a49ed1a61f}{entries}} |
---|
73 | \label{classbdm_1_1logger_c54566a4554089443a20b2a49ed1a61f} |
---|
74 | |
---|
75 | \begin{CompactList}\small\item\em RVs of all logged variables. \item\end{CompactList}\item |
---|
76 | \hypertarget{classbdm_1_1logger_68ca1f05cf3d414ba0f39211977b8d02}{ |
---|
77 | Array$<$ string $>$ \hyperlink{classbdm_1_1logger_68ca1f05cf3d414ba0f39211977b8d02}{names}} |
---|
78 | \label{classbdm_1_1logger_68ca1f05cf3d414ba0f39211977b8d02} |
---|
79 | |
---|
80 | \begin{CompactList}\small\item\em Names of logged quantities, e.g. names of algorithm variants. \item\end{CompactList}\end{CompactItemize} |
---|
81 | |
---|
82 | |
---|
83 | \subsection{Member Function Documentation} |
---|
84 | \hypertarget{classbdm_1_1logger_cfb4807e20b3d00f3d33e55ada528dc1}{ |
---|
85 | \index{bdm::memlog@{bdm::memlog}!add@{add}} |
---|
86 | \index{add@{add}!bdm::memlog@{bdm::memlog}} |
---|
87 | \subsubsection[add]{\setlength{\rightskip}{0pt plus 5cm}virtual int bdm::logger::add (const {\bf RV} \& {\em rv}, \/ string {\em name} = {\tt \char`\"{}\char`\"{}})\hspace{0.3cm}{\tt \mbox{[}inline, virtual, inherited\mbox{]}}}} |
---|
88 | \label{classbdm_1_1logger_cfb4807e20b3d00f3d33e55ada528dc1} |
---|
89 | |
---|
90 | |
---|
91 | returns an identifier which will be later needed for calling the {\tt \hyperlink{classbdm_1_1logger_397c014b0aaf3581516e2a105d26a5c9}{logit()}} function For empty \hyperlink{classbdm_1_1RV}{RV} it returns -1, this entry will be ignored by {\tt \hyperlink{classbdm_1_1logger_397c014b0aaf3581516e2a105d26a5c9}{logit()}}. |
---|
92 | |
---|
93 | References bdm::logger::entries, and bdm::logger::names. |
---|
94 | |
---|
95 | Referenced by bdm::ArxDS::log\_\-add(), and bdm::DS::log\_\-add(). |
---|
96 | |
---|
97 | The documentation for this class was generated from the following files:\begin{CompactItemize} |
---|
98 | \item |
---|
99 | \hyperlink{loggers_8h}{loggers.h}\item |
---|
100 | loggers.cpp\end{CompactItemize} |
---|