SyFi  0.3
swig::SwigPyIterator Struct Reference
Inheritance diagram for swig::SwigPyIterator:
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::SwigPyMapIterator_T< OutIterator, FromOper, ValueType > swig::SwigPyMapIterator_T< OutIterator, FromOper > 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 3581 of file SyFiPYTHON_wrap.cxx.


Constructor & Destructor Documentation

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

Definition at line 3586 of file SyFiPYTHON_wrap.cxx.

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

Definition at line 3591 of file SyFiPYTHON_wrap.cxx.

{}

Member Function Documentation

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

Definition at line 3629 of file SyFiPYTHON_wrap.cxx.

Referenced by _wrap_SwigPyIterator___next__().

    {
      return next();
    }
SwigPyIterator* swig::SwigPyIterator::advance ( ptrdiff_t  n) [inline]

Definition at line 3643 of file SyFiPYTHON_wrap.cxx.

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

    {
      return  (n > 0) ?  incr(n) : decr(-n);
    }
static swig_type_info* swig::SwigPyIterator::descriptor ( ) [inline, static]

Definition at line 3683 of file SyFiPYTHON_wrap.cxx.

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__SWIG_0(), _wrap_exlist_erase__SWIG_1(), _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__SWIG_0(), _wrap_exvector_erase__SWIG_1(), _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__SWIG_0(), _wrap_symexlist_erase__SWIG_1(), _wrap_symexlist_insert__SWIG_0(), _wrap_symexlist_insert__SWIG_1(), _wrap_symexlist_rbegin(), and _wrap_symexlist_rend().

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

Reimplemented in swig::SwigPyIterator_T< OutIterator >.

Definition at line 3606 of file SyFiPYTHON_wrap.cxx.

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

    {
      throw std::invalid_argument("operation not supported");
    }
virtual bool swig::SwigPyIterator::equal ( const SwigPyIterator ) const [inline, virtual]

Reimplemented in swig::SwigPyIterator_T< OutIterator >.

Definition at line 3611 of file SyFiPYTHON_wrap.cxx.

    {
      throw std::invalid_argument("operation not supported");
    }
PyObject* swig::SwigPyIterator::next ( ) [inline]

Definition at line 3619 of file SyFiPYTHON_wrap.cxx.

References SWIG_PYTHON_THREAD_BEGIN_BLOCK, and SWIG_PYTHON_THREAD_END_BLOCK.

Referenced by _wrap_SwigPyIterator_next().

    {
      SWIG_PYTHON_THREAD_BEGIN_BLOCK; // disable threads       
      PyObject *obj = value();
      incr();       
      SWIG_PYTHON_THREAD_END_BLOCK; // re-enable threads
      return obj;     
    }
bool swig::SwigPyIterator::operator!= ( const SwigPyIterator x) const [inline]

Definition at line 3653 of file SyFiPYTHON_wrap.cxx.

    {
      return ! operator==(x);
    }
SwigPyIterator* swig::SwigPyIterator::operator+ ( ptrdiff_t  n) const [inline]

Definition at line 3668 of file SyFiPYTHON_wrap.cxx.

References advance().

    {
      return copy()->advance(n);
    }
SwigPyIterator& swig::SwigPyIterator::operator+= ( ptrdiff_t  n) [inline]

Definition at line 3658 of file SyFiPYTHON_wrap.cxx.

    {
      return *advance(n);
    }
SwigPyIterator* swig::SwigPyIterator::operator- ( ptrdiff_t  n) const [inline]

Definition at line 3673 of file SyFiPYTHON_wrap.cxx.

References advance().

    {
      return copy()->advance(-n);
    }
ptrdiff_t swig::SwigPyIterator::operator- ( const SwigPyIterator x) const [inline]

Definition at line 3678 of file SyFiPYTHON_wrap.cxx.

References distance().

    {
      return x.distance(*this);
    }
SwigPyIterator& swig::SwigPyIterator::operator-= ( ptrdiff_t  n) [inline]

Definition at line 3663 of file SyFiPYTHON_wrap.cxx.

    {
      return *advance(-n);
    }
bool swig::SwigPyIterator::operator== ( const SwigPyIterator x) const [inline]

Definition at line 3648 of file SyFiPYTHON_wrap.cxx.

    {
      return equal(x);
    }
PyObject* swig::SwigPyIterator::previous ( ) [inline]

Definition at line 3634 of file SyFiPYTHON_wrap.cxx.

References SWIG_PYTHON_THREAD_BEGIN_BLOCK, and SWIG_PYTHON_THREAD_END_BLOCK.

Referenced by _wrap_SwigPyIterator_previous().

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

Member Data Documentation


The documentation for this struct was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines