Michele De Stefano's C++ Utilities
mds_utils::python::PySeqIt_Access< PySeqIt > Class Template Reference

Accessor class for the PySequenceIterator. More...

#include <mds_utils/python/sequence_iterator.hpp>

Public Member Functions

 PySeqIt_Access (PySeqIt &it)
 Constructor. More...
 
PyObject * pPySeq () const
 Returns the sequence object on which PySequenceIterator is working. More...
 
size_t cur_pos () const
 Returns the current position of the PySequenceIterator instance. More...
 
size_t nel () const
 Returns the total number of elements of the python sequence. More...
 

Detailed Description

template<class PySeqIt>
class mds_utils::python::PySeqIt_Access< PySeqIt >

Accessor class for the PySequenceIterator.

This class is a friend of PySequenceIterator and must be used when defining the proxy class used by PySequenceIterator.

Template Parameters
PySeqItThe type of PySequenceIterator instance.
Author
Michele De Stefano
Date
05/10/2012

Definition at line 61 of file sequence_iterator.hpp.

Constructor & Destructor Documentation

template<class PySeqIt>
mds_utils::python::PySeqIt_Access< PySeqIt >::PySeqIt_Access ( PySeqIt &  it)
inline

Constructor.

Parameters
itThe iterator to which this class has to access.
Author
Michele De Stefano
Date
05/10/2012

Definition at line 75 of file sequence_iterator.hpp.

Member Function Documentation

template<class PySeqIt>
size_t mds_utils::python::PySeqIt_Access< PySeqIt >::cur_pos ( ) const
inline

Returns the current position of the PySequenceIterator instance.

Author
Michele De Stefano
Date
05/10/2012

Definition at line 93 of file sequence_iterator.hpp.

template<class PySeqIt>
size_t mds_utils::python::PySeqIt_Access< PySeqIt >::nel ( ) const
inline

Returns the total number of elements of the python sequence.

Author
Michele De Stefano
Date
05/10/2012

Definition at line 102 of file sequence_iterator.hpp.

template<class PySeqIt>
PyObject* mds_utils::python::PySeqIt_Access< PySeqIt >::pPySeq ( ) const
inline

Returns the sequence object on which PySequenceIterator is working.

Author
Michele De Stefano
Date
05/10/2012รน

Definition at line 84 of file sequence_iterator.hpp.


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