21 logDebug(
"free()",
"free data set " << p.first.name );
22 for (
auto& pp: p.second) {
30 if ( data.count(selector)==0) {
31 logError(
"createReaders(...)",
"no data set with identifier " << selector.
name );
32 return std::vector<convert::data::PatchData>();
35 return data.at(selector);
41 for (
const auto& p: other.
data) {
42 if ( data.count(p.first)==0 ) {
43 data.insert( std::pair<
Variable, std::vector<PatchData> >(
48 for (
const auto& pp: other.
getData(p.first)) {
49 data[p.first].push_back(pp);
57 std::vector<convert::data::Variable> result;
59 result.push_back(p.first);
67 if (p.first.name==name) {
78 if (p.first.name==name) {
#define logError(methodName, logMacroMessageStream)
Wrapper macro around tarch::tarch::logging::Log to improve logging.
#define logDebug(methodName, logMacroMessageStream)
A dataset is a wrapper around one big map.
std::vector< Variable > getVariables() const
Variable getVariable(const std::string &name) const
static tarch::logging::Log _log
std::map< Variable, std::vector< PatchData > > data
std::vector< PatchData > getData(const Variable &selector) const
bool hasVariable(const std::string &name) const
void add(Variable variable, const std::vector< PatchData > &patchData)
If you add a patch, don't free the patch, i.e.
void merge(const DataSet &other)
This operation does not do a deep copy, i.e.
Represents one variable that is subsequently attached to the patches of a file.