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 1177 of file pytypes.h.

Member Typedef Documentation

◆ difference_type

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

Definition at line 1181 of file pytypes.h.

◆ It

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

Definition at line 1178 of file pytypes.h.

◆ iterator_category

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

Definition at line 1182 of file pytypes.h.

◆ pointer

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

Definition at line 1185 of file pytypes.h.

◆ reference

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

Definition at line 1184 of file pytypes.h.

◆ value_type

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

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

Member Function Documentation

◆ operator*()

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

Definition at line 1191 of file pytypes.h.

◆ operator++() [1/2]

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

Definition at line 1196 of file pytypes.h.

◆ operator++() [2/2]

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

Definition at line 1200 of file pytypes.h.

◆ operator+=()

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

Definition at line 1214 of file pytypes.h.

◆ operator--() [1/2]

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

Definition at line 1205 of file pytypes.h.

◆ operator--() [2/2]

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

Definition at line 1209 of file pytypes.h.

◆ operator-=()

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

Definition at line 1218 of file pytypes.h.

◆ operator->()

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

Definition at line 1194 of file pytypes.h.

◆ operator[]()

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

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

◆ operator+ [1/2]

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

Definition at line 1223 of file pytypes.h.

◆ operator+ [2/2]

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

Definition at line 1227 of file pytypes.h.

◆ operator- [1/2]

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

Definition at line 1232 of file pytypes.h.

◆ operator- [2/2]

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

Definition at line 1228 of file pytypes.h.

◆ operator<

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

Definition at line 1236 of file pytypes.h.

◆ operator<=

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

Definition at line 1239 of file pytypes.h.

◆ operator==

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

Definition at line 1234 of file pytypes.h.

◆ operator>

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

Definition at line 1237 of file pytypes.h.

◆ operator>=

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

Definition at line 1238 of file pytypes.h.


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


gtsam
Author(s):
autogenerated on Thu Dec 19 2024 04:08:51