idfxx 1.0.0
Modern C++23 components for ESP-IDF
Loading...
Searching...
No Matches
idfxx::net::netconn::buffer::segment_view::iterator Class Reference

Forward iterator over a buffer's data segments. More...

#include <idfxx_net/include/idfxx/net/netconn/buffer.hpp>

Public Types

using value_type = std::span< const std::byte >
 
using difference_type = std::ptrdiff_t
 
using iterator_concept = std::forward_iterator_tag
 
using iterator_category = std::input_iterator_tag
 

Public Member Functions

 iterator () noexcept=default
 Constructs a past-the-end iterator.
 
value_type operator* () const noexcept
 Returns the current segment as a span.
 
iteratoroperator++ () noexcept
 Advances to the next segment.
 
iterator operator++ (int) noexcept
 Advances to the next segment, returning the prior position.
 
bool operator== (const iterator &other) const noexcept
 Compares two iterators; equal iff they reference the same segment.
 

Friends

class segment_view
 

Detailed Description

Forward iterator over a buffer's data segments.

Definition at line 118 of file buffer.hpp.

Member Typedef Documentation

◆ difference_type

◆ iterator_category

Definition at line 125 of file buffer.hpp.

◆ iterator_concept

Definition at line 122 of file buffer.hpp.

◆ value_type

Constructor & Destructor Documentation

◆ iterator()

idfxx::net::netconn::buffer::segment_view::iterator::iterator ( )
defaultnoexcept

Constructs a past-the-end iterator.

Member Function Documentation

◆ operator*()

value_type idfxx::net::netconn::buffer::segment_view::iterator::operator* ( ) const
noexcept

Returns the current segment as a span.

◆ operator++() [1/2]

iterator & idfxx::net::netconn::buffer::segment_view::iterator::operator++ ( )
noexcept

Advances to the next segment.

◆ operator++() [2/2]

iterator idfxx::net::netconn::buffer::segment_view::iterator::operator++ ( int  )
inlinenoexcept

Advances to the next segment, returning the prior position.

Definition at line 137 of file buffer.hpp.

◆ operator==()

bool idfxx::net::netconn::buffer::segment_view::iterator::operator== ( const iterator other) const
inlinenoexcept

Compares two iterators; equal iff they reference the same segment.

Definition at line 144 of file buffer.hpp.

Friends And Related Symbol Documentation

◆ segment_view

Definition at line 147 of file buffer.hpp.


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