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 211 of file UT_JSONValueMap.h.

Member Typedef Documentation

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

Definition at line 253 of file UT_JSONValueMap.h.

Definition at line 251 of file UT_JSONValueMap.h.

Constructor & Destructor Documentation

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

Definition at line 214 of file UT_JSONValueMap.h.

Member Function Documentation

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

Definition at line 238 of file UT_JSONValueMap.h.

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

Definition at line 239 of file UT_JSONValueMap.h.

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

Definition at line 215 of file UT_JSONValueMap.h.

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

Definition at line 221 of file UT_JSONValueMap.h.

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

Definition at line 226 of file UT_JSONValueMap.h.

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

Definition at line 232 of file UT_JSONValueMap.h.

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

Definition at line 243 of file UT_JSONValueMap.h.

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

Definition at line 237 of file UT_JSONValueMap.h.


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