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

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

Inherited by System::IEnumerableTupleAdapter< TT, Guard, T >.

Public Types

using value_type = TT
 Type of elements. More...
 
using const_iterator = IEnumeratorIterator< TT, T >
 Iterator type. More...
 

Public Member Functions

 IEnumerableAdapter ()
 Constructs empty wrapper. More...
 
 IEnumerableAdapter (const System::SharedPtr< System::Collections::Generic::IEnumerable< T >> &data)
 Constructs wrapper around existing C#-style container. More...
 
IEnumeratorIterator< TT, T > begin () const
 Iteration begin. More...
 
IEnumeratorIterator< TT, T > end () const
 Iteration end. More...
 

Detailed Description

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

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

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

Member Typedef Documentation

◆ const_iterator

template<typename TT, typename T>
using System::IEnumerableAdapter< TT, T >::const_iterator = IEnumeratorIterator<TT, T>

Iterator type.

◆ value_type

template<typename TT, typename T>
using System::IEnumerableAdapter< TT, T >::value_type = TT

Type of elements.

Constructor & Destructor Documentation

◆ IEnumerableAdapter() [1/2]

template<typename TT, typename T>
System::IEnumerableAdapter< TT, T >::IEnumerableAdapter ( )
inline

Constructs empty wrapper.

◆ IEnumerableAdapter() [2/2]

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

Constructs wrapper around existing C#-style container.

Parameters
dataContainer to wrap.

Member Function Documentation

◆ begin()

template<typename TT, typename T>
IEnumeratorIterator<TT, T> System::IEnumerableAdapter< TT, T >::begin ( ) const
inline

Iteration begin.

Returns
Iterator pointing the first element available.

◆ end()

template<typename TT, typename T>
IEnumeratorIterator<TT, T> System::IEnumerableAdapter< TT, T >::end ( ) const
inline

Iteration end.

Returns
Iterator pointing after the last element available.