swig::SwigPyIterator Struct Reference

Inheritance diagram for swig::SwigPyIterator:

swig::SwigPyIterator_T< OutIterator > swig::SwigPyIterator_T< OutIterator > swig::SwigPyIteratorClosed_T< OutIterator, ValueType, FromOper > swig::SwigPyIteratorOpen_T< OutIterator, ValueType, FromOper > swig::SwigPyIteratorClosed_T< OutIterator, typename OutIterator::value_type, FromOper > swig::SwigPyIteratorClosed_T< OutIterator, ValueType, FromOper > swig::SwigPyMapIterator_T< OutIterator, FromOper > swig::SwigPyMapIterator_T< OutIterator, FromOper, ValueType > swig::SwigPyMapKeyIterator_T< OutIterator, FromOper > swig::SwigPyMapValueITerator_T< OutIterator, FromOper >

List of all members.

Public Member Functions

virtual ~SwigPyIterator ()
virtual PyObject * value () const =0
virtual SwigPyIteratorincr (size_t n=1)=0
virtual SwigPyIteratordecr (size_t=1)
virtual ptrdiff_t distance (const SwigPyIterator &) const
virtual bool equal (const SwigPyIterator &) const
virtual SwigPyIteratorcopy () const =0
PyObject * next ()
PyObject * __next__ ()
PyObject * previous ()
SwigPyIteratoradvance (ptrdiff_t n)
bool operator== (const SwigPyIterator &x) const
bool operator!= (const SwigPyIterator &x) const
SwigPyIteratoroperator+= (ptrdiff_t n)
SwigPyIteratoroperator-= (ptrdiff_t n)
SwigPyIteratoroperator+ (ptrdiff_t n) const
SwigPyIteratoroperator- (ptrdiff_t n) const
ptrdiff_t operator- (const SwigPyIterator &x) const

Static Public Member Functions

static swig_type_infodescriptor ()

Protected Member Functions

 SwigPyIterator (PyObject *seq)

Private Attributes

SwigPtr_PyObject _seq


Detailed Description

Definition at line 3288 of file SyFi_wrap.cc.


Constructor & Destructor Documentation

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

Definition at line 3293 of file SyFi_wrap.cc.

03293                                   : _seq(seq)
03294     {
03295     }

virtual swig::SwigPyIterator::~SwigPyIterator (  )  [inline, virtual]

Definition at line 3298 of file SyFi_wrap.cc.

03298 {}


Member Function Documentation

PyObject* swig::SwigPyIterator::__next__ (  )  [inline]

Definition at line 3336 of file SyFi_wrap.cc.

References next().

Referenced by _wrap_SwigPyIterator___next__().

03337     {
03338       return next();
03339     }

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

Definition at line 3350 of file SyFi_wrap.cc.

References decr(), and incr().

Referenced by _wrap_SwigPyIterator_advance(), operator+(), operator+=(), operator-(), and operator-=().

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

virtual SwigPyIterator* swig::SwigPyIterator::copy (  )  const [pure virtual]

virtual SwigPyIterator* swig::SwigPyIterator::decr ( size_t  = 1  )  [inline, virtual]

static swig_type_info* swig::SwigPyIterator::descriptor (  )  [inline, static]

Definition at line 3390 of file SyFi_wrap.cc.

References SWIG_TypeQuery.

Referenced by _wrap_ex_int_map_begin(), _wrap_ex_int_map_end(), _wrap_ex_int_map_erase(), _wrap_ex_int_map_erase__SWIG_1(), _wrap_ex_int_map_erase__SWIG_2(), _wrap_ex_int_map_find(), _wrap_ex_int_map_lower_bound(), _wrap_ex_int_map_rbegin(), _wrap_ex_int_map_rend(), _wrap_ex_int_map_upper_bound(), _wrap_exlist_begin(), _wrap_exlist_end(), _wrap_exlist_erase(), _wrap_exlist_erase__SWIG_0(), _wrap_exlist_erase__SWIG_1(), _wrap_exlist_insert(), _wrap_exlist_insert__SWIG_0(), _wrap_exlist_insert__SWIG_1(), _wrap_exlist_rbegin(), _wrap_exlist_rend(), _wrap_exmap_begin(), _wrap_exmap_end(), _wrap_exmap_erase(), _wrap_exmap_erase__SWIG_1(), _wrap_exmap_erase__SWIG_2(), _wrap_exmap_find(), _wrap_exmap_lower_bound(), _wrap_exmap_rbegin(), _wrap_exmap_rend(), _wrap_exmap_upper_bound(), _wrap_exset_begin(), _wrap_exset_end(), _wrap_exset_equal_range(), _wrap_exset_erase(), _wrap_exset_erase__SWIG_1(), _wrap_exset_erase__SWIG_2(), _wrap_exset_find(), _wrap_exset_insert(), _wrap_exset_lower_bound(), _wrap_exset_rbegin(), _wrap_exset_rend(), _wrap_exset_upper_bound(), _wrap_exvector_begin(), _wrap_exvector_end(), _wrap_exvector_erase(), _wrap_exvector_erase__SWIG_0(), _wrap_exvector_erase__SWIG_1(), _wrap_exvector_insert(), _wrap_exvector_insert__SWIG_0(), _wrap_exvector_insert__SWIG_1(), _wrap_exvector_rbegin(), _wrap_exvector_rend(), _wrap_symexlist_begin(), _wrap_symexlist_end(), _wrap_symexlist_erase(), _wrap_symexlist_erase__SWIG_0(), _wrap_symexlist_erase__SWIG_1(), _wrap_symexlist_insert(), _wrap_symexlist_insert__SWIG_0(), _wrap_symexlist_insert__SWIG_1(), _wrap_symexlist_rbegin(), and _wrap_symexlist_rend().

