SyTen
expose_class.h File Reference

Helpers for exposing C++ classes and functions to Python via pybind11. More...

#include <type_traits>
#include "python_module/cpp_pyten/inc/pyb.h"
#include "inc/util/persistent.h"
#include "inc/util/memory_size.h"
#include "inc/util/demangle.h"
#include "inc/util/output.h"
+ Include dependency graph for expose_class.h:
+ This graph shows which files directly or indirectly include this file:

Namespaces

 syten
 Syten namespace.
 
 syten::Pyten
 Contains the initialisation functions for Python bindings.
 

Functions

template<typename Exposed , typename... Options, typename... Args>
py::class_< Exposed, Options... > syten::Pyten::expose_syten_class (py::module &module, std::string name, std::string docstring=std::string(""), bool enable_load_in_ctor[[maybe_unused]]=false, bool enable_default_ctor[[maybe_unused]]=true, Args... args)
 Creates a py::class_<Exposed, Options> object and some standard functions to it. More...
 

Detailed Description

Helpers for exposing C++ classes and functions to Python via pybind11.