A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://www.ncbi.nlm.nih.gov/IEB/ToolBox/CPP_DOC/doxyhtml/pythonpp__object_8hpp_source.html below:

NCBI C++ ToolKit: src/dbapi/lang_bind/python/pythonpp/pythonpp_object.hpp Source File

35 #ifndef PYTHONPP_OBJECT_H 36 #define PYTHONPP_OBJECT_H 46 #if PY_VERSION_HEX >= 0x02050000 146  if

(

Get

() != obj) {

154  operator

PyObject* (void)

const 158

PyObject*

Get

(

void

)

const 193

PyObject* 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  return

PyObject_HasAttrString (

Get

(),

const_cast<char

*

>

(name.c_str())) != 0;

220

PyObject* 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  return

PyObject_IsTrue(

result

);

279  return

PyObject_IsTrue(

result

);

286  return

PyObject_IsTrue(

result

);

293  return

PyObject_IsTrue(

result

);

300  return

PyObject_IsTrue(

result

);

307  return

PyObject_IsTrue(

result

);

313  return

PyNumber_Check (

Get

()) != 0;

317  return

PySequence_Check (

Get

()) != 0;

321  return

PyObject_IsTrue (

Get

()) != 0;

368  return

obj == Py_None;

374  return

obj == Py_None;

419  if

(

Get

() != obj ) {

428  return

PyType_Check (obj);

432  return

PyType_CheckExact (obj);

439  return l

.Get() ==

r

.Get();

446

PyObject* tmp_obj = PyNumber_Positive(

a

.Get());

454

PyObject* tmp_obj = PyNumber_Negative(

a

.Get());

463

PyObject* tmp_obj = PyNumber_Absolute(

a

.Get());

471 inline

std::pair<CObject, CObject> coerce(

const CObject

&

a

,

const CObject

&

b

)

477  if

(PyNumber_Coerce(&p1, &p2) == -1) {

478  throw

CArithmeticError(

"PyNumber_Coerce"

);

486

PyObject* tmp_obj = PyNumber_Add(

a

.Get(),

b

.Get());

495

PyObject* tmp_obj = PyNumber_Subtract(

a

.Get(),

b

.Get());

504

PyObject* tmp_obj = PyNumber_Multiply(

a

.Get(),

b

.Get());

513

PyObject* tmp_obj = PyNumber_TrueDivide(

a

.Get(),

b

.Get());

522

PyObject* tmp_obj = PyNumber_Remainder(

a

.Get(),

b

.Get());

535

PyObject* 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