icu::Locale::ConvertingIterator< Iter, Conv > Class Template Reference

A generic Locale iterator implementation over Locale input iterators. More...

#include <locid.h>

Inheritance diagram for icu::Locale::ConvertingIterator< Iter, Conv >:
icu::Locale::Iterator icu::UMemory

Public Member Functions

 ConvertingIterator (Iter begin, Iter end, Conv converter)
 Constructs an iterator from a begin/end range.
UBool hasNext () const override
const Localenext () override

Detailed Description

template<typename Iter, typename Conv>
class icu::Locale::ConvertingIterator< Iter, Conv >

A generic Locale iterator implementation over Locale input iterators.

Calls the converter to convert each *begin to a const Locale &.

Draft:
This API may be changed in the future versions and was introduced in ICU 65

Definition at line 1072 of file locid.h.


Constructor & Destructor Documentation

template<typename Iter , typename Conv >
icu::Locale::ConvertingIterator< Iter, Conv >::ConvertingIterator ( Iter  begin,
Iter  end,
Conv  converter 
) [inline]

Constructs an iterator from a begin/end range.

Each of the iterator parameter values must be an input iterator whose value the converter converts to const Locale &.

Parameters:
begin Start of range.
end Exclusive end of range.
converter Converter from *begin to const Locale & or compatible.
Draft:
This API may be changed in the future versions and was introduced in ICU 65

Definition at line 1084 of file locid.h.


Member Function Documentation

template<typename Iter , typename Conv >
UBool icu::Locale::ConvertingIterator< Iter, Conv >::hasNext (  )  const [inline, override, virtual]
Returns:
TRUE if next() can be called again.
Draft:
This API may be changed in the future versions and was introduced in ICU 65

Implements icu::Locale::Iterator.

Definition at line 1091 of file locid.h.

template<typename Iter , typename Conv >
const Locale& icu::Locale::ConvertingIterator< Iter, Conv >::next ( void   )  [inline, override, virtual]
Returns:
the next locale.
Draft:
This API may be changed in the future versions and was introduced in ICU 65

Implements icu::Locale::Iterator.

Definition at line 1097 of file locid.h.


The documentation for this class was generated from the following file:

Generated on 3 Aug 2020 for ICU 67.1 by  doxygen 1.6.1