38 std::vector<double> time_pool;
39 std::vector<std::vector<std::vector<vec>>> data_pool;
41 const bool record_time;
64 virtual void initialize(
const shared_ptr<DomainBase>&);
72 [[nodiscard]]
bool if_hdf5()
const;
76 void insert(
const std::vector<vec>&,
unsigned);
78 [[nodiscard]]
const std::vector<std::vector<std::vector<vec>>>&
get_data_pool()
const;
79 [[nodiscard]]
const std::vector<double>&
get_time_pool()
const;
81 virtual void record(
const shared_ptr<DomainBase>&) = 0;
85 void print()
override;
OutputType
Definition: OutputType.h:21
The DomainBase class is a template.
Definition: DomainBase.h:96
A Recorder class.
Definition: Recorder.h:35
const std::vector< double > & get_time_pool() const
Definition: Recorder.cpp:67
bool if_record_time() const
Definition: Recorder.cpp:57
const OutputType & get_variable_type() const
Definition: Recorder.cpp:53
void set_variable_type(OutputType)
Definition: Recorder.cpp:51
const unsigned interval
Definition: Recorder.h:45
unsigned counter
Definition: Recorder.h:46
virtual void record(const shared_ptr< DomainBase > &)=0
void insert(double)
Definition: Recorder.cpp:61
Recorder(const Recorder &)=delete
virtual void save()
Definition: Recorder.cpp:69
void set_object_tag(const uvec &)
Definition: Recorder.cpp:47
virtual void initialize(const shared_ptr< DomainBase > &)
Definition: Recorder.cpp:45
bool if_perform_record()
Definition: Recorder.cpp:59
const std::vector< std::vector< std::vector< vec > > > & get_data_pool() const
Definition: Recorder.cpp:65
const uvec & get_object_tag() const
Definition: Recorder.cpp:49
Recorder(Recorder &&)=delete
bool if_hdf5() const
Definition: Recorder.cpp:55
Recorder & operator=(const Recorder &)=delete
~Recorder() override=default
Recorder & operator=(Recorder &&)=delete
void print() override
Definition: Recorder.cpp:155
A base Tag class.
Definition: Tag.h:38