|
Fast Methods for Cosmological Simulations
FastSim serves as a tool for quick N-body simulations in modified gravity.
|
helper class for iteration More...
Public Types | |
| using | difference_type = std::ptrdiff_t |
| using | value_type = iteration_proxy_internal |
| using | pointer = iteration_proxy_internal * |
| using | reference = iteration_proxy_internal & |
| using | iterator_category = std::input_iterator_tag |
Public Member Functions | |
| iteration_proxy_internal (IteratorType it) noexcept | |
| iteration_proxy_internal & | operator* () |
| dereference operator (needed for range-based for) More... | |
| iteration_proxy_internal & | operator++ () |
| increment operator (needed for range-based for) More... | |
| bool | operator== (const iteration_proxy_internal &o) const noexcept |
| equality operator (needed for InputIterator) More... | |
| bool | operator!= (const iteration_proxy_internal &o) const noexcept |
| inequality operator (needed for range-based for) More... | |
| const std::string & | key () const |
| return key of the iterator More... | |
| IteratorType::reference | value () const |
| return value of the iterator More... | |
Private Attributes | |
| IteratorType | anchor |
| the iterator More... | |
| std::size_t | array_index = 0 |
| an index for arrays (used to create key names) More... | |
| std::size_t | array_index_last = 0 |
| last stringified array index More... | |
| std::string | array_index_str = "0" |
| a string representation of the array index More... | |
| const std::string | empty_str = "" |
| an empty string (to return a reference for primitive values) More... | |
helper class for iteration
| using nlohmann::detail::iteration_proxy< IteratorType >::iteration_proxy_internal::difference_type = std::ptrdiff_t |
| using nlohmann::detail::iteration_proxy< IteratorType >::iteration_proxy_internal::iterator_category = std::input_iterator_tag |
| using nlohmann::detail::iteration_proxy< IteratorType >::iteration_proxy_internal::pointer = iteration_proxy_internal* |
| using nlohmann::detail::iteration_proxy< IteratorType >::iteration_proxy_internal::reference = iteration_proxy_internal& |
| using nlohmann::detail::iteration_proxy< IteratorType >::iteration_proxy_internal::value_type = iteration_proxy_internal |
|
inlineexplicitnoexcept |
Definition at line 1632 of file json.hpp.
|
inline |
return key of the iterator
Definition at line 1662 of file json.hpp.
References nlohmann::detail::array, and nlohmann::detail::object.
|
inlinenoexcept |
inequality operator (needed for range-based for)
Definition at line 1656 of file json.hpp.
|
inline |
|
inline |
increment operator (needed for range-based for)
Definition at line 1641 of file json.hpp.
|
inlinenoexcept |
equality operator (needed for InputIterator)
Definition at line 1650 of file json.hpp.
|
inline |
return value of the iterator
Definition at line 1690 of file json.hpp.
|
private |
|
private |
|
mutableprivate |
|
mutableprivate |
|
private |