tvm
|
iterator adapter that adapts TIter to return another type. More...
#include <base.h>
Public Types | |
using | difference_type = typename std::iterator_traits< TIter >::difference_type |
using | value_type = typename Converter::ResultType |
using | pointer = typename Converter::ResultType * |
using | reference = typename Converter::ResultType & |
using | iterator_category = typename std::iterator_traits< TIter >::iterator_category |
Public Member Functions | |
IterAdapter (TIter iter) | |
IterAdapter & | operator++ () |
IterAdapter & | operator-- () |
IterAdapter | operator++ (int) |
IterAdapter | operator-- (int) |
IterAdapter | operator+ (difference_type offset) const |
IterAdapter | operator- (difference_type offset) const |
template<typename T = IterAdapter> | |
std::enable_if< std::is_same< iterator_category, std::random_access_iterator_tag >::value, typename T::difference_type >::type | operator- (const IterAdapter &rhs) const |
bool | operator== (IterAdapter other) const |
bool | operator!= (IterAdapter other) const |
const value_type | operator* () const |
iterator adapter that adapts TIter to return another type.
Converter | a struct that contains converting function |
TIter | the content iterator type. |
using tvm::runtime::IterAdapter< Converter, TIter >::difference_type = typename std::iterator_traits<TIter>::difference_type |
using tvm::runtime::IterAdapter< Converter, TIter >::iterator_category = typename std::iterator_traits<TIter>::iterator_category |
using tvm::runtime::IterAdapter< Converter, TIter >::pointer = typename Converter::ResultType* |
using tvm::runtime::IterAdapter< Converter, TIter >::reference = typename Converter::ResultType& |
using tvm::runtime::IterAdapter< Converter, TIter >::value_type = typename Converter::ResultType |
|
inlineexplicit |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |