CepGen 1.2.5
Central exclusive processes event generator
|
#include <boost/mpl/vector.hpp>
#include <boost/python.hpp>
Go to the source code of this file.
Namespaces | |
namespace | cepgen |
Common namespace for this Monte Carlo generator. | |
Macros | |
#define | EXPOSE_FACTORY(obj, key, name, description) |
Functions | |
template<class T > | |
py::list | std_vector_to_py_list (const std::vector< T > &vec) |
template<class T > | |
std::vector< T > | py_tuple_to_std_vector (const py::tuple &tuple) |
template<class T > | |
std::vector< T > | py_list_to_std_vector (const py::list &list) |
template<class T > | |
py::tuple | std_vector_to_py_tuple (const std::vector< T > &vec) |
cepgen::ParametersList | py_dict_to_plist (const py::dict &) |
py::dict | plist_to_py_dict (const cepgen::ParametersList &) |
template<typename T , typename... Args> | |
py::object | adapt_unique (std::unique_ptr< T >(*fn)(Args...)) |
template<typename T , typename C , typename... Args> | |
py::object | adapt_unique (std::unique_ptr< T >(C::*fn)(Args...)) |
template<typename T > | |
py::object | adapt_reference (T *ptr) |
#define EXPOSE_FACTORY | ( | obj, | |
key, | |||
name, | |||
description | |||
) |
Definition at line 25 of file PythonUtils.h.
py::object adapt_reference | ( | T * | ptr | ) |
Definition at line 94 of file PythonUtils.h.
py::object adapt_unique | ( | std::unique_ptr< T >(*)(Args...) | fn | ) |
Definition at line 80 of file PythonUtils.h.
py::object adapt_unique | ( | std::unique_ptr< T >(C::*)(Args...) | fn | ) |
Definition at line 87 of file PythonUtils.h.
py::dict plist_to_py_dict | ( | const cepgen::ParametersList & | plist | ) |
Definition at line 71 of file PythonUtils.cpp.
cepgen::ParametersList py_dict_to_plist | ( | const py::dict & | dict | ) |
Definition at line 23 of file PythonUtils.cpp.
std::vector< T > py_list_to_std_vector | ( | const py::list & | list | ) |
Definition at line 64 of file PythonUtils.h.
std::vector< T > py_tuple_to_std_vector | ( | const py::tuple & | tuple | ) |
Definition at line 56 of file PythonUtils.h.
py::list std_vector_to_py_list | ( | const std::vector< T > & | vec | ) |
Definition at line 49 of file PythonUtils.h.
py::tuple std_vector_to_py_tuple | ( | const std::vector< T > & | vec | ) |
Definition at line 72 of file PythonUtils.h.