Asposecpplib
System::IEnumeratorIterator< TT, T > Class Template Reference

Adapter to use IEnumerator in STL-like iterations. Used by NUnit TestCaseSource attribute translation. More...

Inherits iterator< std::input_iterator_tag, TT >.

Public Member Functions

 IEnumeratorIterator (const System::SharedPtr< System::Collections::Generic::IEnumerator< T >> &data)
 Constructor. More...
 
 IEnumeratorIterator (const IEnumeratorIterator &o)
 Copy constructor. More...
 
IEnumeratorIteratoroperator++ ()
 C++-style iteration wrapper. More...
 
TT operator* ()
 C++-style iterator dereference. More...
 
bool operator== (const IEnumeratorIterator &o) const
 Iterator comparison. More...
 
bool operator!= (const IEnumeratorIterator &o) const
 Iterator comparison. More...
 

Detailed Description

template<typename TT, typename T>
class System::IEnumeratorIterator< TT, T >

Adapter to use IEnumerator in STL-like iterations. Used by NUnit TestCaseSource attribute translation.

Template Parameters
TTRelease type of test method arguments.
TSource type of test method arguments.

Constructor & Destructor Documentation

◆ IEnumeratorIterator() [1/2]

template<typename TT , typename T >
System::IEnumeratorIterator< TT, T >::IEnumeratorIterator ( const System::SharedPtr< System::Collections::Generic::IEnumerator< T >> &  data)
inline

Constructor.

Parameters
dataContainer to iterate through.

◆ IEnumeratorIterator() [2/2]

template<typename TT , typename T >
System::IEnumeratorIterator< TT, T >::IEnumeratorIterator ( const IEnumeratorIterator< TT, T > &  o)
inline

Copy constructor.

Parameters
oIterator to copy position from.

Member Function Documentation

◆ operator!=()

template<typename TT , typename T >
bool System::IEnumeratorIterator< TT, T >::operator!= ( const IEnumeratorIterator< TT, T > &  o) const
inline

Iterator comparison.

Parameters
oiterator to compare with.
Returns
False if iterators point same enumerator or both had finished iteration, true otherwise.

◆ operator*()

template<typename TT , typename T >
TT System::IEnumeratorIterator< TT, T >::operator* ( )
inline

C++-style iterator dereference.

Returns
Current element value.

◆ operator++()

template<typename TT , typename T >
IEnumeratorIterator& System::IEnumeratorIterator< TT, T >::operator++ ( )
inline

C++-style iteration wrapper.

Returns
Self reference.

◆ operator==()

template<typename TT , typename T >
bool System::IEnumeratorIterator< TT, T >::operator== ( const IEnumeratorIterator< TT, T > &  o) const
inline

Iterator comparison.

Parameters
oiterator to compare with.
Returns
True if iterators point same enumerator or both had finished iteration, false otherwise.