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

Iterator of the hash map. More...

#include <container_ext.h>

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

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 mxnet::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 mxnet::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 mxnet::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 mxnet::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 mxnet::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 mxnet::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>
mxnet::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 mxnet::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 mxnet::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& mxnet::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 mxnet::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 mxnet::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 mxnet::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: