CodePorting.Translator.Cs2Cpp.Framework
System::Collections::Generic::ValueIterator< Dict > Class Template Reference

Dictionary iterator that provides value access. More...

#include <keyvalue_collection.h>

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

Public Member Functions

 ValueIterator (typename Dict::map_t::const_iterator &&iterator, typename Dict::map_t::const_iterator &&end) noexcept
 Constructor. More...
 
 ValueIterator (const typename Dict::map_t::const_iterator &iterator, const typename Dict::map_t::const_iterator &end)
 Constructor. More...
 
 ValueIterator (ValueIterator &&other) noexcept
 Move constructor. More...
 
virtual ~ValueIterator ()=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
 Moves the iterator by the specified number of steps. More...
 
System::Details::VirtualizedIteratorBase< typename Dict::map_t::mapped_type > * CloneIterator () const override
 Clones current iterator. More...
 

Detailed Description

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

Dictionary iterator that provides value access.

Template Parameters
DictDictionary class.

Constructor & Destructor Documentation

◆ ValueIterator() [1/3]

template<typename Dict >
System::Collections::Generic::ValueIterator< Dict >::ValueIterator ( 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.

◆ ValueIterator() [2/3]

template<typename Dict >
System::Collections::Generic::ValueIterator< Dict >::ValueIterator ( 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.

◆ ValueIterator() [3/3]

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

Move constructor.

Parameters
otherIteratro to move data from.

◆ ~ValueIterator()

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

Destructor.

Member Function Documentation

◆ CloneIterator()

template<typename Dict >
System::Details::VirtualizedIteratorBase< typename Dict::map_t::mapped_type > * System::Collections::Generic::ValueIterator< Dict >::CloneIterator ( ) const
inlineoverride

Clones current iterator.

Returns
Copy of the current iterator.

◆ DecrementIterator()

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

Moves the iterator step back.

◆ IncrementIterator()

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

Moves the iterator step forward.

◆ ShiftIteratorBy()

template<typename Dict >
void System::Collections::Generic::ValueIterator< 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.