My Project
|
#include "kernel/mod2.h"
#include "omalloc/omalloc.h"
#include "misc/intvec.h"
#include "Singular/subexpr.h"
#include "Singular/ipid.h"
#include "Singular/blackbox.h"
#include "Singular/lists.h"
#include "Singular/ipshell.h"
#include "Singular/newstruct.h"
#include "resources/feResource.h"
#include "Singular/mod_lib.h"
#include <Python.h>
Go to the source code of this file.
Data Structures | |
class | PythonInterpreter |
This class initializes and finalized the python interpreter. More... | |
class | PythonObject |
This class defines an interface for calling PyObject from Singular. More... | |
struct | PythonObject::sequence_tag |
class | PythonCastStatic< CastType > |
This template class does conversion of Singular objects to python objects on compile-time. More... | |
class | PythonCastDynamic |
This class does conversion of Singular objects to python objects on runtime. More... | |
class | PythonCastStatic< PythonObject::sequence_tag > |
Template specialization for getting handling sequence. More... | |
Macros | |
#define | PYOBJECT_ADD_C_PROC(name) |
Functions | |
void | sync_contexts () |
getting stuff from python to Singular namespace More... | |
PythonObject | get_attrib_name (leftv arg) |
PythonObject | python_eval (const char *arg) |
Evaluate string in python. More... | |
BOOLEAN | python_eval (leftv result, leftv arg) |
Evaluate string in python from Singular. More... | |
BOOLEAN | python_run (leftv result, leftv arg) |
Execute string in python from Singular. More... | |
PythonObject | names_from_module (const char *module_name) |
void | from_module_import_all (const char *module_name) |
BOOLEAN | python_import (leftv result, leftv value) |
import python module and export identifiers in Singular namespace More... | |
void * | pyobject_Init (blackbox *) |
blackbox support - initialization More... | |
char * | pyobject_String (blackbox *, void *ptr) |
blackbox support - convert to string representation More... | |
void * | pyobject_Copy (blackbox *, void *ptr) |
blackbox support - copy element More... | |
BOOLEAN | pyobject_Assign (leftv l, leftv r) |
blackbox support - assign element More... | |
BOOLEAN | pyobject_Op1 (int op, leftv res, leftv head) |
blackbox support - unary operations More... | |
BOOLEAN | pyobject_Op2 (int op, leftv res, leftv arg1, leftv arg2) |
blackbox support - binary operations More... | |
BOOLEAN | pyobject_Op3 (int op, leftv res, leftv arg1, leftv arg2, leftv arg3) |
blackbox support - ternary operations More... | |
BOOLEAN | pyobject_OpM (int op, leftv res, leftv args) |
blackbox support - n-ary operations More... | |
void | pyobject_destroy (blackbox *, void *ptr) |
blackbox support - destruction More... | |
PyObject * | get_current_definition (const char *name) |
blackbox * | pyobject_blackbox (int &tok) |
int SI_MOD_INIT() | pyobject (SModulFunctions *psModulFunctions) |
This file defines the blackbox
operations for the pyobject type.
Definition in file pyobject.cc.
struct PythonObject::sequence_tag |
Definition at line 113 of file pyobject.cc.
#define PYOBJECT_ADD_C_PROC | ( | name | ) |
Definition at line 713 of file pyobject.cc.
void from_module_import_all | ( | const char * | module_name | ) |
Definition at line 470 of file pyobject.cc.
PythonObject get_attrib_name | ( | leftv | arg | ) |
Definition at line 414 of file pyobject.cc.
PyObject * get_current_definition | ( | const char * | name | ) |
Definition at line 654 of file pyobject.cc.
PythonObject names_from_module | ( | const char * | module_name | ) |
Definition at line 459 of file pyobject.cc.
int SI_MOD_INIT() pyobject | ( | SModulFunctions * | psModulFunctions | ) |
Definition at line 717 of file pyobject.cc.
blackbox support - assign element
Definition at line 514 of file pyobject.cc.
blackbox * pyobject_blackbox | ( | int & | tok | ) |
Definition at line 702 of file pyobject.cc.
void * pyobject_Copy | ( | blackbox * | , |
void * | ptr | ||
) |
blackbox support - copy element
Definition at line 507 of file pyobject.cc.
void pyobject_destroy | ( | blackbox * | , |
void * | ptr | ||
) |
blackbox support - destruction
Definition at line 649 of file pyobject.cc.
void * pyobject_Init | ( | blackbox * | ) |
blackbox support - initialization
Definition at line 494 of file pyobject.cc.
blackbox support - unary operations
Definition at line 530 of file pyobject.cc.
blackbox support - binary operations
Definition at line 562 of file pyobject.cc.
blackbox support - ternary operations
Definition at line 588 of file pyobject.cc.
blackbox support - n-ary operations
Definition at line 602 of file pyobject.cc.
char * pyobject_String | ( | blackbox * | , |
void * | ptr | ||
) |
blackbox support - convert to string representation
Definition at line 501 of file pyobject.cc.
PythonObject python_eval | ( | const char * | arg | ) |
Evaluate string in python.
Definition at line 424 of file pyobject.cc.
Evaluate string in python from Singular.
Definition at line 431 of file pyobject.cc.
import python module and export identifiers in Singular namespace
Definition at line 478 of file pyobject.cc.
Execute string in python from Singular.
Definition at line 444 of file pyobject.cc.
void sync_contexts | ( | ) |
getting stuff from python to Singular namespace
Definition at line 662 of file pyobject.cc.