Blender V5.3
blender::ListBaseTIterator< T > Struct Template Reference

#include <BLI_listbase_iterator.hh>

Public Types

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

Public Member Functions

 ListBaseTIterator (T *data)
ListBaseTIterator & operator++ ()
ListBaseTIterator operator++ (int)
ListBaseTIterator & operator-- ()
ListBaseTIterator operator-- (int)
T & operator* () const

Friends

bool operator== (const ListBaseTIterator &a, const ListBaseTIterator &b)
bool operator!= (const ListBaseTIterator &a, const ListBaseTIterator &b)

Detailed Description

template<typename T>
struct blender::ListBaseTIterator< T >

An iterator for use with ListBase.

Definition at line 20 of file BLI_listbase_iterator.hh.

Member Typedef Documentation

◆ difference_type

template<typename T>
using blender::ListBaseTIterator< T >::difference_type = std::ptrdiff_t

Definition at line 24 of file BLI_listbase_iterator.hh.

◆ iterator_category

template<typename T>
using blender::ListBaseTIterator< T >::iterator_category = std::bidirectional_iterator_tag

Definition at line 22 of file BLI_listbase_iterator.hh.

◆ pointer

template<typename T>
using blender::ListBaseTIterator< T >::pointer = T *

Definition at line 25 of file BLI_listbase_iterator.hh.

◆ reference

template<typename T>
using blender::ListBaseTIterator< T >::reference = T &

Definition at line 26 of file BLI_listbase_iterator.hh.

◆ value_type

template<typename T>
using blender::ListBaseTIterator< T >::value_type = T

Definition at line 23 of file BLI_listbase_iterator.hh.

Constructor & Destructor Documentation

◆ ListBaseTIterator()

template<typename T>
blender::ListBaseTIterator< T >::ListBaseTIterator ( T * data)
inline

Definition at line 32 of file BLI_listbase_iterator.hh.

References blender::data, and T.

Referenced by operator!=, operator++(), operator++(), operator--(), operator--(), and operator==.

Member Function Documentation

◆ operator*()

template<typename T>
T & blender::ListBaseTIterator< T >::operator* ( ) const
inline

Definition at line 70 of file BLI_listbase_iterator.hh.

References T.

◆ operator++() [1/2]

template<typename T>
ListBaseTIterator & blender::ListBaseTIterator< T >::operator++ ( )
inline

Definition at line 34 of file BLI_listbase_iterator.hh.

References ListBaseTIterator(), and T.

◆ operator++() [2/2]

template<typename T>
ListBaseTIterator blender::ListBaseTIterator< T >::operator++ ( int )
inline

Definition at line 40 of file BLI_listbase_iterator.hh.

References ListBaseTIterator().

◆ operator--() [1/2]

template<typename T>
ListBaseTIterator & blender::ListBaseTIterator< T >::operator-- ( )
inline

Definition at line 47 of file BLI_listbase_iterator.hh.

References ListBaseTIterator(), and T.

◆ operator--() [2/2]

template<typename T>
ListBaseTIterator blender::ListBaseTIterator< T >::operator-- ( int )
inline

Definition at line 53 of file BLI_listbase_iterator.hh.

References ListBaseTIterator().

◆ operator!=

template<typename T>
bool operator!= ( const ListBaseTIterator< T > & a,
const ListBaseTIterator< T > & b )
friend

Definition at line 65 of file BLI_listbase_iterator.hh.

References b, and ListBaseTIterator().

◆ operator==

template<typename T>
bool operator== ( const ListBaseTIterator< T > & a,
const ListBaseTIterator< T > & b )
friend

Definition at line 60 of file BLI_listbase_iterator.hh.

References b, and ListBaseTIterator().


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