Blender  V2.93
Public Types | Public Member Functions | Friends | List of all members
blender::IndexRange::Iterator Class Reference

#include <BLI_index_range.hh>

Public Types

using iterator_category = std::forward_iterator_tag
 
using value_type = int64_t
 
using pointer = const int64_t *
 
using reference = const int64_t &
 
using difference_type = std::ptrdiff_t
 

Public Member Functions

constexpr Iterator (int64_t current)
 
constexpr Iteratoroperator++ ()
 
constexpr Iterator operator++ (int) const
 
constexpr int64_t operator* () const
 

Friends

constexpr friend bool operator!= (const Iterator &a, const Iterator &b)
 
constexpr friend bool operator== (const Iterator &a, const Iterator &b)
 

Detailed Description

Definition at line 84 of file BLI_index_range.hh.

Member Typedef Documentation

◆ difference_type

Definition at line 90 of file BLI_index_range.hh.

◆ iterator_category

using blender::IndexRange::Iterator::iterator_category = std::forward_iterator_tag

Definition at line 86 of file BLI_index_range.hh.

◆ pointer

Definition at line 88 of file BLI_index_range.hh.

◆ reference

Definition at line 89 of file BLI_index_range.hh.

◆ value_type

Definition at line 87 of file BLI_index_range.hh.

Constructor & Destructor Documentation

◆ Iterator()

constexpr blender::IndexRange::Iterator::Iterator ( int64_t  current)
inlineexplicitconstexpr

Definition at line 96 of file BLI_index_range.hh.

Member Function Documentation

◆ operator*()

constexpr int64_t blender::IndexRange::Iterator::operator* ( ) const
inlineconstexpr

Definition at line 123 of file BLI_index_range.hh.

◆ operator++() [1/2]

constexpr Iterator& blender::IndexRange::Iterator::operator++ ( )
inlineconstexpr

Definition at line 100 of file BLI_index_range.hh.

◆ operator++() [2/2]

constexpr Iterator blender::IndexRange::Iterator::operator++ ( int  ) const
inlineconstexpr

Definition at line 106 of file BLI_index_range.hh.

Friends And Related Function Documentation

◆ operator!=

constexpr friend bool operator!= ( const Iterator a,
const Iterator b 
)
friend

Definition at line 113 of file BLI_index_range.hh.

◆ operator==

constexpr friend bool operator== ( const Iterator a,
const Iterator b 
)
friend

Definition at line 118 of file BLI_index_range.hh.


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