ppap4lmp  0.7.2
pro_value_array.h
Go to the documentation of this file.
1 
9 #ifndef PRO_VALUE_ARRAY_H
10 #define PRO_VALUE_ARRAY_H
11 
12 #include <processors/processor.h>
13 
26 class ProValueArray : public Processor {
48  protected:
55  virtual void run_impl(
56  const int index) override;
57  public:
68  const ElPtr &elem);
83  const Vec<ElPtr> &elems);
84  virtual ~ProValueArray() = default;
89  virtual void prepare() override;
98  virtual void finish() override;
115  void select(
116  const py::args &args);
128 };
129 
130 #endif
ProValueArray(const ElPtr &elem)
Constructor of ProValueArray class for one Element object.
ShPtr< Element > ElPtr
An alias for a shared pointer of Element class.
Definition: element.h:378
virtual void run_impl(const int index) override
Implementation of analysis using an element of generators.
Map< Str, ArrayXXd > results
const Map< Str, ArrayXXd > & get_results()
Get dictionary from keys for property to two-dimensional arrays of values for the property...
Vec< Map< Str, RowArrayXd > > value_trajectories
ProValueArray makes one or more arrays consisting of values for property in a sequence of Element obj...
virtual void finish() override
Make results from value_trajectories.
std::vector< T > Vec
Vec is an alias for vector (same as list in Python).
Definition: std.h:27
This file has a definition of Processor class, where an analysis process is programmed.
Processor analyzes data contained in one or more Generator objects.
Definition: processor.h:18
virtual void prepare() override
Resize value_trajectories.
void select(const py::args &args)
Specify string keys for properties. To use this object, at least one key must be specified. Note that new keys overwrite old keys.
Vec< Str > selected_keys
std::unordered_map< T, U > Map
Map is an alias for unordered map (same as dict in Python).
Definition: std.h:38