preCICE v3.1.1
Loading...
Searching...
No Matches
RecorderAction.cpp
Go to the documentation of this file.
2#include <vector>
3#include "action/Action.hpp"
5
6namespace precice::action {
7
9 Timing timing,
10 const mesh::PtrMesh &mesh)
11 : Action(timing, mesh) {}
12
14{
15 records.push_back(Record{getTiming()});
16}
17
19
21{
22 records.clear();
23}
24
25} // namespace precice::action
Abstract base class for configurable actions on data and/or meshes.
Definition Action.hpp:14
Timing
Defines the time and place of application of the action.
Definition Action.hpp:17
Timing getTiming() const
Returns the timing of the action.
Definition Action.hpp:51
static void reset()
resets the saved records.
virtual void performAction() final override
Records the invocation and appends it to the records.
static std::vector< Record > records
RecorderAction(Timing timing, const mesh::PtrMesh &mesh)
Constructor.
T clear(T... args)
contains actions to modify exchanged data.
Definition Action.hpp:6