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__seq_8hpp_source.html below:

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

35 #ifndef PYTHONPP_SEQ_H 36 #define PYTHONPP_SEQ_H 45 template

<

class

T>

class

CSequnceHelper;

78  operator const T

&(void)

const 138  return

PySequence_Length (

Get

());

165  return

(*

this

= *rhs);

181  return

PySequence_Length (

Get

());

197

PyObject* obj = PySequence_GetItem (

Get

(),

i

);

207  if

(PySequence_SetItem (

Get

(),

i

, obj) == -1)

209  throw CSystemError

(

"Cannot set item with a sequence"

);

247  if

(

size

() != required_size )

249  throw CIndexError

(

"Unexpected CSequnceHelper<T> length."

);

256  if

(n < min_size || n > max_size)

258  throw CIndexError

(

"Unexpected CSequnceHelper<T> length."

);

265  return

PySequence_Check (obj) == 1;

344  if

(

this

!= &other ) {

375  if

(*

seq

!= *other.

seq

) {

376  throw CSystemError

(

"CSequnceHelper<T>::iterator comparison error"

);

457  if

(

this

!= &other ) {

518  if

(*

seq

!= *other.

seq

) {

519  throw CRuntimeError

(

"CSequnceHelper<T>::const_iterator::- error"

);

601  for

(

size_t i

= 0;

i

<

size

; ++

i

) {

602  if

( PyTuple_SetItem (

Get

(),

i

, Py_None) == -1 ) {

614  if

(

this

!= &obj ) {

624  if

(

Get

() != obj ) {

642  if

( PyTuple_SetItem (

Get

(),

offset

, obj) == -1 ) {

650

PyObject* obj = PyTuple_GetItem(

Get

(),

offset

);

660  if

(PyTuple_SetItem (

Get

(),

offset

, obj) == -1 ) {

668  return

PyTuple_GetItem(

Get

(),

offset

);

677  return

PyTuple_Size(

Get

());

683  return

PyTuple_CheckExact(obj);

687  return

PyTuple_Check (obj);

722  for

(

size_t i

= 0;

i

<

size

; ++

i

) {

723  if

( PyList_SetItem (

Get

(),

i

, Py_None) != 0 ) {

734  if

(

this

!= &obj ) {

744  if

(

Get

() != obj ) {

761  if

( PyList_SetItem (

Get

(),

offset

, obj) == -1 ) {

769

PyObject* obj = PyList_GetItem(

Get

(),

offset

);

779  if

(PyList_SetItem (

Get

(),

offset

, obj) != 0) {

796  if

(PyList_SetSlice (

Get

(),

i

, j, obj) != 0) {

808  if

(PyList_Append (

Get

(), obj) == -1) {

814  if

(PyList_Insert (

Get

(),

i

, obj) == -1) {

820  if

(PyList_Sort(

Get

()) == -1) {

826  if

(PyList_Reverse(

Get

()) == -1) {

841  return

PyList_Size(

Get

());

847  return

PyList_CheckExact (obj);

851  return

PyList_Check (obj);

855 #if PY_VERSION_HEX >= 0x02040000 861  static bool

HasSameType(PyObject* obj)

863  return

PyAnySet_Check(obj);

865  static bool

HasExactSameType(PyObject* obj)

867  return

PyAnySet_Check(obj);

872 class

CFrozenSet :

public CObject 876  static bool

HasSameType(PyObject* obj)

878  return

PyAnySet_Check(obj);

880  static bool

HasExactSameType(PyObject* obj)

882  return

PyFrozenSet_CheckExact(obj);

CList GetSlice(int i, int j) const

void Insert(int i, const CObject &obj)

CList & operator=(const CObject &obj)

CObject GetItem(int offset)

void SetItem(int offset, const CObject &obj)

CList(PyObject *obj, EOwnership ownership=eAcquireOwnership)

void Append(const CObject &obj)

CList(size_t size=0)

Create a CTuple of size "size" and initialize it with python None.

static bool HasExactSameType(PyObject *obj)

PyObject * GetItemFast(int offset)

CList(const CObject &obj)

static bool HasSameType(PyObject *obj)

void SetSlice(int i, int j, const CObject &obj)

void Append(PyObject *obj)

void SetItemFast(int offset, PyObject *obj)

size_type size(void) const

CObject(void)

* Generic operations on objects *‍/

void Set(PyObject *obj, EOwnership ownership)

Not exception-safe this time.

PyObject * Get(void) const

const T operator*(void) const

const_iterator(const const_iterator &other)

const_iterator & operator=(const const_iterator &other)

const_iterator operator-(int n)

const_iterator & operator--()

bool operator!=(const const_iterator &other) const

bool leq(const const_iterator &other) const

bool geq(const const_iterator &other) const

bool gtr(const const_iterator &other) const

const_iterator & operator+=(int n)

const_iterator & operator++(void)

bool operator==(const const_iterator &other) const

const T operator[](int i) const

const CSequnceHelper< T > * seq

const_iterator(const CSequnceHelper< T > *s, int where)

const_iterator operator+(int n) const

bool lss(const const_iterator &other) const

const_iterator & operator-=(int n)

int operator-(const const_iterator &other) const

bool neq(const iterator &other) const

iterator(CSequnceHelper< T > *s, int where)

iterator & operator=(const iterator &other)

iterator & operator--(void)

CSequnceHelper< T > * seq

CSequnceProxy< T > operator[](int i)

iterator & operator-=(int n)

bool eql(const iterator &other) const

iterator & operator++(void)

CSequnceProxy< T > operator*(void)

bool lss(const iterator &other) const

iterator(const iterator &other)

int operator-(const iterator &other) const

iterator & operator+=(int n)

iterator operator+(int n) const

bool geq(const iterator &other) const

bool gtr(const iterator &other) const

iterator operator-(int n) const

bool leq(const iterator &other) const

const T operator[](int index) const

CSequnceProxy< T > * pointer

CSequnceProxy< T > reference

void VerifyLength(size_type required_size) const

virtual void SetItem(int i, const T &obj)

CSequnceHelper & operator=(const CObject &rhs)

CSequnceHelper(PyObject *obj, EOwnership ownership=eAcquireOwnership)

???

virtual size_type size() const

size_type GetLength(void) const

CSequnceHelper< T > Repeat(int count) const

const_iterator begin(void) const

virtual ~CSequnceHelper(void)

CSequnceProxy< T > front(void)

CSequnceProxy< T > back(void)

CSequnceHelper(const CObject &obj)

static bool HasSameType(PyObject *obj)

void VerifyLength(size_type min_size, size_type max_size) const

CSequnceHelper< T > Concat(const CSequnceHelper< T > &other) const

const T front(void) const

CSequnceProxy< T > & operator=(const T &obj)

CSequnceProxy(CSequnceHelper< T > &seq, int j)

CSequnceProxy(const CSequnceProxy< T > &range)

CSequnceProxy< T > & operator=(const CSequnceProxy< T > &rhs)

CSequnceProxy(CObject &obj)

PyObject * GetItemFast(int offset) const

void SetItem(int offset, const CObject &obj)

void SetItemFast(int offset, PyObject *obj)

size_type size(void) const

CTuple & operator=(const CObject &obj)

CTuple(PyObject *obj, EOwnership ownership=eAcquireOwnership)

CTuple GetSlice(int i, int j) const

static bool HasSameType(PyObject *obj)

CTuple(const CTuple &obj)

CTuple(const CObject &obj)

CObject GetItem(int offset) const

CTuple(size_t size=0)

Create a CTuple of size "size" and initialize it with python None.

static bool HasExactSameType(PyObject *obj)

#define END_NCBI_SCOPE

End previously defined NCBI scope.

#define BEGIN_NCBI_SCOPE

Define ncbi namespace.

PyObject * IncRefCount(PyObject *obj)

CSequnceHelper< CObject > CSequence


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