swig::SwigPyIterator_T< OutIterator > Class Template Reference

Inheritance diagram for swig::SwigPyIterator_T< OutIterator >:

swig::SwigPyIterator

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 3991 of file SyFi_wrap.cc.


Member Typedef Documentation

template<typename OutIterator>
typedef OutIterator swig::SwigPyIterator_T< OutIterator >::out_iterator

template<typename OutIterator>
typedef SwigPyIterator_T<out_iterator> swig::SwigPyIterator_T< OutIterator >::self_type

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


Constructor & Destructor Documentation

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

Definition at line 3998 of file SyFi_wrap.cc.

03999       : SwigPyIterator(seq), current(curr)
04000     {
04001     }


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 4019 of file SyFi_wrap.cc.

Referenced by swig::SwigPyIterator_T< OutIterator >::distance().

04020     {
04021       const self_type *iters = dynamic_cast<const self_type *>(&iter);
04022       if (iters) {
04023         return std::distance(current, iters->get_current());
04024       } else {
04025         throw std::invalid_argument("bad iterator type");
04026       }
04027     }    

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

Reimplemented from swig::SwigPyIterator.

Definition at line 4009 of file SyFi_wrap.cc.

04010     {
04011       const self_type *iters = dynamic_cast<const self_type *>(&iter);
04012       if (iters) {
04013         return (current == iters->get_current());
04014       } else {
04015         throw std::invalid_argument("bad iterator type");
04016       }
04017     }

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


Member Data Documentation

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


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

Generated on Mon Aug 31 16:17:06 2009 for SyFi by  doxygen 1.5.9