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

Dictionary iterator that provides key access. More...

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

Public Member Functions

 KeyIterator (typename Dict::map_t::const_iterator &&iterator, typename Dict::map_t::const_iterator &&end) noexcept
 Constructor. More...
 
 KeyIterator (const typename Dict::map_t::const_iterator &iterator, const typename Dict::map_t::const_iterator &end)
 Constructor. More...
 
 KeyIterator (KeyIterator &&other) noexcept
 Move constructor. More...
 
virtual ~KeyIterator ()=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::key_type > * CloneIterator () const override
 Clones current iterator. More...
 

Detailed Description

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

Dictionary iterator that provides key access.

Template Parameters
DictDictionary class.

Constructor & Destructor Documentation

◆ KeyIterator() [1/3]

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

◆ KeyIterator() [2/3]

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

◆ KeyIterator() [3/3]

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

Move constructor.

Parameters
otherIterator to move data from.

◆ ~KeyIterator()

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

Destructor.

Member Function Documentation

◆ CloneIterator()

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

Clones current iterator.

Returns
Copy of the current iterator.

◆ DecrementIterator()

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

Moves the iterator step back.

◆ IncrementIterator()

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

Moves the iterator step forward.

◆ ShiftIteratorBy()

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