Belle II Software light-2406-ragdoll
|
Singleton class which handles the initialization and finalization of Python and numpy. More...
Public Member Functions | |
PythonInitializerSingleton (const PythonInitializerSingleton &)=delete | |
Forbid copy constructor of PythonInitializerSingleton. | |
Static Public Member Functions | |
static PythonInitializerSingleton & | GetInstance () |
Return static instance of PythonInitializerSingleton. | |
Private Member Functions | |
PythonInitializerSingleton () | |
Constructor of PythonInitializerSingleton. | |
~PythonInitializerSingleton () | |
Destructor of PythonInitializerSingleton. | |
void * | init_numpy () |
Helper function which initializes array system of numpy. | |
Private Attributes | |
bool | m_initialized_python = false |
Member which keeps indicate if this class initialized python. | |
Singleton class which handles the initialization and finalization of Python and numpy.
|
inlineprivate |
Constructor of PythonInitializerSingleton.
Definition at line 99 of file Python.cc.
|
inlineprivate |
Destructor of PythonInitializerSingleton.
Definition at line 117 of file Python.cc.
|
static |
Return static instance of PythonInitializerSingleton.
Definition at line 144 of file Python.cc.
|
inlineprivate |
Helper function which initializes array system of numpy.
Since import_array is a weird macro we need this wrapper function to protect us from the return statement in this macro
Definition at line 134 of file Python.cc.
|
private |