System::Collections::Generic::DictionaryIterator< Dict > Class Template Reference

Inherits System::Details::NativeIteratorWrapperBase< Dict::KeyValuePairType, Dict::map_t::const_iterator >, and System::Details::IteratorPointerUpdater< Dict::KeyValuePairType, false >.

Public Member Functions

 DictionaryIterator (typename Dict::map_t::const_iterator &&iterator, typename Dict::map_t::const_iterator &&end) noexcept
 
 DictionaryIterator (const typename Dict::map_t::const_iterator &iterator, const typename Dict::map_t::const_iterator &end)
 
 DictionaryIterator (DictionaryIterator &&other) noexcept
 
virtual ~DictionaryIterator ()=default
 Destructor. More...
 
void IncrementIterator () override
 Moves the iterator step forward. More...
 
void DecrementIterator () override
 Moves the iterator step back. More...
 
void ShiftIteratorBy (std::ptrdiff_t offset) override
 
System::Details::VirtualizedIteratorBase< typename Dict::KeyValuePairType > * CloneIterator () const override
 

Detailed Description

template<typename Dict>
class System::Collections::Generic::DictionaryIterator< Dict >

Dictionary iterator that provides KeyValuePair notation.

Template Parameters
DictDictionary class.

Constructor & Destructor Documentation

◆ DictionaryIterator() [1/3]

template<typename Dict >
System::Collections::Generic::DictionaryIterator< Dict >::DictionaryIterator ( typename Dict::map_t::const_iterator &&  iterator,
typename Dict::map_t::const_iterator &&  end 
)
inlinenoexcept

Constructor.

Parameters
iteratorIterator to hold.
endIterator to the end of the container.

◆ DictionaryIterator() [2/3]

template<typename Dict >
System::Collections::Generic::DictionaryIterator< Dict >::DictionaryIterator ( const typename Dict::map_t::const_iterator &  iterator,
const typename Dict::map_t::const_iterator &  end 
)
inline

Constructor.

Parameters
iteratorIterator to hold.
endIterator to the end of the container.

◆ DictionaryIterator() [3/3]

template<typename Dict >
System::Collections::Generic::DictionaryIterator< Dict >::DictionaryIterator ( DictionaryIterator< Dict > &&  other)
inlinenoexcept

Move constructor.

Parameters
otherIteratro to move data from.

◆ ~DictionaryIterator()

template<typename Dict >
virtual System::Collections::Generic::DictionaryIterator< Dict >::~DictionaryIterator ( )
virtualdefault

Destructor.

Member Function Documentation

◆ CloneIterator()

template<typename Dict >
System::Details::VirtualizedIteratorBase<typename Dict::KeyValuePairType>* System::Collections::Generic::DictionaryIterator< Dict >::CloneIterator ( ) const
inlineoverride

Clones current iterator.

Returns
Copy of the current iterator.

◆ DecrementIterator()

template<typename Dict >
void System::Collections::Generic::DictionaryIterator< Dict >::DecrementIterator ( )
inlineoverride

Moves the iterator step back.

◆ IncrementIterator()

template<typename Dict >
void System::Collections::Generic::DictionaryIterator< Dict >::IncrementIterator ( )
inlineoverride

Moves the iterator step forward.

◆ ShiftIteratorBy()

template<typename Dict >
void System::Collections::Generic::DictionaryIterator< Dict >::ShiftIteratorBy ( std::ptrdiff_t  offset)
inlineoverride

Moves the iterator by the specified number of steps.

Parameters
offsetNumber of steps to move the iterator by.