Michele De Stefano's C++ Utilities
|
Iterator that allows to scan a Python sequence composed by homogeneous elements. More...
#include <mds_utils/python/sequence_iterator.hpp>
Public Member Functions | |
PySequenceIterator () | |
Default constructor. More... | |
PySequenceIterator (PyObject *o, bool end=false) | |
Constructor that builds the start or the Past-the-end iterator. More... | |
PySequenceIterator (const PySequenceIterator &rhs) | |
The copy constructor. | |
~PySequenceIterator () | |
Destructor. | |
PySequenceIterator & | operator= (const PySequenceIterator &rhs) |
Assignment. | |
Friends | |
class | boost::iterator_core_access |
class | PySeqIt_Access< PySequenceIterator< T, Reference > > |
Iterator that allows to scan a Python sequence composed by homogeneous elements.
It can be also used to modify sequence values.
T | The iterator's value_type . |
Reference | It's a proxy class that is returned by the dereference method. It manages the return value and the assignment of a value. |
Definition at line 165 of file sequence_iterator.hpp.
|
inline |
Default constructor.
It builds an unusable iterator.
Definition at line 215 of file sequence_iterator.hpp.
|
inline |
Constructor that builds the start or the Past-the-end iterator.
o | The Python object representing a sequence. |
end | If true, it will build the Past-the-end iterator. If false (default) it builds the start iterator. |
Definition at line 231 of file sequence_iterator.hpp.