a template for a reverse iterator class More...
#include <json.hpp>
Public Types | |
using | base_iterator = std::reverse_iterator< Base > |
shortcut to the reverse iterator adapter More... | |
using | difference_type = std::ptrdiff_t |
using | reference = typename Base::reference |
the reference type for the pointed-to element More... | |
Public Member Functions | |
json_reverse_iterator (const base_iterator &it) noexcept | |
create reverse iterator from base class More... | |
json_reverse_iterator (const typename base_iterator::iterator_type &it) noexcept | |
create reverse iterator from iterator More... | |
auto | key () const -> decltype(std::declval< Base >().key()) |
return the key of an object iterator More... | |
json_reverse_iterator | operator+ (difference_type i) const |
add to iterator More... | |
json_reverse_iterator & | operator++ () |
pre-increment (++it) More... | |
json_reverse_iterator const | operator++ (int) |
post-increment (it++) More... | |
json_reverse_iterator & | operator+= (difference_type i) |
add to iterator More... | |
difference_type | operator- (const json_reverse_iterator &other) const |
return difference More... | |
json_reverse_iterator | operator- (difference_type i) const |
subtract from iterator More... | |
json_reverse_iterator & | operator-- () |
pre-decrement (–it) More... | |
json_reverse_iterator const | operator-- (int) |
post-decrement (it–) More... | |
reference | operator[] (difference_type n) const |
access to successor More... | |
reference | value () const |
return the value of an iterator More... | |
a template for a reverse iterator class
Base | the base iterator type to reverse. Valid types are iterator (to create reverse_iterator) and const_iterator (to create const_reverse_iterator). |
@requirement The class satisfies the following concept requirements:
using nlohmann::detail::json_reverse_iterator< Base >::base_iterator = std::reverse_iterator<Base> |
shortcut to the reverse iterator adapter
using nlohmann::detail::json_reverse_iterator< Base >::difference_type = std::ptrdiff_t |
using nlohmann::detail::json_reverse_iterator< Base >::reference = typename Base::reference |
the reference type for the pointed-to element
|
explicitnoexcept |
create reverse iterator from iterator
|
explicitnoexcept |
create reverse iterator from base class
auto nlohmann::detail::json_reverse_iterator< Base >::key | ( | ) | const -> decltype(std::declval<Base>().key()) |
return the key of an object iterator
Referenced by Mod.Show.SceneDetail.SceneDetail::full_key().
json_reverse_iterator nlohmann::detail::json_reverse_iterator< Base >::operator+ | ( | difference_type | i | ) | const |
add to iterator
Referenced by nlohmann::detail::json_reverse_iterator< Base >::operator[]().
json_reverse_iterator & nlohmann::detail::json_reverse_iterator< Base >::operator++ | ( | ) |
pre-increment (++it)
json_reverse_iterator const nlohmann::detail::json_reverse_iterator< Base >::operator++ | ( | int | ) |
post-increment (it++)
json_reverse_iterator & nlohmann::detail::json_reverse_iterator< Base >::operator+= | ( | difference_type | i | ) |
add to iterator
difference_type nlohmann::detail::json_reverse_iterator< Base >::operator- | ( | const json_reverse_iterator< Base > & | other | ) | const |
return difference
json_reverse_iterator nlohmann::detail::json_reverse_iterator< Base >::operator- | ( | difference_type | i | ) | const |
subtract from iterator
json_reverse_iterator & nlohmann::detail::json_reverse_iterator< Base >::operator-- | ( | ) |
pre-decrement (–it)
json_reverse_iterator const nlohmann::detail::json_reverse_iterator< Base >::operator-- | ( | int | ) |
post-decrement (it–)
reference nlohmann::detail::json_reverse_iterator< Base >::operator[] | ( | difference_type | n | ) | const |
access to successor
References nlohmann::detail::json_reverse_iterator< Base >::operator+().
reference nlohmann::detail::json_reverse_iterator< Base >::value | ( | ) | const |
return the value of an iterator
Referenced by PathScripts.PathProperty.Property::displayString(), PathScripts.PathProperty.PropertyQuantity::displayString(), PathScripts.PathSetupSheetOpPrototype.Property::displayString(), PathScripts.PathSetupSheetOpPrototype.PropertyQuantity::displayString(), Mod.PartDesign.WizardShaft.SegmentFunction.SegmentFunction::evaluate(), PathScripts.PathProperty.Property::getValue(), PathScripts.PathSetupSheetOpPrototype.Property::getValue(), Mod.PartDesign.WizardShaft.SegmentFunction.IntervalFunction::lowervalue(), PathScripts.PathProperty.Property::setValue(), and PathScripts.PathSetupSheetOpPrototype.Property::setValue().