SERiF 0.0.1a
3+1D Stellar Structure and Evolution
|
Declares the function to register polytrope module C++ components with pybind11. More...
#include <pybind11/pybind11.h>
Go to the source code of this file.
Functions | |
void | register_polytrope_bindings (pybind11::module &polytrope_submodule) |
Registers C++ classes and functions from the serif::polytrope namespace to Python. | |
Declares the function to register polytrope module C++ components with pybind11.
This file contains the declaration for register_polytrope_bindings
, which is responsible for creating Python bindings for classes and functions within the serif::polytrope
C++ namespace. These bindings will be accessible in Python under the serif.polytrope
submodule.
Definition in file bindings.h.
void register_polytrope_bindings | ( | pybind11::module & | polytrope_submodule | ) |
Registers C++ classes and functions from the serif::polytrope
namespace to Python.
This function takes a pybind11::module object, representing the serif.polytrope
Python submodule, and adds bindings for various components like PolytropeOperator
, PolySolver
, etc. This allows these C++ components to be instantiated and used directly from Python.
polytrope_submodule | The pybind11 module (typically serif.polytrope ) to which the polytrope C++ bindings will be added. |
Definition at line 14 of file bindings.cpp.