history.h Source File
|
CPP API
|
history.h
Go to the documentation of this file.
const WriteWrapper::Data & get_log() const
Get the data object.
Definition: history.h:106
void log(const T &t)
Logs new records according to the Writer and Loggers.
Definition: history.h:96
void log_impl(const T &t, Logger &logger)
Checks if the given logger should log.
Definition: history.h:122
History()=default
A collection of classes to simplify handling of matrix shapes in meta programming.
Definition: models/abm/analyze_result.h:30
constexpr std::size_t index_of_type_v
The index of Type in the list Types.
Definition: metaprogramming.h:191
constexpr std::tuple_element< I, std::tuple< Index< CategoryTags >... > >::type & get(Index< CategoryTags... > &i) noexcept
Retrieves the Index (by reference) at the Ith position of a MultiIndex.
Definition: index.h:294
Definition: io.h:94
This class writes data retrieved from loggers to memory.
Definition: history.h:35
std::tuple< std::vector< typename Loggers::Type >... > Data
Definition: history.h:36
static void add_record(const typename Logger::Type &t, Data &data)
Adds a new record for a given log result t to data.
Definition: history.h:46
Definition: history.h:154
constexpr bool should_log(const T &)
Always returns true, for any type T.
Definition: history.h:157
LogOnce and LogAlways can be used as a base class to write a logger for History.
Definition: history.h:143
bool should_log(const T &)
For any type T, returns true on the first call only, and false thereafter.
Definition: history.h:148
bool was_logged
Remember if this Logger was logged already.
Definition: history.h:144
Generated by