#include <loggers.h>
Public Member Functions | |
memlog (int maxlen0, string itf="") | |
Default constructor. | |
void | init () |
Initialize storage. | |
void | step () |
Shifts storage position for another time step. | |
void | logit (int id, const vec &v) |
log this vector | |
void | logit (int id, const double &d) |
log this double | |
void | itsave (const char *fname) |
Save values into an itfile named after fname . | |
void | finalize () |
Finalize storing information. | |
virtual int | add (const RV &rv, string prefix="") |
virtual string | ToString () |
This method returns a basic info about the current instance. | |
virtual void | from_setting (const Setting &root) |
This method arrange instance properties according the data stored in the Setting structure. | |
virtual void | to_setting (Setting &root) |
This method save all the instance properties into the Setting structure. | |
Protected Attributes | |
int | maxlen |
Maximum length of vectors stored in memory. | |
int | ind |
Currect record to be written. | |
Array< mat > | vectors |
Storage. | |
string | itfilename |
name of it file to save results | |
Array< RV > | entries |
RVs of all logged variables. | |
Array< string > | names |
Names of logged quantities, e.g. names of algorithm variants. |
More?...
virtual int bdm::logger::add | ( | const RV & | rv, | |
string | prefix = "" | |||
) | [inline, virtual, inherited] |
returns an identifier which will be later needed for calling the logit()
function For empty RV it returns -1, this entry will be ignored by logit()
.
References bdm::RV::_dsize(), bdm::logger::entries, itpp::Array< T >::length(), bdm::logger::names, and itpp::Array< T >::set_length().
Referenced by pmsmCRBMz::log_add(), pmsmCRB::log_add(), pmsmDS::log_add(), bdm::ArxDS::log_add(), bdm::BM::log_add(), and bdm::DS::log_add().