Back to index

nordugrid-arc-nox  1.1.0~rc6
Public Types | Public Member Functions | Static Public Member Functions | Protected Attributes
swig::PySwigIterator_T< OutIterator > Class Template Reference
Inheritance diagram for swig::PySwigIterator_T< OutIterator >:
Inheritance graph
[legend]
Collaboration diagram for swig::PySwigIterator_T< OutIterator >:
Collaboration graph
[legend]

List of all members.

Public Types

typedef OutIterator out_iterator
typedef std::iterator_traits
< out_iterator >::value_type 
value_type
typedef PySwigIterator_T
< out_iterator
self_type

Public Member Functions

 PySwigIterator_T (out_iterator curr, PyObject *seq)
const out_iteratorget_current () const
bool equal (const PySwigIterator &iter) const
ptrdiff_t distance (const PySwigIterator &iter) const
virtual PyObject * value () const =0
virtual PySwigIteratorincr (size_t n=1)=0
virtual PySwigIteratordecr (size_t=1)
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 Attributes

out_iterator current

Detailed Description

template<typename OutIterator>
class swig::PySwigIterator_T< OutIterator >

Definition at line 3683 of file arc_wrap.cpp.


Member Typedef Documentation

template<typename OutIterator>
typedef OutIterator swig::PySwigIterator_T< OutIterator >::out_iterator
template<typename OutIterator>
typedef PySwigIterator_T<out_iterator> swig::PySwigIterator_T< OutIterator >::self_type
template<typename OutIterator>
typedef std::iterator_traits<out_iterator>::value_type swig::PySwigIterator_T< OutIterator >::value_type

Constructor & Destructor Documentation

template<typename OutIterator>
swig::PySwigIterator_T< OutIterator >::PySwigIterator_T ( out_iterator  curr,
PyObject *  seq 
) [inline]

Definition at line 3690 of file arc_wrap.cpp.

      : PySwigIterator(seq), current(curr)
    {
    }

Member Function Documentation

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

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, inherited]
virtual PySwigIterator* swig::PySwigIterator::decr ( size_t  = 1) [inline, virtual, inherited]
static swig_type_info* swig::PySwigIterator::descriptor ( ) [inline, static, inherited]

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;
    }    
template<typename OutIterator>
ptrdiff_t swig::PySwigIterator_T< OutIterator >::distance ( const PySwigIterator iter) const [inline, virtual]

Reimplemented from swig::PySwigIterator.

Definition at line 3711 of file arc_wrap.cpp.

    {
      const self_type *iters = dynamic_cast<const self_type *>(&iter);
      if (iters) {
       return std::distance(current, iters->get_current());
      } else {
       throw std::invalid_argument("bad iterator type");
      }
    }    

Here is the call graph for this function:

template<typename OutIterator>
bool swig::PySwigIterator_T< OutIterator >::equal ( const PySwigIterator iter) const [inline, virtual]

Reimplemented from swig::PySwigIterator.

Definition at line 3701 of file arc_wrap.cpp.

    {
      const self_type *iters = dynamic_cast<const self_type *>(&iter);
      if (iters) {
       return (current == iters->get_current());
      } else {
       throw std::invalid_argument("bad iterator type");
      }
    }

Here is the call graph for this function:

template<typename OutIterator>
const out_iterator& swig::PySwigIterator_T< OutIterator >::get_current ( ) const [inline]

Definition at line 3695 of file arc_wrap.cpp.

    {
      return current;
    }
virtual PySwigIterator* swig::PySwigIterator::incr ( size_t  n = 1) [pure virtual, inherited]
PyObject* swig::PySwigIterator::next ( ) [inline, inherited]

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, inherited]

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, inherited]

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, inherited]

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, inherited]

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, inherited]

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, inherited]

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, inherited]

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, inherited]

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, inherited]

Member Data Documentation

template<typename OutIterator>
out_iterator swig::PySwigIterator_T< OutIterator >::current [protected]

Definition at line 3722 of file arc_wrap.cpp.


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