sparrow 1.0.0
|
Iterator for traversing elements within a list_value. More...
#include <list_value.hpp>
Public Types | |
using | self_type = list_value_iterator |
using | base_type = iterator_base<list_value_iterator, list_value, std::random_access_iterator_tag> |
using | size_type = size_t |
Public Member Functions | |
list_value_iterator () noexcept=default | |
Default constructor creating an invalid iterator. | |
list_value_iterator (const list_value *layout, size_type index) | |
Constructs iterator for the given list and index. | |
Friends | |
class | iterator_access |
Iterator for traversing elements within a list_value.
This iterator provides random access traversal over the elements contained within a list_value object. It implements the full random access iterator interface, allowing efficient element access, arithmetic operations, and comparison operations.
The iterator maintains a pointer to the parent list_value and an index into the flattened array data, providing O(1) access to any element within the list bounds.
Definition at line 46 of file list_value.hpp.
using sparrow::list_value_iterator::base_type = iterator_base<list_value_iterator, list_value, std::random_access_iterator_tag> |
Definition at line 55 of file list_value.hpp.
Definition at line 54 of file list_value.hpp.
using sparrow::list_value_iterator::size_type = size_t |
Definition at line 56 of file list_value.hpp.
|
defaultnoexcept |
Default constructor creating an invalid iterator.
sparrow::list_value_iterator::list_value_iterator | ( | const list_value * | layout, |
size_type | index ) |
Constructs iterator for the given list and index.
layout | Pointer to the parent list_value |
index | Index within the list (relative to list start) |
|
friend |
Definition at line 153 of file list_value.hpp.