03390                                         {
03391       static int init = 0;
03392       static swig_type_info* desc = 0;
03393       if (!init) {
03394         desc = SWIG_TypeQuery("swig::SwigPyIterator *");
03395         init = 1;
03396       } 
03397       return desc;
03398     }    

virtual ptrdiff_t swig::SwigPyIterator::distance ( const SwigPyIterator  )  const [inline, virtual]

Reimplemented in swig::SwigPyIterator_T< OutIterator >, and swig::SwigPyIterator_T< OutIterator >.

Definition at line 3313 of file SyFi_wrap.cc.

Referenced by _wrap_SwigPyIterator_distance(), and operator-().

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

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

Reimplemented in swig::SwigPyIterator_T< OutIterator >, and swig::SwigPyIterator_T< OutIterator >.

Definition at line 3318 of file SyFi_wrap.cc.

Referenced by operator==().

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

virtual SwigPyIterator* swig::SwigPyIterator::incr ( size_t  n = 1  )  [pure virtual]

PyObject* swig::SwigPyIterator::next (  )  [inline]

Definition at line 3326 of file SyFi_wrap.cc.

References incr(), SWIG_PYTHON_THREAD_BEGIN_BLOCK, SWIG_PYTHON_THREAD_END_BLOCK, and value().

Referenced by __next__(), and _wrap_SwigPyIterator_next().

03327     {
03328       SWIG_PYTHON_THREAD_BEGIN_BLOCK; // disable threads       
03329       PyObject *obj = value();
03330       incr();       
03331       SWIG_PYTHON_THREAD_END_BLOCK; // re-enable threads
03332       return obj;     
03333     }

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

Definition at line 3360 of file SyFi_wrap.cc.

References operator==().

03361     {
03362       return ! operator==(x);
03363     }

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

Definition at line 3375 of file SyFi_wrap.cc.

References advance(), and copy().

03376     {
03377       return copy()->advance(n);
03378     }

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

Definition at line 3365 of file SyFi_wrap.cc.

References advance().

03366     {
03367       return *advance(n);
03368     }

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

Definition at line 3385 of file SyFi_wrap.cc.

References distance().

03386     {
03387       return x.distance(*this);
03388     }

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

Definition at line 3380 of file SyFi_wrap.cc.

References advance(), and copy().

03381     {
03382       return copy()->advance(-n);
03383     }

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

Definition at line 3370 of file SyFi_wrap.cc.

References advance().

03371     {
03372       return *advance(-n);
03373     }

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

Definition at line 3355 of file SyFi_wrap.cc.

References equal().

Referenced by operator!=().

03356     {
03357       return equal(x);
03358     }

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

Definition at line 3341 of file SyFi_wrap.cc.

References decr(), SWIG_PYTHON_THREAD_BEGIN_BLOCK, SWIG_PYTHON_THREAD_END_BLOCK, and value().

Referenced by _wrap_SwigPyIterator_previous().

03342     {
03343       SWIG_PYTHON_THREAD_BEGIN_BLOCK; // disable threads       
03344       decr();
03345       PyObject *obj = value();
03346       SWIG_PYTHON_THREAD_END_BLOCK; // re-enable threads       
03347       return obj;
03348     }

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


Member Data Documentation

Definition at line 3290 of file SyFi_wrap.cc.


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

Generated on Mon Aug 31 16:17:06 2009 for SyFi by  doxygen 1.5.9