ppap4lmp  0.7.2
filter.h
Go to the documentation of this file.
1 
9 #ifndef FILTER_H
10 #define FILTER_H
11 
12 #include <core/updater.h>
13 
25 class Filter : public Updater {
26  protected:
41  virtual void compute_body(
42  const ElPtr &elem,
43  Json &data) override;
44  public:
45  using Updater::Updater;
46  virtual ~Filter() = default;
47 };
48 
49 #endif
ShPtr< Element > ElPtr
An alias for a shared pointer of Element class.
Definition: element.h:378
Updater is an abstract class to update data held by an Element object.
Definition: updater.h:34
Filter removes elements from array Element::data if the elements fail user-defined criteria...
Definition: filter.h:25
nlohmann::json Json
Json is an alias for nlohmann::json.
Definition: json.h:22
virtual void compute_body(const ElPtr &elem, Json &data) override
Filter elements from array Element::data given as a mutable reference.
Definition: filter.cpp:16
Updater()=default
Constructor of Updater class.
This file has a definition of Updater class, which is one of the cores of this program.