My Project
|
This class defines an interface for calling PyObject from Singular. More...
Data Structures | |
struct | sequence_tag |
Public Types | |
typedef PyObject * | ptr_type |
Public Member Functions | |
PythonObject () | |
PythonObject (ptr_type ptr) | |
ptr_type | check_context (ptr_type ptr) const |
self | operator() (int op) const |
Unary operations. More... | |
self | operator() (int op, const self &arg) const |
Binary and n-ary operations. More... | |
self | operator() (int op, const self &arg1, const self &arg2) const |
Ternary operations. More... | |
self | operator[] (const self &idx) const |
Get item. More... | |
self | operator[] (long idx) const |
operator const ptr_type () const | |
Get actual PyObject*. More... | |
char * | repr () const |
Get representative as C-style string. More... | |
char * | str () const |
Extract C-style string. More... | |
Py_ssize_t | size () const |
BOOLEAN | assign_to (leftv result) |
void | import_as (const char *name) const |
int | compare (int op, const self &arg) const |
self | attr (const self &arg) const |
self | del_attr (const self &arg) const |
Protected Member Functions | |
self | args2list (const self &args) const |
BOOLEAN | handle_exception () const |
void | append_iter (self iterator) |
int | py_opid (int op) const |
Private Types | |
typedef PythonObject | self |
Private Member Functions | |
BOOLEAN | none_to (leftv result) const |
BOOLEAN | python_to (leftv result) const |
Private Attributes | |
ptr_type | m_ptr |
The actual pointer. More... | |
This class defines an interface for calling PyObject from Singular.
Definition at line 107 of file pyobject.cc.
struct PythonObject::sequence_tag |
Definition at line 113 of file pyobject.cc.
typedef PyObject* PythonObject::ptr_type |
Definition at line 112 of file pyobject.cc.
|
private |
Definition at line 109 of file pyobject.cc.
|
inline |
Definition at line 115 of file pyobject.cc.
|
inline |
Definition at line 116 of file pyobject.cc.
|
inlineprotected |
Definition at line 252 of file pyobject.cc.
Definition at line 224 of file pyobject.cc.
Definition at line 189 of file pyobject.cc.
Definition at line 211 of file pyobject.cc.
Definition at line 120 of file pyobject.cc.
Definition at line 207 of file pyobject.cc.
Definition at line 213 of file pyobject.cc.
|
inlineprotected |
Definition at line 234 of file pyobject.cc.
|
inline |
Definition at line 194 of file pyobject.cc.
|
inline |
Unary operations.
Definition at line 125 of file pyobject.cc.
Binary and n-ary operations.
Definition at line 141 of file pyobject.cc.
Ternary operations.
Definition at line 160 of file pyobject.cc.
|
inline |
Definition at line 173 of file pyobject.cc.
|
inlineprotected |
Definition at line 260 of file pyobject.cc.
Definition at line 282 of file pyobject.cc.
|
inline |
|
inline |
Definition at line 187 of file pyobject.cc.
|
inline |
|
private |
The actual pointer.
Definition at line 291 of file pyobject.cc.