μHAL (v2.8.17)
Part of the IPbus software repository
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Public Types | Public Member Functions | Private Types | Friends | List of all members
generic_iterator< Policy > Class Template Reference

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

#include </builds/ipbus/ipbus-software/uhal/python/pybind11-python2/include/pybind11/pytypes.h>

Inheritance diagram for generic_iterator< Policy >:
[legend]
Collaboration diagram for generic_iterator< Policy >:
[legend]

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
 
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 ()=default
 
 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)
 
 generic_iterator ()=default
 
 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)
 

Private Types

using It = generic_iterator
 
using It = generic_iterator
 

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)
 
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 generic_iterator< Policy >

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

Definition at line 819 of file pytypes.h.

Member Typedef Documentation

◆ difference_type [1/2]

template<typename Policy >
using generic_iterator< Policy >::difference_type = ssize_t

Definition at line 823 of file pytypes.h.

◆ difference_type [2/2]

template<typename Policy >
using generic_iterator< Policy >::difference_type = ssize_t

Definition at line 1088 of file pytypes.h.

◆ It [1/2]

template<typename Policy >
using generic_iterator< Policy >::It = generic_iterator
private

Definition at line 820 of file pytypes.h.

◆ It [2/2]

template<typename Policy >
using generic_iterator< Policy >::It = generic_iterator
private

Definition at line 1085 of file pytypes.h.

◆ iterator_category [1/2]

template<typename Policy >
using generic_iterator< Policy >::iterator_category = typename Policy::iterator_category

Definition at line 824 of file pytypes.h.

◆ iterator_category [2/2]

template<typename Policy >
using generic_iterator< Policy >::iterator_category = typename Policy::iterator_category

Definition at line 1089 of file pytypes.h.

◆ pointer [1/2]

template<typename Policy >
using generic_iterator< Policy >::pointer = typename Policy::pointer

Definition at line 827 of file pytypes.h.

◆ pointer [2/2]

template<typename Policy >
using generic_iterator< Policy >::pointer = typename Policy::pointer

Definition at line 1092 of file pytypes.h.

◆ reference [1/2]

template<typename Policy >
using generic_iterator< Policy >::reference = typename Policy::reference

Definition at line 826 of file pytypes.h.

◆ reference [2/2]

template<typename Policy >
using generic_iterator< Policy >::reference = typename Policy::reference

Definition at line 1091 of file pytypes.h.

◆ value_type [1/2]

template<typename Policy >
using generic_iterator< Policy >::value_type = typename Policy::value_type

Definition at line 825 of file pytypes.h.

◆ value_type [2/2]

template<typename Policy >
using generic_iterator< Policy >::value_type = typename Policy::value_type

Definition at line 1090 of file pytypes.h.

Constructor & Destructor Documentation

◆ generic_iterator() [1/4]

template<typename Policy >
generic_iterator< Policy >::generic_iterator ( )
default

◆ generic_iterator() [2/4]

template<typename Policy >
generic_iterator< Policy >::generic_iterator ( handle  seq,
ssize_t  index 
)
inline

Definition at line 830 of file pytypes.h.

◆ generic_iterator() [3/4]

template<typename Policy >
generic_iterator< Policy >::generic_iterator ( )
default

◆ generic_iterator() [4/4]

template<typename Policy >
generic_iterator< Policy >::generic_iterator ( handle  seq,
ssize_t  index 
)
inline

Definition at line 1095 of file pytypes.h.

Member Function Documentation

◆ operator*() [1/2]

template<typename Policy >
reference generic_iterator< Policy >::operator* ( ) const
inline

Definition at line 833 of file pytypes.h.

◆ operator*() [2/2]

template<typename Policy >
reference generic_iterator< Policy >::operator* ( ) const
inline

Definition at line 1098 of file pytypes.h.

◆ operator++() [1/4]

template<typename Policy >
It & generic_iterator< Policy >::operator++ ( )
inline

Definition at line 838 of file pytypes.h.

◆ operator++() [2/4]

template<typename Policy >
It & generic_iterator< Policy >::operator++ ( )
inline

Definition at line 1103 of file pytypes.h.

◆ operator++() [3/4]

template<typename Policy >
It generic_iterator< Policy >::operator++ ( int  )
inline

Definition at line 842 of file pytypes.h.

References copy.

◆ operator++() [4/4]

template<typename Policy >
It generic_iterator< Policy >::operator++ ( int  )
inline

Definition at line 1107 of file pytypes.h.

References copy.

◆ operator+=() [1/2]

template<typename Policy >
It & generic_iterator< Policy >::operator+= ( difference_type  n)
inline

Definition at line 856 of file pytypes.h.

◆ operator+=() [2/2]

template<typename Policy >
It & generic_iterator< Policy >::operator+= ( difference_type  n)
inline

Definition at line 1121 of file pytypes.h.

◆ operator--() [1/4]

