Vowpal Wabbit
Loading...
Searching...
No Matches
Public Types | Public Member Functions | List of all members
VW::details::sparse_iterator< T > Class Template Reference

#include <array_parameters_sparse.h>

Public Types

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

Public Member Functions

 sparse_iterator (weight_map::iterator iter)
 
sparse_iteratoroperator= (const sparse_iterator &other)=default
 
 sparse_iterator (const sparse_iterator &other)=default
 
sparse_iteratoroperator= (sparse_iterator &&other) noexcept=default
 
 sparse_iterator (sparse_iterator &&other) noexcept=default
 
uint64_t index ()
 
T & operator* ()
 
sparse_iteratoroperator++ ()
 
bool operator== (const sparse_iterator &rhs) const
 
bool operator!= (const sparse_iterator &rhs) const
 

Member Typedef Documentation

◆ difference_type

template<typename T >
using VW::details::sparse_iterator< T >::difference_type = ptrdiff_t

◆ iterator_category

template<typename T >
using VW::details::sparse_iterator< T >::iterator_category = std::forward_iterator_tag

◆ pointer

template<typename T >
using VW::details::sparse_iterator< T >::pointer = T*

◆ reference

template<typename T >
using VW::details::sparse_iterator< T >::reference = T&

◆ value_type

template<typename T >
using VW::details::sparse_iterator< T >::value_type = T

Constructor & Destructor Documentation

◆ sparse_iterator() [1/3]

template<typename T >
VW::details::sparse_iterator< T >::sparse_iterator ( weight_map::iterator  iter)
inline

◆ sparse_iterator() [2/3]

template<typename T >
VW::details::sparse_iterator< T >::sparse_iterator ( const sparse_iterator< T > &  other)
default

◆ sparse_iterator() [3/3]

template<typename T >
VW::details::sparse_iterator< T >::sparse_iterator ( sparse_iterator< T > &&  other)
defaultnoexcept

Member Function Documentation

◆ index()

template<typename T >
uint64_t VW::details::sparse_iterator< T >::index ( )
inline

◆ operator!=()

template<typename T >
bool VW::details::sparse_iterator< T >::operator!= ( const sparse_iterator< T > &  rhs) const
inline

◆ operator*()

template<typename T >
T & VW::details::sparse_iterator< T >::operator* ( )
inline

◆ operator++()

template<typename T >
sparse_iterator & VW::details::sparse_iterator< T >::operator++ ( )
inline

◆ operator=() [1/2]

template<typename T >
sparse_iterator & VW::details::sparse_iterator< T >::operator= ( const sparse_iterator< T > &  other)
default

◆ operator=() [2/2]

template<typename T >
sparse_iterator & VW::details::sparse_iterator< T >::operator= ( sparse_iterator< T > &&  other)
defaultnoexcept

◆ operator==()

template<typename T >
bool VW::details::sparse_iterator< T >::operator== ( const sparse_iterator< T > &  rhs) const
inline

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