tvm
Public Types | Public Member Functions | Friends | List of all members
tvm::runtime::Map< K, V, typename, typename >::iterator Class Reference

Iterator of the hash map. More...

#include <map.h>

Collaboration diagram for tvm::runtime::Map< K, V, typename, typename >::iterator:

Public Types

using iterator_category = std::bidirectional_iterator_tag
 
using difference_type = int64_t
 
using value_type = const std::pair< K, V >
 
using pointer = value_type *
 
using reference = value_type
 

Public Member Functions

 iterator ()
 
bool operator== (const iterator &other) const
 Compare iterators. More...
 
bool operator!= (const iterator &other) const
 Compare iterators. More...
 
pointer operator-> () const =delete
 De-reference iterators is not allowed. More...
 
reference operator* () const
 De-reference iterators. More...
 
iteratoroperator++ ()
 Prefix self increment, e.g. ++iter. More...
 
iterator operator++ (int)
 Suffix self increment. More...
 

Friends

template<typename , typename , typename , typename >
class Map
 

Detailed Description

template<typename K, typename V, typename = typename std::enable_if<std::is_base_of<ObjectRef, K>::value>::type, typename = typename std::enable_if<std::is_base_of<ObjectRef, V>::value>::type>
class tvm::runtime::Map< K, V, typename, typename >::iterator

Iterator of the hash map.

Member Typedef Documentation

◆ difference_type

template<typename K , typename V , typename = typename std::enable_if<std::is_base_of<ObjectRef, K>::value>::type, typename = typename std::enable_if<std::is_base_of<ObjectRef, V>::value>::type>
using tvm::runtime::Map< K, V, typename, typename >::iterator::difference_type = int64_t

◆ iterator_category

template<typename K , typename V , typename = typename std::enable_if<std::is_base_of<ObjectRef, K>::value>::type, typename = typename std::enable_if<std::is_base_of<ObjectRef, V>::value>::type>
using tvm::runtime::Map< K, V, typename, typename >::iterator::iterator_category = std::bidirectional_iterator_tag

◆ pointer

template<typename K , typename V , typename = typename std::enable_if<std::is_base_of<ObjectRef, K>::value>::type, typename = typename std::enable_if<std::is_base_of<ObjectRef, V>::value>::type>
using tvm::runtime::Map< K, V, typename, typename >::iterator::pointer = value_type*

◆ reference

template<typename K , typename V , typename = typename std::enable_if<std::is_base_of<ObjectRef, K>::value>::type, typename = typename std::enable_if<std::is_base_of<ObjectRef, V>::value>::type>
using tvm::runtime::Map< K, V, typename, typename >::iterator::reference = value_type

◆ value_type

template<typename K , typename V , typename = typename std::enable_if<std::is_base_of<ObjectRef, K>::value>::type, typename = typename std::enable_if<std::is_base_of<ObjectRef, V>::value>::type>
using tvm::runtime::Map< K, V, typename, typename >::iterator::value_type = const std::pair<K, V>

Constructor & Destructor Documentation

◆ iterator()

template<typename K , typename V , typename = typename std::enable_if<std::is_base_of<ObjectRef, K>::value>::type, typename = typename std::enable_if<std::is_base_of<ObjectRef, V>::value>::type>
tvm::runtime::Map< K, V, typename, typename >::iterator::iterator ( )
inline

Member Function Documentation

◆ operator!=()

template<typename K , typename V , typename = typename std::enable_if<std::is_base_of<ObjectRef, K>::value>::type, typename = typename std::enable_if<std::is_base_of<ObjectRef, V>::value>::type>
bool tvm::runtime::Map< K, V, typename, typename >::iterator::operator!= ( const iterator other) const
inline

Compare iterators.

◆ operator*()

template<typename K , typename V , typename = typename std::enable_if<std::is_base_of<ObjectRef, K>::value>::type, typename = typename std::enable_if<std::is_base_of<ObjectRef, V>::value>::type>
reference tvm::runtime::Map< K, V, typename, typename >::iterator::operator* ( ) const
inline

De-reference iterators.

◆ operator++() [1/2]

template<typename K , typename V , typename = typename std::enable_if<std::is_base_of<ObjectRef, K>::value>::type, typename = typename std::enable_if<std::is_base_of<ObjectRef, V>::value>::type>
iterator& tvm::runtime::Map< K, V, typename, typename >::iterator::operator++ ( )
inline

Prefix self increment, e.g. ++iter.

◆ operator++() [2/2]

template<typename K , typename V , typename = typename std::enable_if<std::is_base_of<ObjectRef, K>::value>::type, typename = typename std::enable_if<std::is_base_of<ObjectRef, V>::value>::type>
iterator tvm::runtime::Map< K, V, typename, typename >::iterator::operator++ ( int  )
inline

Suffix self increment.

◆ operator->()

template<typename K , typename V , typename = typename std::enable_if<std::is_base_of<ObjectRef, K>::value>::type, typename = typename std::enable_if<std::is_base_of<ObjectRef, V>::value>::type>
pointer tvm::runtime::Map< K, V, typename, typename >::iterator::operator-> ( ) const
delete

De-reference iterators is not allowed.

◆ operator==()

template<typename K , typename V , typename = typename std::enable_if<std::is_base_of<ObjectRef, K>::value>::type, typename = typename std::enable_if<std::is_base_of<ObjectRef, V>::value>::type>
bool tvm::runtime::Map< K, V, typename, typename >::iterator::operator== ( const iterator other) const
inline

Compare iterators.

Friends And Related Function Documentation

◆ Map

template<typename K , typename V , typename = typename std::enable_if<std::is_base_of<ObjectRef, K>::value>::type, typename = typename std::enable_if<std::is_base_of<ObjectRef, V>::value>::type>
template<typename , typename , typename , typename >
friend class Map
friend

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