Michele De Stefano's C++ Utilities
|
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... | |
Accessor class for the PySequenceIterator.
This class is a friend of PySequenceIterator and must be used when defining the proxy class used by PySequenceIterator.
PySeqIt | The type of PySequenceIterator instance. |
Definition at line 61 of file sequence_iterator.hpp.
|
inline |
Constructor.
it | The iterator to which this class has to access. |
Definition at line 75 of file sequence_iterator.hpp.
|
inline |
Returns the current position of the PySequenceIterator instance.
Definition at line 93 of file sequence_iterator.hpp.
|
inline |
Returns the total number of elements of the python sequence.
Definition at line 102 of file sequence_iterator.hpp.
|
inline |
Returns the sequence object on which PySequenceIterator is working.
Definition at line 84 of file sequence_iterator.hpp.