Back to index

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

List of all members.

Public Types

typedef OutIterator out_iterator
typedef ValueType value_type
typedef PySwigIterator_T
< out_iterator
base
typedef PySwigIteratorClosed_T
< OutIterator, ValueType,
FromOper > 
self_type

Public Member Functions

 PyMapIterator_T (OutIterator curr, OutIterator first, OutIterator last, PyObject *seq)
PyObject * value () const
PySwigIteratorcopy () const
PySwigIteratorincr (size_t n=1)
PySwigIteratordecr (size_t n=1)
const out_iteratorget_current () const
bool equal (const PySwigIterator &iter) const
ptrdiff_t distance (const PySwigIterator &iter) const
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 ()

Public Attributes

FromOper from

Protected Attributes

out_iterator current

Detailed Description

template<class OutIterator, class FromOper, class ValueType = typename OutIterator::value_type>
struct swig::PyMapIterator_T< OutIterator, FromOper, ValueType >

Definition at line 4613 of file arc_wrap.cpp.


Member Typedef Documentation

template<typename OutIterator, typename ValueType = typename std::iterator_traits<OutIterator>::value_type, typename FromOper = from_oper<ValueType>>
typedef PySwigIterator_T<out_iterator> swig::PySwigIteratorClosed_T< OutIterator, ValueType, FromOper >::base [inherited]

Definition at line 3788 of file arc_wrap.cpp.

template<typename OutIterator, typename ValueType = typename std::iterator_traits<OutIterator>::value_type, typename FromOper = from_oper<ValueType>>
typedef OutIterator swig::PySwigIteratorClosed_T< OutIterator, ValueType, FromOper >::out_iterator [inherited]

Reimplemented from swig::PySwigIterator_T< OutIterator >.

Definition at line 3786 of file arc_wrap.cpp.

template<typename OutIterator, typename ValueType = typename std::iterator_traits<OutIterator>::value_type, typename FromOper = from_oper<ValueType>>
typedef PySwigIteratorClosed_T<OutIterator, ValueType, FromOper> swig::PySwigIteratorClosed_T< OutIterator, ValueType, FromOper >::self_type [inherited]

Reimplemented from swig::PySwigIterator_T< OutIterator >.

Definition at line 3789 of file arc_wrap.cpp.

template<typename OutIterator, typename ValueType = typename std::iterator_traits<OutIterator>::value_type, typename FromOper = from_oper<ValueType>>
typedef ValueType swig::PySwigIteratorClosed_T< OutIterator, ValueType, FromOper >::value_type [inherited]

Reimplemented from swig::PySwigIterator_T< OutIterator >.

Definition at line 3787 of file arc_wrap.cpp.


Constructor & Destructor Documentation

template<class OutIterator, class FromOper, class ValueType = typename OutIterator::value_type>
swig::PyMapIterator_T< OutIterator, FromOper, ValueType >::PyMapIterator_T ( OutIterator  curr,
OutIterator  first,
OutIterator  last,
PyObject *  seq 
) [inline]

Definition at line 4615 of file arc_wrap.cpp.

       : PySwigIteratorClosed_T<OutIterator,ValueType,FromOper>(curr, first, last, seq)
      {
      }

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:

template<typename OutIterator, typename ValueType = typename std::iterator_traits<OutIterator>::value_type, typename FromOper = from_oper<ValueType>>
PySwigIterator* swig::PySwigIteratorClosed_T< OutIterator, ValueType, FromOper >::copy ( ) const [inline, virtual, inherited]

Implements swig::PySwigIterator.

Definition at line 3804 of file arc_wrap.cpp.

    {
      return new self_type(*this);
    }
template<typename OutIterator, typename ValueType = typename std::iterator_traits<OutIterator>::value_type, typename FromOper = from_oper<ValueType>>
PySwigIterator* swig::PySwigIteratorClosed_T< OutIterator, ValueType, FromOper >::decr ( size_t  n = 1) [inline, virtual, inherited]

Reimplemented from swig::PySwigIterator.

Definition at line 3821 of file arc_wrap.cpp.

    {
      while (n--) {
       if (base::current == begin) {
         throw stop_iteration();
       } else {
         --base::current;
       }
      }
      return this;
    }
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, inherited]

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

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

Definition at line 3695 of file arc_wrap.cpp.

    {
      return current;
    }
template<typename OutIterator, typename ValueType = typename std::iterator_traits<OutIterator>::value_type, typename FromOper = from_oper<ValueType>>
PySwigIterator* swig::PySwigIteratorClosed_T< OutIterator, ValueType, FromOper >::incr ( size_t  n = 1) [inline, virtual, inherited]

Implements swig::PySwigIterator.

Definition at line 3809 of file arc_wrap.cpp.

    {
      while (n--) {
       if (base::current == end) {
         throw stop_iteration();
       } else {
         ++base::current;
       }
      }
      return this;
    }
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:

template<typename OutIterator, typename ValueType = typename std::iterator_traits<OutIterator>::value_type, typename FromOper = from_oper<ValueType>>
PyObject* swig::PySwigIteratorClosed_T< OutIterator, ValueType, FromOper >::value ( ) const [inline, virtual, inherited]

Implements swig::PySwigIterator.

Definition at line 3796 of file arc_wrap.cpp.

                            {
      if (base::current == end) {
       throw stop_iteration();
      } else {
       return from(static_cast<const value_type&>(*(base::current)));
      }
    }

Member Data Documentation

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

Definition at line 3722 of file arc_wrap.cpp.

template<typename OutIterator, typename ValueType = typename std::iterator_traits<OutIterator>::value_type, typename FromOper = from_oper<ValueType>>
FromOper swig::PySwigIteratorClosed_T< OutIterator, ValueType, FromOper >::from [inherited]

Definition at line 3785 of file arc_wrap.cpp.


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