tinyutf8 4.0.2
Unicode (UTF-8) capable std::string
Loading...
Searching...
No Matches
Public Member Functions | List of all members
tiny_utf8::const_iterator< Container, Raw > Struct Template Reference

#include <tinyutf8.h>

Inheritance diagram for tiny_utf8::const_iterator< Container, Raw >:
Inheritance graph
[legend]
Collaboration diagram for tiny_utf8::const_iterator< Container, Raw >:
Collaboration graph
[legend]

Public Member Functions

 const_iterator (typename iterator_base< Container, Raw >::difference_type index, const Container *instance) noexcept
 Ctor.
 
 const_iterator (const iterator< Container, Raw > &other) noexcept
 Ctor from non const.
 
 const_iterator (const iterator< Container, !Raw > &other) noexcept
 
 const_iterator () noexcept=default
 Default Functions.
 
 const_iterator (const const_iterator &) noexcept=default
 
const_iteratoroperator= (const const_iterator &) noexcept=default
 
iterator< Container, Raw >::value_type operator* () const noexcept
 Returns the (raw) value behind the iterator.
 
- Public Member Functions inherited from tiny_utf8::iterator< Container, Raw >
 iterator (typename iterator_base< Container, Raw >::difference_type index, Container *instance) noexcept
 Ctor.
 
 iterator (const iterator< Container, !Raw > &other) noexcept
 
 iterator () noexcept=default
 Default Functions.
 
 iterator (const iterator &) noexcept=default
 
 iterator (const const_iterator< Container, Raw > &)=delete
 Delete ctor from const iterator types.
 
 iterator (const const_reverse_iterator< Container, Raw > &)=delete
 
iteratoroperator= (const iterator &) noexcept=default
 
iteratoroperator++ () noexcept
 Increase the Iterator by one.
 
iterator operator++ (int) noexcept
 
iteratoroperator-- () noexcept
 Decrease the iterator by one.
 
iterator operator-- (int) noexcept
 
iterator operator+ (typename iterator_base< Container, Raw >::difference_type n) const noexcept
 Increase the Iterator n times.
 
iteratoroperator+= (typename iterator_base< Container, Raw >::difference_type n) noexcept
 
iterator operator- (typename iterator_base< Container, Raw >::difference_type n) const noexcept
 Decrease the Iterator n times.
 
iteratoroperator-= (typename iterator_base< Container, Raw >::difference_type n) noexcept
 
iterator::reference operator* () const noexcept
 Returns the value of the codepoint behind the iterator.
 
- Public Member Functions inherited from tiny_utf8::iterator_base< Container, Raw >
bool operator== (const iterator_base &it) const noexcept
 
bool operator!= (const iterator_base &it) const noexcept
 
 iterator_base (difference_type index, Container *instance) noexcept
 Ctor.
 
 iterator_base () noexcept=default
 Default function.
 
 iterator_base (const iterator_base &) noexcept=default
 
iterator_baseoperator= (const iterator_base &) noexcept=default
 
Containerget_instance () const noexcept
 Getter for the instance.
 
difference_type get_index () const noexcept
 
difference_type get_raw_index () const noexcept
 Get the index of the codepoint the iterator points to.
 
reference get_reference () const noexcept
 Get a reference to the codepoint the iterator points to.
 
value_type get_value () const noexcept
 Get the value that the iterator points to.
 

Additional Inherited Members

- Public Types inherited from tiny_utf8::iterator_base< Container, Raw >
typedef Container::value_type value_type
 
typedef Container::difference_type difference_type
 
typedef codepoint_reference< Container, falsereference
 
typedef voidpointer
 
typedef std::random_access_iterator_tag iterator_category
 
- Protected Member Functions inherited from tiny_utf8::iterator_base< Container, Raw >
void advance (difference_type n) noexcept
 Advance the iterator n times (negative values allowed!)
 
void increment () noexcept
 Move the iterator one codepoint ahead.
 
void decrement () noexcept
 Move the iterator one codepoint backwards.
 
- Protected Attributes inherited from tiny_utf8::iterator_base< Container, Raw >
difference_type t_index
 
Containert_instance = nullptr
 

Constructor & Destructor Documentation

◆ const_iterator() [1/5]

template<typename Container , bool Raw>
tiny_utf8::const_iterator< Container, Raw >::const_iterator ( typename iterator_base< Container, Raw >::difference_type index,
const Container * instance )
inlinenoexcept

Ctor.

◆ const_iterator() [2/5]

template<typename Container , bool Raw>
tiny_utf8::const_iterator< Container, Raw >::const_iterator ( const iterator< Container, Raw > & other)
inlinenoexcept

Ctor from non const.

◆ const_iterator() [3/5]

template<typename Container , bool Raw>
tiny_utf8::const_iterator< Container, Raw >::const_iterator ( const iterator< Container, !Raw > & other)
inlinenoexcept

◆ const_iterator() [4/5]

template<typename Container , bool Raw>
tiny_utf8::const_iterator< Container, Raw >::const_iterator ( )
defaultnoexcept

Default Functions.

◆ const_iterator() [5/5]

template<typename Container , bool Raw>
tiny_utf8::const_iterator< Container, Raw >::const_iterator ( const const_iterator< Container, Raw > & )
defaultnoexcept

Member Function Documentation

◆ operator*()

template<typename Container , bool Raw>
iterator< Container, Raw >::value_type tiny_utf8::const_iterator< Container, Raw >::operator* ( ) const
inlinenoexcept

Returns the (raw) value behind the iterator.

◆ operator=()

template<typename Container , bool Raw>
const_iterator & tiny_utf8::const_iterator< Container, Raw >::operator= ( const const_iterator< Container, Raw > & )
defaultnoexcept

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