library of assembled shared sources

http://lass.cocamware.com

lass::python::impl::PySequence Class Reference

PySequence. More...

#include <pysequence.h>

Inheritance diagram for lass::python::impl::PySequence:

Inheritance graph
[legend]
Collaboration diagram for lass::python::impl::PySequence:

Collaboration graph
[legend]

Public Types

typedef void TCppClass

Public Member Functions

template<typename Container >
 PySequence (Container &iCont)
template<typename Container >
 PySequence (const Container &iCont)
virtual ~PySequence ()
virtual std::string doPyStr (void)
virtual std::string doPyRepr (void)
virtual void append (PyObject *i)
virtual void clear ()
virtual void reserve (int iAmount)
virtual TPyObjPtr pop (int i)
template<typename Container >
bool pointsToSameContainer (Container &iO)

Static Public Member Functions

static Py_ssize_t PySequence_Length (PyObject *iPO)
static PyObject * PySequence_Concat (PyObject *a, PyObject *bb)
static PyObject * PySequence_Repeat (PyObject *a, Py_ssize_t n)
static PyObject * PySequence_Item (PyObject *a, Py_ssize_t i)
static PyObject * PySequence_Slice (PyObject *a, Py_ssize_t ilow, Py_ssize_t ihigh)
static int PySequence_AssItem (PyObject *a, Py_ssize_t i, PyObject *v)
static int PySequence_AssSlice (PyObject *a, Py_ssize_t ilow, Py_ssize_t ihigh, PyObject *v)
static int PySequence_Contains (PyObject *a, PyObject *el)
static PyObject * PySequence_InplaceConcat (PyObject *self, PyObject *other)
static PyObject * PySequence_InplaceRepeat (PyObject *self, Py_ssize_t n)

Private Member Functions

 PY_HEADER (PyObjectPlus)
 PySequence ()

Static Private Member Functions

static void initialize ()

Private Attributes

PySequenceImplBasepimpl_

Static Private Attributes

static PySequenceMethods pySequenceMethods
static bool isInitialized = false

Detailed Description

PySequence.

Object for interfacing sequence-like objects with Python

Definition at line 187 of file pysequence.h.


Member Typedef Documentation

typedef void lass::python::PyObjectPlus::TCppClass [inherited]

Definition at line 414 of file pyobject_plus.h.


Constructor & Destructor Documentation

template<typename Container >
lass::python::impl::PySequence::PySequence ( Container &  iCont  )  [inline]

Definition at line 194 of file pysequence.h.

References lass::python::impl::fixObjectType().

template<typename Container >
lass::python::impl::PySequence::PySequence ( const Container &  iCont  )  [inline]

Definition at line 200 of file pysequence.h.

References lass::python::impl::fixObjectType().

lass::python::impl::PySequence::~PySequence (  )  [virtual]

Definition at line 91 of file pysequence.cpp.

lass::python::impl::PySequence::PySequence (  )  [private]


Member Function Documentation

lass::python::impl::PySequence::PY_HEADER ( PyObjectPlus   )  [private]

virtual std::string lass::python::impl::PySequence::doPyStr ( void   )  [inline, virtual]

Reimplemented from lass::python::PyObjectPlus.

Definition at line 208 of file pysequence.h.

virtual std::string lass::python::impl::PySequence::doPyRepr ( void   )  [inline, virtual]

Reimplemented from lass::python::PyObjectPlus.

Definition at line 209 of file pysequence.h.

virtual void lass::python::impl::PySequence::append ( PyObject *  i  )  [inline, virtual]

Definition at line 210 of file pysequence.h.

virtual void lass::python::impl::PySequence::clear (  )  [inline, virtual]

Definition at line 211 of file pysequence.h.

virtual void lass::python::impl::PySequence::reserve ( int  iAmount  )  [inline, virtual]

Definition at line 212 of file pysequence.h.

virtual TPyObjPtr lass::python::impl::PySequence::pop ( int  i  )  [inline, virtual]

Definition at line 213 of file pysequence.h.

Py_ssize_t lass::python::impl::PySequence::PySequence_Length ( PyObject *  iPO  )  [static]

PyObject * lass::python::impl::PySequence::PySequence_Concat ( PyObject *  a,
PyObject *  bb 
) [static]

PyObject * lass::python::impl::PySequence::PySequence_Repeat ( PyObject *  a,
Py_ssize_t  n 
) [static]

PyObject * lass::python::impl::PySequence::PySequence_Item ( PyObject *  a,
Py_ssize_t  i 
) [static]

PyObject * lass::python::impl::PySequence::PySequence_Slice ( PyObject *  a,
Py_ssize_t  ilow,
Py_ssize_t  ihigh 
) [static]

int lass::python::impl::PySequence::PySequence_AssItem ( PyObject *  a,
Py_ssize_t  i,
PyObject *  v 
) [static]

int lass::python::impl::PySequence::PySequence_AssSlice ( PyObject *  a,
Py_ssize_t  ilow,
Py_ssize_t  ihigh,
PyObject *  v 
) [static]

int lass::python::impl::PySequence::PySequence_Contains ( PyObject *  a,
PyObject *  el 
) [static]

PyObject * lass::python::impl::PySequence::PySequence_InplaceConcat ( PyObject *  self,
PyObject *  other 
) [static]

PyObject * lass::python::impl::PySequence::PySequence_InplaceRepeat ( PyObject *  self,
Py_ssize_t  n 
) [static]

template<typename Container >
bool lass::python::impl::PySequence::pointsToSameContainer ( Container &  iO  )  [inline]

Definition at line 228 of file pysequence.h.

void lass::python::impl::PySequence::initialize (  )  [static, private]

Definition at line 95 of file pysequence.cpp.

References lass::python::impl::finalizePyType(), isInitialized, and LASS_ENFORCE.


Field Documentation

PySequenceMethods lass::python::impl::PySequence::pySequenceMethods [static, private]

bool lass::python::impl::PySequence::isInitialized = false [static, private]

Definition at line 191 of file pysequence.h.

Referenced by initialize().


The documentation for this class was generated from the following files:

Generated on Mon Nov 10 14:22:15 2008 for Library of Assembled Shared Sources by doxygen 1.5.7.1
SourceForge.net Logo