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

#include <UT_JSONValue.h>

+ Inheritance diagram for UT_JSONValue::map_traverser:

Public Types

using difference_type = exint
 
using value_type = map_traverser
 
using pointer = value_type *
 
using reference = value_type &
 
using iterator_category = std::forward_iterator_tag
 
- Public Types inherited from UT_JSONValue::traverser
using difference_type = exint
 
using value_type = UT_JSONValue
 
using pointer = value_type *
 
using reference = value_type &
 
using iterator_category = std::forward_iterator_tag
 

Public Member Functions

 map_traverser (UT_JSONValue *v, exint end_len)
 
 map_traverser (UT_JSONValue *v)
 
reference operator* ()
 
pointer operator-> ()
 
const UT_StringHolderkey () const
 
const UT_JSONValuevalue () const
 
- Public Member Functions inherited from UT_JSONValue::traverser
 traverser ()
 
 traverser (const traverser &src)
 
 ~traverser ()
 
const traverseroperator= (const traverser &src)
 
traverseroperator++ ()
 ++iterator More...
 
bool operator== (const traverser &rhs) const
 No post increment as it is harmful. More...
 
bool operator!= (const traverser &rhs) const
 
const UT_JSONValueoperator* () const
 
UT_JSONValueoperator* ()
 
const UT_JSONValueoperator-> () const
 
UT_JSONValueoperator-> ()
 
bool atEnd () const
 
void advance ()
 
UT_JSONValuegetValue ()
 
const UT_JSONValuegetValue () const
 
int64 getArrayIndex () const
 
bool getKey (UT_String &key)
 Deprecated in favour of UT_StringHolder method. More...
 
bool getLowerCaseKey (UT_String &key)
 Deprecated in favour of UT_StringHolder method. More...
 
bool getKey (UT_StringHolder &key) const
 
bool getLowerCaseKey (UT_StringHolder &key)
 Get a lower case map key (for case insensitive maps) More...
 

Detailed Description

Helper traverser to retrieve the key/value on the contained map. Structured bindings are also offered with this type.

Definition at line 741 of file UT_JSONValue.h.

Member Typedef Documentation

using UT_JSONValue::map_traverser::iterator_category = std::forward_iterator_tag

Definition at line 748 of file UT_JSONValue.h.

Definition at line 746 of file UT_JSONValue.h.

Constructor & Destructor Documentation

UT_JSONValue::map_traverser::map_traverser ( UT_JSONValue v,
exint  end_len 
)
inlineexplicit

Definition at line 750 of file UT_JSONValue.h.

UT_JSONValue::map_traverser::map_traverser ( UT_JSONValue v)
inlineexplicit

Definition at line 753 of file UT_JSONValue.h.

Member Function Documentation

const UT_StringHolder& UT_JSONValue::map_traverser::key ( ) const
inline

Definition at line 765 of file UT_JSONValue.h.

reference UT_JSONValue::map_traverser::operator* ( )
inline

Definition at line 762 of file UT_JSONValue.h.

pointer UT_JSONValue::map_traverser::operator-> ( )
inline

Definition at line 763 of file UT_JSONValue.h.

const UT_JSONValue& UT_JSONValue::map_traverser::value ( ) const
inline

Definition at line 777 of file UT_JSONValue.h.


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