xgboost
Public Types | Public Member Functions | List of all members
xgboost::BatchIterator< T > Class Template Reference

#include <data.h>

Collaboration diagram for xgboost::BatchIterator< T >:
Collaboration graph

Public Types

using iterator_category = std::forward_iterator_tag
 

Public Member Functions

 BatchIterator (BatchIteratorImpl< T > *impl)
 
 BatchIterator (std::shared_ptr< BatchIteratorImpl< T >> impl)
 
BatchIteratoroperator++ ()
 
const T & operator* () const
 
bool operator!= (const BatchIterator &) const
 
bool AtEnd () const
 
std::shared_ptr< T const > Page () const
 

Member Typedef Documentation

◆ iterator_category

template<typename T >
using xgboost::BatchIterator< T >::iterator_category = std::forward_iterator_tag

Constructor & Destructor Documentation

◆ BatchIterator() [1/2]

template<typename T >
xgboost::BatchIterator< T >::BatchIterator ( BatchIteratorImpl< T > *  impl)
inlineexplicit

◆ BatchIterator() [2/2]

template<typename T >
xgboost::BatchIterator< T >::BatchIterator ( std::shared_ptr< BatchIteratorImpl< T >>  impl)
inlineexplicit

Member Function Documentation

◆ AtEnd()

template<typename T >
bool xgboost::BatchIterator< T >::AtEnd ( ) const
inline

◆ operator!=()

template<typename T >
bool xgboost::BatchIterator< T >::operator!= ( const BatchIterator< T > &  ) const
inline

◆ operator*()

template<typename T >
const T& xgboost::BatchIterator< T >::operator* ( ) const
inline

◆ operator++()

template<typename T >
BatchIterator& xgboost::BatchIterator< T >::operator++ ( )
inline

◆ Page()

template<typename T >
std::shared_ptr<T const> xgboost::BatchIterator< T >::Page ( ) const
inline

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