Back to index

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

List of all members.

Public Types

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

Public Member Functions

 PySwigIteratorOpen_T (out_iterator curr, 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<typename OutIterator, typename ValueType = typename std::iterator_traits<OutIterator>::value_type, typename FromOper = from_oper<ValueType>>
class swig::PySwigIteratorOpen_T< OutIterator, ValueType, FromOper >

Definition at line 3739 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::PySwigIteratorOpen_T< OutIterator, ValueType, FromOper >::base

Definition at line 3745 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::PySwigIteratorOpen_T< OutIterator, ValueType, FromOper >::out_iterator

Reimplemented from swig::PySwigIterator_T< OutIterator >.

Definition at line 3743 of file arc_wrap.cpp.

template<typename OutIterator, typename ValueType = typename std::iterator_traits<OutIterator>::value_type, typename FromOper = from_oper<ValueType>>
typedef PySwigIteratorOpen_T<OutIterator, ValueType, FromOper> swig::PySwigIteratorOpen_T< OutIterator, ValueType, FromOper >::self_type

Reimplemented from swig::PySwigIterator_T< OutIterator >.

Definition at line 3746 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::PySwigIteratorOpen_T< OutIterator, ValueType, FromOper >::value_type

Reimplemented from swig::PySwigIterator_T< OutIterator >.

Definition at line 3744 of file arc_wrap.cpp.


Constructor & Destructor Documentation

template<typename OutIterator, typename ValueType = typename std::iterator_traits<OutIterator>::value_type, typename FromOper = from_oper<ValueType>>
swig::PySwigIteratorOpen_T< OutIterator, ValueType, FromOper >::PySwigIteratorOpen_T ( out_iterator  curr,
PyObject *  seq 
) [inline]

Definition at line 3748 of file arc_wrap.cpp.

      : PySwigIterator_T<OutIterator>(curr, 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::PySwigIteratorOpen_T< OutIterator, ValueType, FromOper >::copy ( ) const [inline, virtual]

Implements swig::PySwigIterator.

Definition at line 3757 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::PySwigIteratorOpen_T< OutIterator, ValueType, FromOper >::decr ( size_t  n = 1) [inline, virtual]

Reimplemented from swig::PySwigIterator.

Definition at line 3770 of file arc_wrap.cpp.

    {
      while (n--) {
       --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::PySwigIteratorOpen_T< OutIterator, ValueType, FromOper >::incr ( size_t  n = 1) [inline, virtual]

Implements swig::PySwigIterator.

Definition at line 3762 of file arc_wrap.cpp.

    {
      while (n--) {
       ++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::PySwigIteratorOpen_T< OutIterator, ValueType, FromOper >::value ( ) const [inline, virtual]

Implements swig::PySwigIterator.

Definition at line 3753 of file arc_wrap.cpp.

                            {
      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::PySwigIteratorOpen_T< OutIterator, ValueType, FromOper >::from

Definition at line 3742 of file arc_wrap.cpp.


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