Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
utf8::unchecked::iterator< octet_iterator > Class Template Reference

#include <unchecked.h>

Public Types

using iterator_category = std::bidirectional_iterator_tag
 
using value_type = uint32_t
 
using difference_type = std::ptrdiff_t
 
using pointer = uint32_t*
 
using reference = uint32_t&
 

Public Member Functions

 iterator ()
 
 iterator (const octet_iterator &octet_it)
 
octet_iterator base () const
 
uint32_t operator* () const
 
bool operator== (const iterator &rhs) const
 
bool operator!= (const iterator &rhs) const
 
iteratoroperator++ ()
 
iterator operator++ (int)
 
iteratoroperator-- ()
 
iterator operator-- (int)
 

Detailed Description

template<typename octet_iterator>
class utf8::unchecked::iterator< octet_iterator >

Definition at line 179 of file unchecked.h.

Member Typedef Documentation

◆ difference_type

template<typename octet_iterator >
using utf8::unchecked::iterator< octet_iterator >::difference_type = std::ptrdiff_t

Definition at line 184 of file unchecked.h.

◆ iterator_category

template<typename octet_iterator >
using utf8::unchecked::iterator< octet_iterator >::iterator_category = std::bidirectional_iterator_tag

Definition at line 182 of file unchecked.h.

◆ pointer

template<typename octet_iterator >
using utf8::unchecked::iterator< octet_iterator >::pointer = uint32_t*

Definition at line 185 of file unchecked.h.

◆ reference

template<typename octet_iterator >
using utf8::unchecked::iterator< octet_iterator >::reference = uint32_t&

Definition at line 186 of file unchecked.h.

◆ value_type

template<typename octet_iterator >
using utf8::unchecked::iterator< octet_iterator >::value_type = uint32_t

Definition at line 183 of file unchecked.h.

Constructor & Destructor Documentation

◆ iterator() [1/2]

template<typename octet_iterator >
utf8::unchecked::iterator< octet_iterator >::iterator ( )
inline

Definition at line 188 of file unchecked.h.

188{}

◆ iterator() [2/2]

template<typename octet_iterator >
utf8::unchecked::iterator< octet_iterator >::iterator ( const octet_iterator< octet_iterator > & octet_it)
inlineexplicit

Definition at line 189 of file unchecked.h.

189: it(octet_it) {}

Member Function Documentation

◆ base()

template<typename octet_iterator >
octet_iterator utf8::unchecked::iterator< octet_iterator >::base ( ) const
inline

Definition at line 191 of file unchecked.h.

191{ return it; }

◆ operator!=()

template<typename octet_iterator >
bool utf8::unchecked::iterator< octet_iterator >::operator!= ( const iterator< octet_iterator > & rhs) const
inline

Definition at line 201 of file unchecked.h.

202 {
203 return !(operator == (rhs));
204 }
bool operator==(const iterator &rhs) const
Definition unchecked.h:197
Here is the call graph for this function:

◆ operator*()

template<typename octet_iterator >
uint32_t utf8::unchecked::iterator< octet_iterator >::operator* ( ) const
inline

Definition at line 192 of file unchecked.h.

193 {
194 octet_iterator temp = it;
195 return utf8::unchecked::next(temp);
196 }
uint32_t next(octet_iterator &it)
Definition unchecked.h:61
Here is the call graph for this function:

◆ operator++() [1/2]

template<typename octet_iterator >
iterator & utf8::unchecked::iterator< octet_iterator >::operator++ ( )
inline

Definition at line 205 of file unchecked.h.

206 {
207 ::std::advance(it, utf8::internal::sequence_length(it));
208 return *this;
209 }
std::iterator_traits< octet_iterator >::difference_type sequence_length(octet_iterator lead_it)
Definition core.h:100
Here is the call graph for this function:

◆ operator++() [2/2]

template<typename octet_iterator >
iterator utf8::unchecked::iterator< octet_iterator >::operator++ ( int )
inline

Definition at line 210 of file unchecked.h.

211 {
212 iterator temp = *this;
213 ::std::advance(it, utf8::internal::sequence_length(it));
214 return temp;
215 }
Here is the call graph for this function:

◆ operator--() [1/2]

template<typename octet_iterator >
iterator & utf8::unchecked::iterator< octet_iterator >::operator-- ( )
inline

Definition at line 216 of file unchecked.h.

217 {
219 return *this;
220 }
uint32_t prior(octet_iterator &it)
Definition unchecked.h:98
Here is the call graph for this function:

◆ operator--() [2/2]

template<typename octet_iterator >
iterator utf8::unchecked::iterator< octet_iterator >::operator-- ( int )
inline

Definition at line 221 of file unchecked.h.

222 {
223 iterator temp = *this;
225 return temp;
226 }
Here is the call graph for this function:

◆ operator==()

template<typename octet_iterator >
bool utf8::unchecked::iterator< octet_iterator >::operator== ( const iterator< octet_iterator > & rhs) const
inline

Definition at line 197 of file unchecked.h.

198 {
199 return (it == rhs.it);
200 }
Here is the caller graph for this function:

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