ppap4lmp  0.7.2
py_add_special_bonds.cpp
Go to the documentation of this file.
1 
8 #include "py_add_special_bonds.h"
9 
10 void pybind::py_add_special_bonds(py::module &m)
11 {
12  py::class_<AddSpecialBonds,PyUpdater<AddSpecialBonds>,Adder,Updater,ShPtr<AddSpecialBonds>>(m, "AddSpecialBonds")
13  .def(py::init<const ElPtr &,const Vec<Vec<int>> &>())
14  .def(py::init<const ElPtr &,const Map<int,Vec<Vec<int>>> &>());
15 }
This file is for binding AddSpecialBonds class to Python.
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
Adder adds new properties to a non-empty Element object.
Definition: adder.h:24
std::vector< T > Vec
Vec is an alias for vector (same as list in Python).
Definition: std.h:27
void py_add_special_bonds(py::module &m)
Bind AddSpecialBonds class to Python.
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