rippled
Public Types | Public Member Functions | Private Types | Private Member Functions | Private Attributes | List of all members
beast::rfc2616::list_iterator Class Reference

Iterates through a comma separated list. More...

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

 list_iterator (iter_type begin, iter_type end)
 
bool operator== (list_iterator const &other) const
 
bool operator!= (list_iterator const &other) const
 
reference operator* () const
 
pointer operator-> () const
 
list_iteratoroperator++ ()
 
list_iterator 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 221 of file rfc2616.h.

Member Typedef Documentation

◆ iter_type

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

Definition at line 223 of file rfc2616.h.

◆ value_type

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

Definition at line 230 of file rfc2616.h.

◆ pointer

Definition at line 231 of file rfc2616.h.

◆ reference

Definition at line 232 of file rfc2616.h.

◆ difference_type

Definition at line 233 of file rfc2616.h.

◆ iterator_category

Definition at line 234 of file rfc2616.h.

Constructor & Destructor Documentation

◆ list_iterator()

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

Definition at line 236 of file rfc2616.h.

Member Function Documentation

◆ operator==()

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

Definition at line 243 of file rfc2616.h.

◆ operator!=()

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

Definition at line 250 of file rfc2616.h.

◆ operator*()

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

Definition at line 256 of file rfc2616.h.

◆ operator->()

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

Definition at line 262 of file rfc2616.h.

◆ operator++() [1/2]

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

Definition at line 268 of file rfc2616.h.

◆ operator++() [2/2]

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

Definition at line 275 of file rfc2616.h.

◆ increment()

template<class >
void beast::rfc2616::list_iterator::increment
private

Definition at line 290 of file rfc2616.h.

Member Data Documentation

◆ it_

iter_type beast::rfc2616::list_iterator::it_
private

Definition at line 225 of file rfc2616.h.

◆ end_

iter_type beast::rfc2616::list_iterator::end_
private

Definition at line 226 of file rfc2616.h.

◆ value_

boost::string_ref beast::rfc2616::list_iterator::value_
private

Definition at line 227 of file rfc2616.h.