Back to index

nordugrid-arc-nox  1.1.0~rc6
Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Attributes
swig::PySwigIterator Struct Reference
Inheritance diagram for swig::PySwigIterator:
Inheritance graph
[legend]
Collaboration diagram for swig::PySwigIterator:
Collaboration graph
[legend]

List of all members.

Public Member Functions

virtual ~PySwigIterator ()
virtual PyObject * value () const =0
virtual PySwigIteratorincr (size_t n=1)=0
virtual PySwigIteratordecr (size_t=1)
virtual ptrdiff_t distance (const PySwigIterator &) const
virtual bool equal (const PySwigIterator &) const
virtual PySwigIteratorcopy () const =0
PyObject * next ()
PyObject * previous ()
PySwigIteratoradvance (ptrdiff_t n)
bool operator== (const PySwigIterator &x) const
bool operator!= (const PySwigIterator &x) const
PySwigIteratoroperator+= (ptrdiff_t n)
PySwigIteratoroperator-= (ptrdiff_t n)
PySwigIteratoroperator+ (ptrdiff_t n) const
PySwigIteratoroperator- (ptrdiff_t n) const
ptrdiff_t operator- (const PySwigIterator &x) const

Static Public Member Functions

static swig_type_infodescriptor ()

Protected Member Functions

 PySwigIterator (PyObject *seq)

Private Attributes

PyObject_ptr _seq

Detailed Description

Definition at line 2878 of file arc_wrap.cpp.


Constructor & Destructor Documentation

swig::PySwigIterator::PySwigIterator ( PyObject *  seq) [inline, protected]

Definition at line 2883 of file arc_wrap.cpp.

                                  : _seq(seq)
    {
    }
virtual swig::PySwigIterator::~PySwigIterator ( ) [inline, virtual]

Definition at line 2888 of file arc_wrap.cpp.

{}

Member Function Documentation

PySwigIterator* swig::PySwigIterator::advance ( ptrdiff_t  n) [inline]

Definition at line 2934 of file arc_wrap.cpp.

    {
      return  (n > 0) ?  incr(n) : decr(-n);
    }

Here is the call graph for this function:

Here is the caller graph for this function:

virtual PySwigIterator* swig::PySwigIterator::copy ( ) const [pure virtual]
virtual PySwigIterator* swig::PySwigIterator::decr ( size_t  = 1) [inline, virtual]
static swig_type_info* swig::PySwigIterator::descriptor ( ) [inline, static]

Definition at line 2974 of file arc_wrap.cpp.

                                        {
      static int init = 0;
      static swig_type_info* desc = 0;
      if (!init) {
       desc = SWIG_TypeQuery("swig::PySwigIterator *");
       init = 1;
      }       
      return desc;
    }    
virtual ptrdiff_t swig::PySwigIterator::distance ( const PySwigIterator ) const [inline, virtual]

Reimplemented in swig::PySwigIterator_T< OutIterator >.

Definition at line 2903 of file arc_wrap.cpp.

    {
      throw std::invalid_argument("operation not supported");
    }

Here is the caller graph for this function:

virtual bool swig::PySwigIterator::equal ( const PySwigIterator ) const [inline, virtual]

Reimplemented in swig::PySwigIterator_T< OutIterator >.

Definition at line 2908 of file arc_wrap.cpp.

    {
      throw std::invalid_argument("operation not supported");
    }

Here is the caller graph for this function:

virtual PySwigIterator* swig::PySwigIterator::incr ( size_t  n = 1) [pure virtual]
PyObject* swig::PySwigIterator::next ( ) [inline]

Definition at line 2916 of file arc_wrap.cpp.

    {
      SWIG_PYTHON_THREAD_BEGIN_BLOCK; // disable threads       
      PyObject *obj = value();
      incr();       
      SWIG_PYTHON_THREAD_END_BLOCK; // re-enable threads
      return obj;     
    }

Here is the call graph for this function:

bool swig::PySwigIterator::operator!= ( const PySwigIterator x) const [inline]

Definition at line 2944 of file arc_wrap.cpp.

    {
      return ! operator==(x);
    }

Here is the call graph for this function:

PySwigIterator* swig::PySwigIterator::operator+ ( ptrdiff_t  n) const [inline]

Definition at line 2959 of file arc_wrap.cpp.

    {
      return copy()->advance(n);
    }

Here is the call graph for this function:

PySwigIterator& swig::PySwigIterator::operator+= ( ptrdiff_t  n) [inline]

Definition at line 2949 of file arc_wrap.cpp.

    {
      return *advance(n);
    }

Here is the call graph for this function:

PySwigIterator* swig::PySwigIterator::operator- ( ptrdiff_t  n) const [inline]

Definition at line 2964 of file arc_wrap.cpp.

    {
      return copy()->advance(-n);
    }

Here is the call graph for this function:

ptrdiff_t swig::PySwigIterator::operator- ( const PySwigIterator x) const [inline]

Definition at line 2969 of file arc_wrap.cpp.

    {
      return x.distance(*this);
    }

Here is the call graph for this function:

PySwigIterator& swig::PySwigIterator::operator-= ( ptrdiff_t  n) [inline]

Definition at line 2954 of file arc_wrap.cpp.

    {
      return *advance(-n);
    }

Here is the call graph for this function:

bool swig::PySwigIterator::operator== ( const PySwigIterator x) const [inline]

Definition at line 2939 of file arc_wrap.cpp.

    {
      return equal(x);
    }

Here is the call graph for this function:

Here is the caller graph for this function:

PyObject* swig::PySwigIterator::previous ( ) [inline]

Definition at line 2925 of file arc_wrap.cpp.

    {
      SWIG_PYTHON_THREAD_BEGIN_BLOCK; // disable threads       
      decr();
      PyObject *obj = value();
      SWIG_PYTHON_THREAD_END_BLOCK; // re-enable threads       
      return obj;
    }

Here is the call graph for this function:

virtual PyObject* swig::PySwigIterator::value ( ) const [pure virtual]

Member Data Documentation

Definition at line 2880 of file arc_wrap.cpp.


The documentation for this struct was generated from the following file: