ppap4lmp  0.7.2
py_sta_beads.cpp
Go to the documentation of this file.
1 
8 #include "py_sta_beads.h"
9 
10 void pybind::py_sta_beads(py::module &m)
11 {
12  py::class_<StaBeads,PyUpdater<StaBeads>,Starter,Updater,ShPtr<StaBeads>>(m, "StaBeads")
13  .def(py::init<const ElPtr &,const Vec<Json> &>())
14  .def(py::init<const ElPtr &,const Map<int,Vec<Json>> &>());
15 }
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
This file is for binding StaBeads class to Python.
void py_sta_beads(py::module &m)
Bind StaBeads class to Python.
std::vector< T > Vec
Vec is an alias for vector (same as list in Python).
Definition: std.h:27
Starter sets some properties to an empty Element object.
Definition: starter.h:24
std::shared_ptr< T > ShPtr
ShPtr is an alias for shared pointer.
Definition: std.h:16
std::unordered_map< T, U > Map
Map is an alias for unordered map (same as dict in Python).
Definition: std.h:38