xrpld
Loading...
Searching...
No Matches
beast::rfc2616::ListIterator Class Reference

Iterates through a comma separated list. More...

#include <rfc2616.h>

Public Types

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

Public Member Functions

 ListIterator (iter_type begin, iter_type end)
bool operator== (ListIterator const &other) const
bool operator!= (ListIterator const &other) const
reference operator* () const
pointer operator-> () const
ListIteratoroperator++ ()
ListIterator operator++ (int)

Private Types

using iter_type = boost::string_ref::const_iterator

Private Member Functions

template<class = void>
void increment ()

Private Attributes

iter_type it_
iter_type end_
boost::string_ref value_

Detailed Description

Iterates through a comma separated list.

Meets the requirements of ForwardIterator.

List defined in rfc2616 2.1.

Note
Values returned may contain backslash escapes.

Definition at line 199 of file rfc2616.h.

Member Typedef Documentation

◆ iter_type

using beast::rfc2616::ListIterator::iter_type = boost::string_ref::const_iterator
private

Definition at line 201 of file rfc2616.h.

◆ value_type

using beast::rfc2616::ListIterator::value_type = boost::string_ref

Definition at line 208 of file rfc2616.h.

◆ pointer

Definition at line 209 of file rfc2616.h.

◆ reference

Definition at line 210 of file rfc2616.h.

◆ difference_type

◆ iterator_category

Constructor & Destructor Documentation

◆ ListIterator()

beast::rfc2616::ListIterator::ListIterator ( iter_type begin,
iter_type end )

Definition at line 214 of file rfc2616.h.

Member Function Documentation

◆ operator==()

bool beast::rfc2616::ListIterator::operator== ( ListIterator const & other) const

Definition at line 221 of file rfc2616.h.

◆ operator!=()

bool beast::rfc2616::ListIterator::operator!= ( ListIterator const & other) const

Definition at line 227 of file rfc2616.h.

◆ operator*()

reference beast::rfc2616::ListIterator::operator* ( ) const

Definition at line 233 of file rfc2616.h.

◆ operator->()

pointer beast::rfc2616::ListIterator::operator-> ( ) const

Definition at line 239 of file rfc2616.h.

◆ operator++() [1/2]

ListIterator & beast::rfc2616::ListIterator::operator++ ( )

Definition at line 245 of file rfc2616.h.

◆ operator++() [2/2]

ListIterator beast::rfc2616::ListIterator::operator++ ( int )

Definition at line 252 of file rfc2616.h.

◆ increment()

template<class>
void beast::rfc2616::ListIterator::increment ( )
private

Definition at line 267 of file rfc2616.h.

Member Data Documentation

◆ it_

iter_type beast::rfc2616::ListIterator::it_
private

Definition at line 203 of file rfc2616.h.

◆ end_

iter_type beast::rfc2616::ListIterator::end_
private

Definition at line 204 of file rfc2616.h.

◆ value_

boost::string_ref beast::rfc2616::ListIterator::value_
private

Definition at line 205 of file rfc2616.h.