(
Get() != obj) {
154 operatorPyObject* (void)
const 158PyObject*
Get(
void)
const 193PyObject* obj = PyObject_GetAttrString(
Get(),
const_cast<char*
>(name.c_str()));
201 if(PyObject_SetAttrString (
Get(),
const_cast<char*
>(name.c_str()),
value.Get()) == -1) {
207 if(PyObject_DelAttrString (
Get(),
const_cast<char*
>(name.c_str())) == -1) {
213 returnPyObject_HasAttrString (
Get(),
const_cast<char*
>(name.c_str())) != 0;
220PyObject* obj = PyObject_GetItem(
Get(),
key.Get());
222 throw CKeyError(
"Item does not exist");
236 if(PyObject_DelItem (
Get(),
key.Get()) == -1) {
244 long value= PyObject_Hash (
Get());
272 returnPyObject_IsTrue(
result);
279 returnPyObject_IsTrue(
result);
286 returnPyObject_IsTrue(
result);
293 returnPyObject_IsTrue(
result);
300 returnPyObject_IsTrue(
result);
307 returnPyObject_IsTrue(
result);
313 returnPyNumber_Check (
Get()) != 0;
317 returnPySequence_Check (
Get()) != 0;
321 returnPyObject_IsTrue (
Get()) != 0;
368 returnobj == Py_None;
374 returnobj == Py_None;
419 if(
Get() != obj ) {
428 returnPyType_Check (obj);
432 returnPyType_CheckExact (obj);
439 return l.Get() ==
r.Get();
446PyObject* tmp_obj = PyNumber_Positive(
a.Get());
454PyObject* tmp_obj = PyNumber_Negative(
a.Get());
463PyObject* tmp_obj = PyNumber_Absolute(
a.Get());
471 inlinestd::pair<CObject, CObject> coerce(
const CObject&
a,
const CObject&
b)
477 if(PyNumber_Coerce(&p1, &p2) == -1) {
478 throwCArithmeticError(
"PyNumber_Coerce");
486PyObject* tmp_obj = PyNumber_Add(
a.Get(),
b.Get());
495PyObject* tmp_obj = PyNumber_Subtract(
a.Get(),
b.Get());
504PyObject* tmp_obj = PyNumber_Multiply(
a.Get(),
b.Get());
513PyObject* tmp_obj = PyNumber_TrueDivide(
a.Get(),
b.Get());
522PyObject* tmp_obj = PyNumber_Remainder(
a.Get(),
b.Get());
535PyObject* obj = PyObject_Type (
Get());
static bool HasExactSameType(PyObject *obj)
static bool HasSameType(PyObject *obj)
CNone & operator=(const CNone &obj)
CNone(const CObject &obj)
void SetAttr(const std::string &name, const CObject &value)
bool IsObjectType(const CType &t) const
void DelItem(const CObject &key)
CObject(void)
* Generic operations on objects *â/
CType GetType(void) const
void Set(PyObject *obj, EOwnership ownership)
Not exception-safe this time.
CObject(PyObject *obj, EOwnership ownership=eAcquireOwnership)
CObject & operator=(const CObject &obj)
PyTypeObject * GetObjType(void) const
bool operator<(const CObject &obj) const
PyObject * Get(void) const
CObject GetAttr(const std::string &name) const
bool operator>(const CObject &obj) const
bool IsNumeric(void) const
bool operator>=(const CObject &obj) const
CObject(const CObject &obj)
long GetHashValue(void) const
void DelAttr(const std::string &name)
CObject GetItem(const CObject &key) const
bool HasAttr(const std::string &name) const
bool operator!=(const CObject &obj) const
bool operator==(const CObject &obj) const
bool operator<=(const CObject &obj) const
bool IsSequence(void) const
CType(PyObject *obj, EOwnership ownership=eAcquireOwnership)
static bool HasSameType(PyObject *obj)
CType & operator=(const CObject &obj)
static bool HasExactSameType(PyObject *obj)
CType(const CObject &obj)
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
const struct ncbi::grid::netcache::search::fields::KEY key
CObject operator+(const CObject &a)
CObject operator%(const CObject &a, const CObject &b)
PyObject * DecRefCount(PyObject *obj)
CObject operator*(const CObject &a, const CObject &b)
CObject abs(const CObject &a)
PyObject * IncRefCount(PyObject *obj)
bool operator==(const CObject &l, const CExtType &r)
CObject operator-(const CObject &a)
CObject operator/(const CObject &a, const CObject &b)
const GenericPointer< typename T::ValueType > T2 value
double r(size_t dimension_, const Int4 *score_, const double *prob_, double theta_)
static SLJIT_INLINE sljit_ins l(sljit_gpr r, sljit_s32 d, sljit_gpr x, sljit_gpr b)
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4