SyFi  0.3
swig::SwigPyIterator_T< OutIterator > Class Template Reference
Inheritance diagram for swig::SwigPyIterator_T< OutIterator >:
swig::SwigPyIterator 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 Types

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

Public Member Functions

 SwigPyIterator_T (out_iterator curr, PyObject *seq)
const out_iteratorget_current () const
bool equal (const SwigPyIterator &iter) const
ptrdiff_t distance (const SwigPyIterator &iter) const

Protected Attributes

out_iterator current

Detailed Description

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

Definition at line 4416 of file SyFiPYTHON_wrap.cxx.


Member Typedef Documentation


Constructor & Destructor Documentation

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

Definition at line 4423 of file SyFiPYTHON_wrap.cxx.

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

Member Function Documentation

template<typename OutIterator>
ptrdiff_t swig::SwigPyIterator_T< OutIterator >::distance ( const SwigPyIterator iter) const [inline, virtual]

Reimplemented from swig::SwigPyIterator.

Definition at line 4444 of file SyFiPYTHON_wrap.cxx.

References swig::SwigPyIterator_T< OutIterator >::get_current().

    {
      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");
      }
    }    
template<typename OutIterator>
bool swig::SwigPyIterator_T< OutIterator >::equal ( const SwigPyIterator iter) const [inline, virtual]

Reimplemented from swig::SwigPyIterator.

Definition at line 4434 of file SyFiPYTHON_wrap.cxx.

References swig::SwigPyIterator_T< OutIterator >::get_current().

    {
      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");
      }
    }

Member Data Documentation

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

Definition at line 4455 of file SyFiPYTHON_wrap.cxx.


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