SHOGUN  6.1.3
List of all members | Public Types | Public Member Functions
RandomIterator< T > Class Template Reference

Detailed Description

template<typename T>
class shogun::RandomIterator< T >

Definition at line 39 of file iterators.h.

Public Types

using difference_type = std::ptrdiff_t
 
using value_type = T
 
using pointer = T *
 
using reference = T &
 
using iterator_category = std::random_access_iterator_tag
 

Public Member Functions

 RandomIterator (pointer ptr)
 
RandomIteratoroperator++ ()
 
RandomIterator operator++ (int)
 
RandomIteratoroperator-- ()
 
RandomIterator operator-- (int)
 
bool operator== (const RandomIterator &other) const
 
bool operator!= (const RandomIterator &other) const
 
reference operator* ()
 
pointer operator-> ()
 
RandomIteratoroperator+= (difference_type d)
 
RandomIteratoroperator-= (difference_type d)
 
RandomIterator operator+ (difference_type d) const
 
RandomIterator operator- (difference_type d) const
 
reference operator[] (difference_type d) const
 
bool operator< (const RandomIterator &other) const
 
bool operator> (const RandomIterator &other) const
 
bool operator<= (const RandomIterator &other) const
 
bool operator>= (const RandomIterator &other) const
 
difference_type operator- (const RandomIterator &other) const
 

Member Typedef Documentation

◆ difference_type

using difference_type = std::ptrdiff_t

Definition at line 43 of file iterators.h.

◆ iterator_category

using iterator_category = std::random_access_iterator_tag

Definition at line 47 of file iterators.h.

◆ pointer

using pointer = T*

Definition at line 45 of file iterators.h.

◆ reference

using reference = T&

Definition at line 46 of file iterators.h.

◆ value_type

using value_type = T

Definition at line 44 of file iterators.h.

Constructor & Destructor Documentation

◆ RandomIterator()

RandomIterator ( pointer  ptr)
explicit

Definition at line 49 of file iterators.h.

Member Function Documentation

◆ operator!=()

bool operator!= ( const RandomIterator< T > &  other) const

Definition at line 57 of file iterators.h.

◆ operator*()

reference operator* ( )

Definition at line 59 of file iterators.h.

◆ operator+()

RandomIterator operator+ ( difference_type  d) const

Definition at line 65 of file iterators.h.

◆ operator++() [1/2]

RandomIterator& operator++ ( )

Definition at line 51 of file iterators.h.

◆ operator++() [2/2]

RandomIterator operator++ ( int  )

Definition at line 52 of file iterators.h.

◆ operator+=()

RandomIterator& operator+= ( difference_type  d)

Definition at line 62 of file iterators.h.

◆ operator-() [1/2]

RandomIterator operator- ( difference_type  d) const

Definition at line 66 of file iterators.h.

◆ operator-() [2/2]

difference_type operator- ( const RandomIterator< T > &  other) const

Definition at line 75 of file iterators.h.

◆ operator--() [1/2]

RandomIterator& operator-- ( )

Definition at line 53 of file iterators.h.

◆ operator--() [2/2]

RandomIterator operator-- ( int  )

Definition at line 54 of file iterators.h.

◆ operator-=()

RandomIterator& operator-= ( difference_type  d)

Definition at line 63 of file iterators.h.

◆ operator->()

pointer operator-> ( )

Definition at line 60 of file iterators.h.

◆ operator<()

bool operator< ( const RandomIterator< T > &  other) const

Definition at line 70 of file iterators.h.

◆ operator<=()

bool operator<= ( const RandomIterator< T > &  other) const

Definition at line 72 of file iterators.h.

◆ operator==()

bool operator== ( const RandomIterator< T > &  other) const

Definition at line 56 of file iterators.h.

◆ operator>()

bool operator> ( const RandomIterator< T > &  other) const

Definition at line 71 of file iterators.h.

◆ operator>=()

bool operator>= ( const RandomIterator< T > &  other) const

Definition at line 73 of file iterators.h.

◆ operator[]()

reference operator[] ( difference_type  d) const

Definition at line 68 of file iterators.h.


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

SHOGUN Machine Learning Toolbox - Documentation