ppap4lmp  0.7.2
py_pro_value_array.cpp
Go to the documentation of this file.
1 
8 #include "py_pro_value_array.h"
9 
10 void pybind::py_pro_value_array(py::module &m)
11 {
12  py::class_<ProValueArray,PyProcessor<ProValueArray>,Processor,ShPtr<ProValueArray>>(m, "ProValueArray")
13  .def(py::init<const ElPtr &>())
14  .def(py::init<const Vec<ElPtr> &>())
15  .def("select", &ProValueArray::select)
16  .def("get_results", &ProValueArray::get_results);
17 }
This file is for binding ProValueArray class to Python.
void py_pro_value_array(py::module &m)
Bind ProValueArray class to Python.
const Map< Str, ArrayXXd > & get_results()
Get dictionary from keys for property to two-dimensional arrays of values for the property...
std::vector< T > Vec
Vec is an alias for vector (same as list in Python).
Definition: std.h:27
Processor analyzes data contained in one or more Generator objects.
Definition: processor.h:18
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.
std::shared_ptr< T > ShPtr
ShPtr is an alias for shared pointer.
Definition: std.h:16