HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
UT_JSONValueMap::iterator Class Reference

#include <UT_JSONValueMap.h>

Public Types

using difference_type = exint
 
using value_type = BaseMap::value_type
 
using pointer = const exint *
 
using reference = const exint &
 
using iterator_category = std::forward_iterator_tag
 

Public Member Functions

 iterator (exint _num, UT_JSONValueMap *_obj)
 
iteratoroperator++ ()
 
iterator operator++ (int)
 
iteratoroperator-- ()
 
iterator operator-- (int)
 
bool operator== (const iterator &other) const
 
bool operator!= (const iterator &other) const
 
BaseMap::value_typeoperator* ()
 
BaseMap::value_typeoperator-> ()
 

Detailed Description

Iterator functionality so we can utilize C++11 range base for loops. C++17 has deprecated inheritance from std::iterator. We could easily promote myMap's iterators here but then we wouldn't respect the 'append' order.

Definition at line 181 of file UT_JSONValueMap.h.

Member Typedef Documentation

using UT_JSONValueMap::iterator::iterator_category = std::forward_iterator_tag

Definition at line 223 of file UT_JSONValueMap.h.

Definition at line 221 of file UT_JSONValueMap.h.

Constructor & Destructor Documentation

UT_JSONValueMap::iterator::iterator ( exint  _num,
UT_JSONValueMap _obj 
)
inline

Definition at line 184 of file UT_JSONValueMap.h.

Member Function Documentation

bool UT_JSONValueMap::iterator::operator!= ( const iterator other) const
inline

Definition at line 208 of file UT_JSONValueMap.h.

BaseMap::value_type& UT_JSONValueMap::iterator::operator* ( )
inline

Definition at line 209 of file UT_JSONValueMap.h.

iterator& UT_JSONValueMap::iterator::operator++ ( )
inline

Definition at line 185 of file UT_JSONValueMap.h.

iterator UT_JSONValueMap::iterator::operator++ ( int  )
inline

Definition at line 191 of file UT_JSONValueMap.h.

iterator& UT_JSONValueMap::iterator::operator-- ( )
inline

Definition at line 196 of file UT_JSONValueMap.h.

iterator UT_JSONValueMap::iterator::operator-- ( int  )
inline

Definition at line 202 of file UT_JSONValueMap.h.

BaseMap::value_type* UT_JSONValueMap::iterator::operator-> ( )
inline

Definition at line 213 of file UT_JSONValueMap.h.

bool UT_JSONValueMap::iterator::operator== ( const iterator other) const
inline

Definition at line 207 of file UT_JSONValueMap.h.


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