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 (IterType begin, IterType end)
bool operator== (ListIterator const &other) const
reference operator* () const
pointer operator-> () const
ListIterator & operator++ ()
ListIterator operator++ (int)

Private Types

using IterType = boost::string_ref::const_iterator

Private Member Functions

template<class = void>
void increment ()

Private Attributes

IterType it_
IterType 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 206 of file rfc2616.h.

Member Typedef Documentation

◆ IterType

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

Definition at line 208 of file rfc2616.h.

◆ value_type

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

Definition at line 215 of file rfc2616.h.

◆ pointer

Definition at line 216 of file rfc2616.h.

◆ reference

Definition at line 217 of file rfc2616.h.

◆ difference_type

◆ iterator_category

Constructor & Destructor Documentation

◆ ListIterator()

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

Definition at line 221 of file rfc2616.h.

Member Function Documentation

◆ operator==()

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

Definition at line 228 of file rfc2616.h.

◆ operator*()

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

Definition at line 234 of file rfc2616.h.

◆ operator->()

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

Definition at line 240 of file rfc2616.h.

◆ operator++() [1/2]

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

Definition at line 246 of file rfc2616.h.

◆ operator++() [2/2]

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

Definition at line 253 of file rfc2616.h.

◆ increment()

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

Definition at line 268 of file rfc2616.h.

Member Data Documentation

◆ it_

IterType beast::rfc2616::ListIterator::it_
private

Definition at line 210 of file rfc2616.h.

◆ end_

IterType beast::rfc2616::ListIterator::end_
private

Definition at line 211 of file rfc2616.h.

◆ value_

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

Definition at line 212 of file rfc2616.h.