CFx SDK Documentation 2026 SP0
Loading...
Searching...
No Matches
OdDbNextIteratorWrap< I > Class Template Reference

#include <RxIterator.h>

Public Types

using difference_type = ptrdiff_t
 
using value_type = const I*
 
using pointer = void
 
using reference = const I*
 
using iterator_category = std::input_iterator_tag
 

Public Member Functions

 OdDbNextIteratorWrap (const OdSmartPtr< I > &i)
 
reference operator* () const
 
bool operator== (const OdDbNextIteratorWrap &other) const
 
bool operator!= (const OdDbNextIteratorWrap &other) const
 
const OdDbNextIteratorWrapoperator++ ()
 

Protected Attributes

OdSmartPtr< I > m_pIterator
 

Detailed Description

template<typename I>
class OdDbNextIteratorWrap< I >

<group OdRx_Classes>

This class is an iterator wrapper to be used to implement "range-based for" loop support in collections using OdRxIterator and its descendants like OdDbDictionaryIterator. When the wrapper iterator done() function returns true, it is released and becomes equal to the null iterator representing collection end.

Definition at line 86 of file RxIterator.h.

Member Typedef Documentation

◆ difference_type

template<typename I>
using OdDbNextIteratorWrap< I >::difference_type = ptrdiff_t

Definition at line 91 of file RxIterator.h.

◆ iterator_category

template<typename I>
using OdDbNextIteratorWrap< I >::iterator_category = std::input_iterator_tag

Definition at line 95 of file RxIterator.h.

◆ pointer

template<typename I>
using OdDbNextIteratorWrap< I >::pointer = void

Definition at line 93 of file RxIterator.h.

◆ reference

template<typename I>
using OdDbNextIteratorWrap< I >::reference = const I*

Definition at line 94 of file RxIterator.h.

◆ value_type

template<typename I>
using OdDbNextIteratorWrap< I >::value_type = const I*

Definition at line 92 of file RxIterator.h.

Constructor & Destructor Documentation

◆ OdDbNextIteratorWrap()

template<typename I>
OdDbNextIteratorWrap< I >::OdDbNextIteratorWrap ( const OdSmartPtr< I > & i)
inline

Default constructor

Definition at line 99 of file RxIterator.h.

Member Function Documentation

◆ operator!=()

template<typename I>
bool OdDbNextIteratorWrap< I >::operator!= ( const OdDbNextIteratorWrap< I > & other) const
inline

Natural comparison operator.

Definition at line 120 of file RxIterator.h.

◆ operator*()

template<typename I>
reference OdDbNextIteratorWrap< I >::operator* ( ) const
inline

Dereference operator

Returns
Wrapped iterator.

Definition at line 110 of file RxIterator.h.

◆ operator++()

template<typename I>
const OdDbNextIteratorWrap & OdDbNextIteratorWrap< I >::operator++ ( )
inline

Increment operator. Moves iterator forward.

Definition at line 125 of file RxIterator.h.

◆ operator==()

template<typename I>
bool OdDbNextIteratorWrap< I >::operator== ( const OdDbNextIteratorWrap< I > & other) const
inline

Natural comparison operator.

Definition at line 115 of file RxIterator.h.

Member Data Documentation

◆ m_pIterator

template<typename I>
OdSmartPtr<I> OdDbNextIteratorWrap< I >::m_pIterator
protected

Definition at line 89 of file RxIterator.h.


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