BoB robotics
The Brains on Board robotics library
pybind11::detail::generic_iterator< Policy > Class Template Reference

STL iterator template used for tuple, list, sequence and dict. More...

#include <pytypes.h>

Inheritance diagram for pybind11::detail::generic_iterator< Policy >:

Public Types

using difference_type = ssize_t
 
using iterator_category = typename Policy::iterator_category
 
using value_type = typename Policy::value_type
 
using reference = typename Policy::reference
 
using pointer = typename Policy::pointer
 

Public Member Functions

 generic_iterator (handle seq, ssize_t index)
 
reference operator* () const
 
reference operator[] (difference_type n) const
 
pointer operator-> () const
 
Itoperator++ ()
 
It operator++ (int)
 
Itoperator-- ()
 
It operator-- (int)
 
Itoperator+= (difference_type n)
 
Itoperator-= (difference_type n)
 

Friends

It operator+ (const It &a, difference_type n)
 
It operator+ (difference_type n, const It &b)
 
It operator- (const It &a, difference_type n)
 
difference_type operator- (const It &a, const It &b)
 
bool operator== (const It &a, const It &b)
 
bool operator!= (const It &a, const It &b)
 
bool operator< (const It &a, const It &b)
 
bool operator> (const It &a, const It &b)
 
bool operator>= (const It &a, const It &b)
 
bool operator<= (const It &a, const It &b)
 

Detailed Description

template<typename Policy>
class pybind11::detail::generic_iterator< Policy >

STL iterator template used for tuple, list, sequence and dict.


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