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)
 
difference_type operator- (const It &a, const It &b)
 
It operator- (const It &a, difference_type n)
 
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 1143 of file pytypes.h.

Member Typedef Documentation

◆ difference_type

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

Definition at line 1147 of file pytypes.h.

◆ It

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

Definition at line 1144 of file pytypes.h.

◆ iterator_category

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

Definition at line 1148 of file pytypes.h.

◆ pointer

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

Definition at line 1151 of file pytypes.h.

◆ reference

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

Definition at line 1150 of file pytypes.h.

◆ value_type

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

Definition at line 1149 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 1154 of file pytypes.h.

Member Function Documentation

◆ operator*()

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

Definition at line 1157 of file pytypes.h.

◆ operator++() [1/2]

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

Definition at line 1162 of file pytypes.h.

◆ operator++() [2/2]

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

Definition at line 1166 of file pytypes.h.

◆ operator+=()

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

Definition at line 1180 of file pytypes.h.

◆ operator--() [1/2]

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

Definition at line 1171 of file pytypes.h.

◆ operator--() [2/2]

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

Definition at line 1175 of file pytypes.h.

◆ operator-=()

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

Definition at line 1184 of file pytypes.h.

◆ operator->()

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

Definition at line 1160 of file pytypes.h.

◆ operator[]()

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

Definition at line 1159 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 1201 of file pytypes.h.

◆ operator+ [1/2]

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

Definition at line 1189 of file pytypes.h.

◆ operator+ [2/2]

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

Definition at line 1193 of file pytypes.h.

◆ operator- [1/2]

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

Definition at line 1198 of file pytypes.h.

◆ operator- [2/2]

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

Definition at line 1194 of file pytypes.h.

◆ operator<

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

Definition at line 1202 of file pytypes.h.

◆ operator<=

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

Definition at line 1205 of file pytypes.h.

◆ operator==

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

Definition at line 1200 of file pytypes.h.

◆ operator>

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

Definition at line 1203 of file pytypes.h.

◆ operator>=

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

Definition at line 1204 of file pytypes.h.


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


gtsam
Author(s):
autogenerated on Sat Jun 1 2024 03:08:53