Gamedev Framework (gf)  0.12.0
A C++14 framework for 2D games
Public Types | Public Member Functions | Public Attributes | List of all members
gf::CodepointRange::Iterator Struct Reference

#include <gf/StringUtils.h>

Public Types

using difference_type = std::ptrdiff_t
 
using value_type = char32_t
 
using pointer = value_type
 
using reference = value_type
 
using iterator_category = std::forward_iterator_tag
 

Public Member Functions

void swap (Iterator &other) noexcept
 Swap the iterator with another iterator. More...
 
constexpr reference operator* () const noexcept
 Dereference operator. More...
 
constexpr pointer operator-> () const noexcept
 Pointer operator. More...
 
constexpr Iteratoroperator++ () noexcept
 Increment operator (prefix) More...
 
constexpr Iterator operator++ (int) noexcept
 Increment operator (postfix) More...
 
constexpr bool operator!= (const Iterator &other) const noexcept
 Inequality operator. More...
 
constexpr bool operator== (const Iterator &other) const noexcept
 Equality operator. More...
 

Public Attributes

const char * current
 

Member Typedef Documentation

◆ difference_type

◆ iterator_category

using gf::CodepointRange::Iterator::iterator_category = std::forward_iterator_tag

◆ pointer

◆ reference

◆ value_type

Member Function Documentation

◆ operator!=()

constexpr bool gf::CodepointRange::Iterator::operator!= ( const Iterator other) const
inlinenoexcept

Inequality operator.

Parameters
otherAnother iterator
Returns
True if the iterator are different

◆ operator*()

constexpr reference gf::CodepointRange::Iterator::operator* ( ) const
inlinenoexcept

Dereference operator.

Returns
The position

◆ operator++() [1/2]

constexpr Iterator& gf::CodepointRange::Iterator::operator++ ( )
inlinenoexcept

Increment operator (prefix)

Returns
The iterator

◆ operator++() [2/2]

constexpr Iterator gf::CodepointRange::Iterator::operator++ ( int  )
inlinenoexcept

Increment operator (postfix)

Returns
The iterator

◆ operator->()

constexpr pointer gf::CodepointRange::Iterator::operator-> ( ) const
inlinenoexcept

Pointer operator.

Returns
The position

◆ operator==()

constexpr bool gf::CodepointRange::Iterator::operator== ( const Iterator other) const
inlinenoexcept

Equality operator.

Parameters
otherAnother iterator
Returns
True if the iterator are the same

◆ swap()

void gf::CodepointRange::Iterator::swap ( Iterator other)
inlinenoexcept

Swap the iterator with another iterator.

Member Data Documentation

◆ current

const char* gf::CodepointRange::Iterator::current