ModErn Text Analysis
META Enumerates Textual Applications
Public Member Functions | Private Attributes | List of all members
meta::util::invertible_map< Key, Value >::Iterator Class Reference

The invertible_map iterator is really just a wrapper for the forward (key -> value) unordered_map iterator. More...

#include <invertible_map.h>

Inheritance diagram for meta::util::invertible_map< Key, Value >::Iterator:

Public Member Functions

 Iterator ()
 Constructor.
 
 Iterator (const InnerIterator &other)
 Copy constructor.
 
Iteratoroperator++ ()
 Pre-Increment.
 
Iterator operator++ (int)
 Post-increment.
 
Iteratoroperator-- ()
 Pre-decrement.
 
Iterator operator-- (int)
 Post-decrement.
 
bool operator== (const Iterator &other)
 Iterator equality.
 
bool operator!= (const Iterator &other)
 Iterator inequality.
 
const InnerIterator::value_type & operator* ()
 Dereference operator. More...
 
const InnerIterator::value_type * operator-> ()
 Arrow operator. More...
 

Private Attributes

InnerIterator iter
 The iterator of the underlying unordered_map.
 

Detailed Description

template<class Key, class Value>
class meta::util::invertible_map< Key, Value >::Iterator

The invertible_map iterator is really just a wrapper for the forward (key -> value) unordered_map iterator.

Use this iterator class the same way you'd use it on an unordered_map.

Member Function Documentation

template<class Key, class Value>
const InnerIterator::value_type& meta::util::invertible_map< Key, Value >::Iterator::operator* ( )
inline

Dereference operator.

Returns the underlying value_type, which will always be a std::pair<Key, Value>

Returns
a reference to the value of the object that is dereferenced
template<class Key, class Value>
const InnerIterator::value_type* meta::util::invertible_map< Key, Value >::Iterator::operator-> ( )
inline

Arrow operator.

Returns a pointer to the underlying value_type, which will always be a std::pair<Key, Value>

Returns
a pointer to the value of the object that is dereferenced

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