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

#include <array_parameters_dense.h>

Public Types

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

Public Member Functions

 dense_iterator (T *current, T *begin, uint32_t stride_shift)
 
T & operator* ()
 
size_t index ()
 
size_t index_without_stride ()
 
dense_iteratoroperator++ ()
 
dense_iteratoroperator+ (size_t n)
 
dense_iteratoroperator+= (size_t n)
 
dense_iteratornext_non_zero (const dense_iterator &end)
 
pointer operator[] (size_t n)
 
bool operator== (const dense_iterator &rhs) const
 
bool operator!= (const dense_iterator &rhs) const
 
bool operator< (const dense_iterator &rhs) const
 
bool operator<= (const dense_iterator &rhs) const
 

Member Typedef Documentation

◆ difference_type

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

◆ iterator_category

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

◆ pointer

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

◆ reference

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

◆ value_type

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

Constructor & Destructor Documentation

◆ dense_iterator()

template<typename T >
VW::details::dense_iterator< T >::dense_iterator ( T *  current,
T *  begin,
uint32_t  stride_shift 
)
inline

Member Function Documentation

◆ index()

template<typename T >
size_t VW::details::dense_iterator< T >::index ( )
inline

◆ index_without_stride()

template<typename T >
size_t VW::details::dense_iterator< T >::index_without_stride ( )
inline

◆ next_non_zero()

template<typename T >
dense_iterator & VW::details::dense_iterator< T >::next_non_zero ( const dense_iterator< T > &  end)
inline

◆ operator!=()

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

◆ operator*()

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

◆ operator+()

template<typename T >
dense_iterator & VW::details::dense_iterator< T >::operator+ ( size_t  n)
inline

◆ operator++()

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

◆ operator+=()

template<typename T >
dense_iterator & VW::details::dense_iterator< T >::operator+= ( size_t  n)
inline

◆ operator<()

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

◆ operator<=()

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

◆ operator==()

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

◆ operator[]()

template<typename T >
pointer VW::details::dense_iterator< T >::operator[] ( size_t  n)
inline

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