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

Member Typedef Documentation

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

Definition at line 624 of file pytypes.h.

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

Definition at line 621 of file pytypes.h.

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

Definition at line 625 of file pytypes.h.

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

Definition at line 628 of file pytypes.h.

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

Definition at line 627 of file pytypes.h.

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

Definition at line 626 of file pytypes.h.

Constructor & Destructor Documentation

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

Definition at line 631 of file pytypes.h.

Member Function Documentation

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

Definition at line 633 of file pytypes.h.

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

Definition at line 637 of file pytypes.h.

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

Definition at line 638 of file pytypes.h.

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

Definition at line 641 of file pytypes.h.

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

Definition at line 639 of file pytypes.h.

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

Definition at line 640 of file pytypes.h.

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

Definition at line 642 of file pytypes.h.

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

Definition at line 635 of file pytypes.h.

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

Definition at line 634 of file pytypes.h.

Friends And Related Function Documentation

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

Definition at line 650 of file pytypes.h.

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

Definition at line 644 of file pytypes.h.

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

Definition at line 645 of file pytypes.h.

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

Definition at line 646 of file pytypes.h.

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

Definition at line 647 of file pytypes.h.

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

Definition at line 651 of file pytypes.h.

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

Definition at line 654 of file pytypes.h.

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

Definition at line 649 of file pytypes.h.

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

Definition at line 652 of file pytypes.h.

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

Definition at line 653 of file pytypes.h.


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


gtsam
Author(s):
autogenerated on Sat May 8 2021 02:51:48