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 <pytypes.h>

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

Public Types

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

Public Member Functions

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

Private Types

using It = generic_iterator
 

Friends

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)
 

Detailed Description

template<typename Policy>
class generic_iterator< Policy >

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

Definition at line 1022 of file pytypes.h.

Member Typedef Documentation

◆ difference_type

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

Definition at line 1026 of file pytypes.h.

◆ It

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

Definition at line 1023 of file pytypes.h.

◆ iterator_category

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

Definition at line 1027 of file pytypes.h.

◆ pointer

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

Definition at line 1030 of file pytypes.h.

◆ reference

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

Definition at line 1029 of file pytypes.h.

◆ value_type

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

Definition at line 1028 of file pytypes.h.

Constructor & Destructor Documentation

◆ generic_iterator() [1/2]

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

◆ generic_iterator() [2/2]

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

Definition at line 1033 of file pytypes.h.

Member Function Documentation

◆ operator*()

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

Definition at line 1036 of file pytypes.h.

◆ operator++() [1/2]

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

Definition at line 1041 of file pytypes.h.

◆ operator++() [2/2]

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

Definition at line 1045 of file pytypes.h.

◆ operator+=()

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

Definition at line 1059 of file pytypes.h.

◆ operator--() [1/2]

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

Definition at line 1050 of file pytypes.h.

◆ operator--() [2/2]

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

Definition at line 1054 of file pytypes.h.

◆ operator-=()

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

Definition at line 1063 of file pytypes.h.

◆ operator->()

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

Definition at line 1039 of file pytypes.h.

◆ operator[]()

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

Definition at line 1038 of file pytypes.h.

Friends And Related Function Documentation

◆ operator!=

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

Definition at line 1080 of file pytypes.h.

◆ operator+ [1/2]

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

Definition at line 1068 of file pytypes.h.

◆ operator+ [2/2]

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

Definition at line 1072 of file pytypes.h.

◆ operator- [1/2]

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

Definition at line 1073 of file pytypes.h.

◆ operator- [2/2]

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

Definition at line 1077 of file pytypes.h.

◆ operator<

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

Definition at line 1081 of file pytypes.h.

◆ operator<=

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

Definition at line 1084 of file pytypes.h.

◆ operator==

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

Definition at line 1079 of file pytypes.h.

◆ operator>

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

Definition at line 1082 of file pytypes.h.

◆ operator>=

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

Definition at line 1083 of file pytypes.h.


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


gtsam
Author(s):
autogenerated on Tue Jul 4 2023 02:41:02