![]() |
This class initializes and finalized the python interpreter. More...
Public Types | |
| typedef int | id_type |
Public Member Functions | |
| ~PythonInterpreter () | |
Static Public Member Functions | |
| static void | init (id_type num) |
| Initialize unique (singleton) python interpreter instance, and set Singular type identifier. More... | |
| static id_type | id () |
| Get Singular type identitfier. More... | |
Private Member Functions | |
| PythonInterpreter () | |
| Singleton: Only init() is allowed to construct an instance. More... | |
| void | start_python () |
| void | init_python () |
| void | set_python_defaults () |
Static Private Member Functions | |
| static PythonInterpreter & | instance () |
| Static initialization - safely takes care of destruction on program termination. More... | |
Private Attributes | |
| id_type | m_id |
| bool | m_owns_python |
This class initializes and finalized the python interpreter.
It also stores the Singular token number, which is assigned to this type on runtime.
Definition at line 45 of file pyobject.cc.
| typedef int PythonInterpreter::id_type |
Definition at line 47 of file pyobject.cc.
|
inline |
Definition at line 49 of file pyobject.cc.
|
inlineprivate |
Singleton: Only init() is allowed to construct an instance.
Definition at line 60 of file pyobject.cc.
|
inlinestatic |
Get Singular type identitfier.
Definition at line 56 of file pyobject.cc.
|
inlinestatic |
Initialize unique (singleton) python interpreter instance, and set Singular type identifier.
Definition at line 53 of file pyobject.cc.
|
inlineprivate |
Definition at line 77 of file pyobject.cc.
|
inlinestaticprivate |
Static initialization - safely takes care of destruction on program termination.
Definition at line 65 of file pyobject.cc.
|
inlineprivate |
Definition at line 83 of file pyobject.cc.
|
inlineprivate |
Definition at line 71 of file pyobject.cc.
|
private |
Definition at line 97 of file pyobject.cc.
|
private |
Definition at line 98 of file pyobject.cc.