AutoPas  3.0.0
Loading...
Searching...
No Matches
Namespaces | Functions
TuningLogEntry.h File Reference
#include <ostream>
#include <sstream>
#include <tuple>
#include "autopas/tuning/Configuration.h"
#include "autopas/tuning/tuningStrategy/LiveInfo.h"
Include dependency graph for TuningLogEntry.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  autopas
 This is the main namespace of AutoPas.
 
namespace  autopas::tuningLogEntry
 Contains some helpers to write and read the tuning log entries.
 

Functions

template<class T >
void autopas::tuningLogEntry::toStringHelper (std::ostream &in, const T &val)
 Writes the given argument into the given ostream with following white space.
 
template<class... Payload>
auto autopas::tuningLogEntry::toString (const Payload &...payload)
 Writes multiple arguments into a string using their << operator.
 
template<class... Payload>
std::tuple< Payload... > autopas::tuningLogEntry::fromString (std::stringstream &stream)
 Reads multiple values from a stringstream using their >> operator.
 
std::string autopas::tuningLogEntry::writeEvidence (long time, size_t iteration, const Configuration &config)
 Writes evidence to a string.
 
std::tuple< long, size_t, Configurationautopas::tuningLogEntry::readEvidence (std::stringstream &str)
 Reads the arguments of an evidence entry in the log file from a stringstream.
 
std::string autopas::tuningLogEntry::writeTune ()
 Writes a tune entry for the log file into a string.
 
bool autopas::tuningLogEntry::readTune (std::stringstream &str)
 Reads the arguments of a tune entry from the stringstream.
 
std::string autopas::tuningLogEntry::writeReset (size_t iteration)
 Writes a reset entry in the log file to a string.
 
size_t autopas::tuningLogEntry::readReset (std::stringstream &str)
 Reads the arguments of a reset entry in the log file from a string.
 
std::string autopas::tuningLogEntry::writeLiveInfo (const LiveInfo &liveInfo)
 Writes a liveInfo entry in the log file to a string.
 
autopas::LiveInfo autopas::tuningLogEntry::readLiveInfo (std::stringstream &str)
 Reads the arguments of a live info entry in the log file from a stringstream.
 

Detailed Description

Author
humig
Date
24.09.2021