[261] | 1 | \hypertarget{classbdm_1_1logger}{ |
---|
| 2 | \section{bdm::logger Class Reference} |
---|
| 3 | \label{classbdm_1_1logger}\index{bdm::logger@{bdm::logger}} |
---|
| 4 | } |
---|
[264] | 5 | {\tt \#include $<$libBM.h$>$} |
---|
[261] | 6 | |
---|
[271] | 7 | Inheritance diagram for bdm::logger::\begin{figure}[H] |
---|
[261] | 8 | \begin{center} |
---|
| 9 | \leavevmode |
---|
[271] | 10 | \includegraphics[height=4cm]{classbdm_1_1logger} |
---|
[261] | 11 | \end{center} |
---|
| 12 | \end{figure} |
---|
[270] | 13 | |
---|
| 14 | |
---|
| 15 | \subsection{Detailed Description} |
---|
| 16 | Class for storing results (and semi-results) of an experiment. |
---|
| 17 | |
---|
| 18 | This class abstracts logging of results from implementation. This class replaces direct logging of results (e.g. to files or to global variables) by calling methods of a \hyperlink{classbdm_1_1logger}{logger}. Specializations of this abstract class for specific storage method are designed. \subsection*{Public Member Functions} |
---|
[261] | 19 | \begin{CompactItemize} |
---|
| 20 | \item |
---|
| 21 | \hypertarget{classbdm_1_1logger_f9c2fe7db5ddbda0098a4a5bd2c29fbf}{ |
---|
| 22 | \hyperlink{classbdm_1_1logger_f9c2fe7db5ddbda0098a4a5bd2c29fbf}{logger} ()} |
---|
| 23 | \label{classbdm_1_1logger_f9c2fe7db5ddbda0098a4a5bd2c29fbf} |
---|
| 24 | |
---|
| 25 | \begin{CompactList}\small\item\em Default constructor. \item\end{CompactList}\item |
---|
[271] | 26 | virtual int \hyperlink{classbdm_1_1logger_cfb4807e20b3d00f3d33e55ada528dc1}{add} (const \hyperlink{classbdm_1_1RV}{RV} \&rv, string name=\char`\"{}\char`\"{}) |
---|
| 27 | \item |
---|
[261] | 28 | \hypertarget{classbdm_1_1logger_397c014b0aaf3581516e2a105d26a5c9}{ |
---|
| 29 | virtual void \hyperlink{classbdm_1_1logger_397c014b0aaf3581516e2a105d26a5c9}{logit} (int id, const vec \&v)=0} |
---|
| 30 | \label{classbdm_1_1logger_397c014b0aaf3581516e2a105d26a5c9} |
---|
| 31 | |
---|
| 32 | \begin{CompactList}\small\item\em log this vector \item\end{CompactList}\item |
---|
| 33 | \hypertarget{classbdm_1_1logger_4f31c03578a7b9b30d8b1f8c338a37e8}{ |
---|
| 34 | virtual void \hyperlink{classbdm_1_1logger_4f31c03578a7b9b30d8b1f8c338a37e8}{step} ()=0} |
---|
| 35 | \label{classbdm_1_1logger_4f31c03578a7b9b30d8b1f8c338a37e8} |
---|
| 36 | |
---|
| 37 | \begin{CompactList}\small\item\em Shifts storage position for another time step. \item\end{CompactList}\item |
---|
| 38 | \hypertarget{classbdm_1_1logger_0e3fc7d13e23a8f71fc7c8a5ea68559d}{ |
---|
| 39 | virtual void \hyperlink{classbdm_1_1logger_0e3fc7d13e23a8f71fc7c8a5ea68559d}{finalize} ()} |
---|
| 40 | \label{classbdm_1_1logger_0e3fc7d13e23a8f71fc7c8a5ea68559d} |
---|
| 41 | |
---|
| 42 | \begin{CompactList}\small\item\em Finalize storing information. \item\end{CompactList}\item |
---|
| 43 | \hypertarget{classbdm_1_1logger_cd6291a73491f755dc7bc88d022eb2fc}{ |
---|
| 44 | virtual void \hyperlink{classbdm_1_1logger_cd6291a73491f755dc7bc88d022eb2fc}{init} ()} |
---|
| 45 | \label{classbdm_1_1logger_cd6291a73491f755dc7bc88d022eb2fc} |
---|
| 46 | |
---|
[270] | 47 | \begin{CompactList}\small\item\em Initialize the storage. \item\end{CompactList}\end{CompactItemize} |
---|
[261] | 48 | \subsection*{Protected Attributes} |
---|
| 49 | \begin{CompactItemize} |
---|
| 50 | \item |
---|
| 51 | \hypertarget{classbdm_1_1logger_c54566a4554089443a20b2a49ed1a61f}{ |
---|
| 52 | Array$<$ \hyperlink{classbdm_1_1RV}{RV} $>$ \hyperlink{classbdm_1_1logger_c54566a4554089443a20b2a49ed1a61f}{entries}} |
---|
| 53 | \label{classbdm_1_1logger_c54566a4554089443a20b2a49ed1a61f} |
---|
| 54 | |
---|
| 55 | \begin{CompactList}\small\item\em RVs of all logged variables. \item\end{CompactList}\item |
---|
| 56 | \hypertarget{classbdm_1_1logger_68ca1f05cf3d414ba0f39211977b8d02}{ |
---|
| 57 | Array$<$ string $>$ \hyperlink{classbdm_1_1logger_68ca1f05cf3d414ba0f39211977b8d02}{names}} |
---|
| 58 | \label{classbdm_1_1logger_68ca1f05cf3d414ba0f39211977b8d02} |
---|
| 59 | |
---|
| 60 | \begin{CompactList}\small\item\em Names of logged quantities, e.g. names of algorithm variants. \item\end{CompactList}\end{CompactItemize} |
---|
| 61 | |
---|
| 62 | |
---|
[271] | 63 | \subsection{Member Function Documentation} |
---|
| 64 | \hypertarget{classbdm_1_1logger_cfb4807e20b3d00f3d33e55ada528dc1}{ |
---|
| 65 | \index{bdm::logger@{bdm::logger}!add@{add}} |
---|
| 66 | \index{add@{add}!bdm::logger@{bdm::logger}} |
---|
| 67 | \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\mbox{]}}}} |
---|
| 68 | \label{classbdm_1_1logger_cfb4807e20b3d00f3d33e55ada528dc1} |
---|
| 69 | |
---|
| 70 | |
---|
| 71 | 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()}}. |
---|
| 72 | |
---|
| 73 | References entries, and names. |
---|
| 74 | |
---|
| 75 | Referenced by bdm::ArxDS::log\_\-add(), and bdm::DS::log\_\-add(). |
---|
| 76 | |
---|
[261] | 77 | The documentation for this class was generated from the following file:\begin{CompactItemize} |
---|
| 78 | \item |
---|
[264] | 79 | \hyperlink{libBM_8h}{libBM.h}\end{CompactItemize} |
---|