Pigweed
C/C++ API Reference
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Friends | List of all members
pw::multibuf::MultiBuf::const_iterator Class Reference

A const std::forward_iterator over the bytes of a MultiBuf. More...

Public Types

using value_type = std::byte
 
using difference_type = std::ptrdiff_t
 
using reference = const std::byte &
 
using pointer = const std::byte *
 
using iterator_category = std::forward_iterator_tag
 

Public Member Functions

reference operator* () const
 
pointer operator-> () const
 
const_iteratoroperator++ ()
 
const_iterator operator++ (int)
 
const_iterator operator+ (size_t rhs) const
 
const_iteratoroperator+= (size_t advance)
 
constexpr bool operator== (const const_iterator &other) const
 
constexpr bool operator!= (const const_iterator &other) const
 
constexpr const Chunkchunk () const
 Returns the current Chunk pointed to by this iterator.
 
constexpr size_t byte_index () const
 

Friends

class MultiBuf
 

Detailed Description

A const std::forward_iterator over the bytes of a MultiBuf.

Member Function Documentation

◆ byte_index()

constexpr size_t pw::multibuf::MultiBuf::const_iterator::byte_index ( ) const
inlineconstexpr

Returns the index of the byte pointed to by this iterator within the current Chunk.

Friends And Related Function Documentation

◆ MultiBuf

friend class MultiBuf
friend

MultiBuf interface with mutable data and the option of adding layered data views.


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