Blender  V3.3
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 71 of file BLI_index_range.hh.

Member Typedef Documentation

◆ difference_type

Definition at line 77 of file BLI_index_range.hh.

◆ iterator_category

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

Definition at line 73 of file BLI_index_range.hh.

◆ pointer

Definition at line 75 of file BLI_index_range.hh.

◆ reference

Definition at line 76 of file BLI_index_range.hh.

◆ value_type

Definition at line 74 of file BLI_index_range.hh.

Constructor & Destructor Documentation

◆ Iterator()

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

Definition at line 83 of file BLI_index_range.hh.

Member Function Documentation

◆ operator*()

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

Definition at line 110 of file BLI_index_range.hh.

◆ operator++() [1/2]

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

Definition at line 87 of file BLI_index_range.hh.

◆ operator++() [2/2]

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

Definition at line 93 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 100 of file BLI_index_range.hh.

◆ operator==

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

Definition at line 105 of file BLI_index_range.hh.


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