Peano
Loading...
Searching...
No Matches
DataSet.h
Go to the documentation of this file.
1#pragma once
2
5
6
7#include <string>
8#include <vector>
9#include <map>
10
11#include "PatchData.h"
12
13#include "tarch/logging/Log.h"
14
15
16#include "Variable.h"
17
18
19namespace convert {
20 namespace input {
21 class PeanoTextPatchFileReader;
22 class PeanoTextMetaFileReader;
23 }
24}
25
26
27namespace convert {
28 namespace data {
29 class DataSet;
30 }
31}
32
33
38class convert::data::DataSet {
39 public:
40 DataSet();
41
42 void free();
43
48 void merge(const DataSet& other);
49
54 std::vector<PatchData> getData( const Variable& selector ) const;
55
59 std::vector<Variable> getVariables() const;
60 bool hasVariable( const std::string& name ) const;
61 Variable getVariable( const std::string& name ) const;
62
67 void add( Variable variable, const std::vector<PatchData>& patchData );
68 private:
70 friend class convert::input::PeanoTextMetaFileReader;
71
73
74 std::map< Variable, std::vector<PatchData> > data;
75};
76
Log Device.
Definition Log.h:516
std::vector< GridControlEvent > merge(std::vector< GridControlEvent > events, const double Tolerance=0.1)
Merge set of refinement/coarsening commands.