ppap4lmp  0.7.2
py_pro_data.cpp
Go to the documentation of this file.
1 
8 #include "py_pro_data.h"
9 
10 void pybind::py_pro_data(py::module &m)
11 {
12  py::class_<ProData,PyProcessor<ProData>,Processor,ShPtr<ProData>>(m, "ProData")
13  .def(py::init<const ElPtr &>())
14  .def(py::init<const Vec<ElPtr> &>())
15  .def("select", &ProData::select)
16  .def("get_results", &ProData::get_results);
17 }
This file is for binding ProData class to Python.
void select(const py::args &args)
Specify string keys for properties to be copied.
Definition: pro_data.cpp:80
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
const Vec< Json > & get_results()
Get list of Json objects consisting of all or some properties of Element objects stored in this objec...
Definition: pro_data.cpp:88
void py_pro_data(py::module &m)
Bind ProData class to Python.
Definition: py_pro_data.cpp:10
std::shared_ptr< T > ShPtr
ShPtr is an alias for shared pointer.
Definition: std.h:16