template<typename Policy >
It & generic_iterator< Policy >::operator-- ( )
inline

Definition at line 847 of file pytypes.h.

◆ operator--() [2/4]

template<typename Policy >
It & generic_iterator< Policy >::operator-- ( )
inline

Definition at line 1112 of file pytypes.h.

◆ operator--() [3/4]

template<typename Policy >
It generic_iterator< Policy >::operator-- ( int  )
inline

Definition at line 851 of file pytypes.h.

References copy.

◆ operator--() [4/4]

template<typename Policy >
It generic_iterator< Policy >::operator-- ( int  )
inline

Definition at line 1116 of file pytypes.h.

References copy.

◆ operator-=() [1/2]

template<typename Policy >
It & generic_iterator< Policy >::operator-= ( difference_type  n)
inline

Definition at line 860 of file pytypes.h.

◆ operator-=() [2/2]

template<typename Policy >
It & generic_iterator< Policy >::operator-= ( difference_type  n)
inline

Definition at line 1125 of file pytypes.h.

◆ operator->() [1/2]

template<typename Policy >
pointer generic_iterator< Policy >::operator-> ( ) const
inline

Definition at line 836 of file pytypes.h.

◆ operator->() [2/2]

template<typename Policy >
pointer generic_iterator< Policy >::operator-> ( ) const
inline

Definition at line 1101 of file pytypes.h.

◆ operator[]() [1/2]

template<typename Policy >
reference generic_iterator< Policy >::operator[] ( difference_type  n) const
inline

Definition at line 835 of file pytypes.h.

◆ operator[]() [2/2]

template<typename Policy >
reference generic_iterator< Policy >::operator[] ( difference_type  n) const
inline

Definition at line 1100 of file pytypes.h.

Friends And Related Function Documentation

◆ operator!= [1/2]

template<typename Policy >
bool operator!= ( const It a,
const It b 
)
friend

Definition at line 877 of file pytypes.h.

◆ operator!= [2/2]

template<typename Policy >
bool operator!= ( const It a,
const It b 
)
friend

Definition at line 1142 of file pytypes.h.

◆ operator+ [1/4]

template<typename Policy >
It operator+ ( const It a,
difference_type  n 
)
friend

Definition at line 865 of file pytypes.h.

◆ operator+ [2/4]

template<typename Policy >
It operator+ ( const It a,
difference_type  n 
)
friend

Definition at line 1130 of file pytypes.h.

◆ operator+ [3/4]

template<typename Policy >
It operator+ ( difference_type  n,
const It b 
)
friend

Definition at line 869 of file pytypes.h.

◆ operator+ [4/4]

template<typename Policy >
It operator+ ( difference_type  n,
const It b 
)
friend

Definition at line 1134 of file pytypes.h.

◆ operator- [1/4]

template<typename Policy >
difference_type operator- ( const It a,
const It b 
)
friend

Definition at line 874 of file pytypes.h.

◆ operator- [2/4]

template<typename Policy >
difference_type operator- ( const It a,
const It b 
)
friend

Definition at line 1139 of file pytypes.h.

◆ operator- [3/4]

template<typename Policy >
It operator- ( const It a,
difference_type  n 
)
friend

Definition at line 870 of file pytypes.h.

◆ operator- [4/4]

template<typename Policy >
It operator- ( const It a,
difference_type  n 
)
friend

Definition at line 1135 of file pytypes.h.

◆ operator< [1/2]

template<typename Policy >
bool operator< ( const It a,
const It b 
)
friend

Definition at line 878 of file pytypes.h.

◆ operator< [2/2]

template<typename Policy >
bool operator< ( const It a,
const It b 
)
friend

Definition at line 1143 of file pytypes.h.

◆ operator<= [1/2]

template<typename Policy >
bool operator<= ( const It a,
const It b 
)
friend

Definition at line 881 of file pytypes.h.

◆ operator<= [2/2]

template<typename Policy >
bool operator<= ( const It a,
const It b 
)
friend

Definition at line 1146 of file pytypes.h.

◆ operator== [1/2]

template<typename Policy >
bool operator== ( const It a,
const It b 
)
friend

Definition at line 876 of file pytypes.h.

◆ operator== [2/2]

template<typename Policy >
bool operator== ( const It a,
const It b 
)
friend

Definition at line 1141 of file pytypes.h.

◆ operator> [1/2]

template<typename Policy >
bool operator> ( const It a,
const It b 
)
friend

Definition at line 879 of file pytypes.h.

◆ operator> [2/2]

template<typename Policy >
bool operator> ( const It a,
const It b 
)
friend

Definition at line 1144 of file pytypes.h.

◆ operator>= [1/2]

template<typename Policy >
bool operator>= ( const It a,
const It b 
)
friend

Definition at line 880 of file pytypes.h.

◆ operator>= [2/2]

template<typename Policy >
bool operator>= ( const It a,
const It b 
)
friend

Definition at line 1145 of file pytypes.h.


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