MeshLib Documentation
Loading...
Searching...
No Matches
MR::PythonExport Class Reference

#include <MRPython.h>

Classes

struct  ModuleData
 

Public Types

enum class  Priority { Declaration , Implementation , Count }
 
using PythonRegisterFuncton = std::function<void( pybind11::module_& m )>
 

Public Member Functions

void addFunc (const std::string &moduleName, PythonRegisterFuncton func, Priority priority)
 
void setInitFuncPtr (const std::string &moduleName, PyObject *(*initFncPointer)(void))
 
const std::array< std::vector< PythonRegisterFuncton >, size_t(Priority::Count)> & functions (const std::string &moduleName) const
 
const std::unordered_map< std::string, ModuleData > & modules () const
 

Static Public Member Functions

static MRPYTHON_API PythonExportinstance ()
 

Member Typedef Documentation

◆ PythonRegisterFuncton

using MR::PythonExport::PythonRegisterFuncton = std::function<void( pybind11::module_& m )>

Member Enumeration Documentation

◆ Priority

enum class MR::PythonExport::Priority
strong
Enumerator
Declaration 
Implementation 
Count 

Member Function Documentation

◆ addFunc()

void MR::PythonExport::addFunc ( const std::string & moduleName,
PythonRegisterFuncton func,
Priority priority )
inline

◆ functions()

const std::array< std::vector< PythonRegisterFuncton >, size_t(Priority::Count)> & MR::PythonExport::functions ( const std::string & moduleName) const
inline

◆ instance()

static MRPYTHON_API PythonExport & MR::PythonExport::instance ( )
static

◆ modules()

const std::unordered_map< std::string, ModuleData > & MR::PythonExport::modules ( ) const
inline

◆ setInitFuncPtr()

void MR::PythonExport::setInitFuncPtr ( const std::string & moduleName,
PyObject *(* initFncPointer )(void) )
inline

The documentation for this class was generated from the following file: