38 std::vector<double> time_pool;
39 std::vector<std::vector<std::vector<vec>>> data_pool;
41 const bool record_time;
65 virtual void initialize(
const shared_ptr<DomainBase>&);
73 [[nodiscard]]
bool if_hdf5()
const;
77 void insert(
const std::vector<vec>&,
unsigned);
79 [[nodiscard]]
const std::vector<std::vector<std::vector<vec>>>&
get_data_pool()
const;
80 [[nodiscard]]
const std::vector<double>&
get_time_pool()
const;
82 virtual void record(
const shared_ptr<DomainBase>&) = 0;
88 void print()
override;
OutputType
Definition: OutputType.h:23
The DomainBase class is a template.
Definition: DomainBase.h:104
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
void set_object_tag(uvec &&)
Definition: Recorder.cpp:47
virtual void record(const shared_ptr< DomainBase > &)=0
Recorder(unsigned, uvec &&, OutputType, unsigned, bool, bool)
ctor
Definition: Recorder.cpp:36
void insert(double)
Definition: Recorder.cpp:61
Recorder(const Recorder &)=delete
virtual void save()
Definition: Recorder.cpp:74
void clear_status()
Definition: Recorder.cpp:69
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:146
A base Tag class.
Definition: Tag.h:38