LLVM 22.0.0git
llvm::mapped_iterator_base< DerivedT, ItTy, ReferenceTy > Class Template Reference

A base type of mapped iterator, that is useful for building derived iterators that do not need/want to store the map function (as in mapped_iterator). More...

#include "llvm/ADT/STLExtras.h"

Inheritance diagram for llvm::mapped_iterator_base< DerivedT, ItTy, ReferenceTy >:
[legend]

Public Types

using BaseT = mapped_iterator_base
Public Types inherited from llvm::iterator_adaptor_base< DerivedT, ItTy, std::iterator_traits< ItTy >::iterator_category, std::remove_reference_t< ReferenceTy >, std::iterator_traits< ItTy >::difference_type, std::remove_reference_t< ReferenceTy > *, ReferenceTy >
using difference_type
Public Types inherited from llvm::iterator_facade_base< DerivedT, std::iterator_traits< ItTy >::iterator_category, std::remove_reference_t< ReferenceTy >, std::iterator_traits< ItTy >::difference_type, std::remove_reference_t< ReferenceTy > *, ReferenceTy >
using iterator_category
using value_type
using difference_type
using pointer
using reference

Public Member Functions

 mapped_iterator_base (ItTy U)
ItTy getCurrent ()
ReferenceTy operator* () const
Public Member Functions inherited from llvm::iterator_adaptor_base< DerivedT, ItTy, std::iterator_traits< ItTy >::iterator_category, std::remove_reference_t< ReferenceTy >, std::iterator_traits< ItTy >::difference_type, std::remove_reference_t< ReferenceTy > *, ReferenceTy >
DerivedT & operator+= (difference_type n)
DerivedT & operator-= (difference_type n)
difference_type operator- (const DerivedT &RHS) const
DerivedT & operator++ ()
DerivedT & operator-- ()
ReferenceTy operator* () const
Public Member Functions inherited from llvm::iterator_facade_base< DerivedT, std::iterator_traits< ItTy >::iterator_category, std::remove_reference_t< ReferenceTy >, std::iterator_traits< ItTy >::difference_type, std::remove_reference_t< ReferenceTy > *, ReferenceTy >
DerivedT operator+ (std::iterator_traits< ItTy >::difference_type n) const
DerivedT operator- (std::iterator_traits< ItTy >::difference_type n) const
DerivedT & operator++ ()
DerivedT & operator-- ()
bool operator!= (const DerivedT &RHS) const
bool operator> (const DerivedT &RHS) const
bool operator<= (const DerivedT &RHS) const
bool operator>= (const DerivedT &RHS) const
PointerProxy operator-> () const
ReferenceProxy operator[] (std::iterator_traits< ItTy >::difference_type n) const

Additional Inherited Members

Protected Types inherited from llvm::iterator_facade_base< DerivedT, std::iterator_traits< ItTy >::iterator_category, std::remove_reference_t< ReferenceTy >, std::iterator_traits< ItTy >::difference_type, std::remove_reference_t< ReferenceTy > *, ReferenceTy >
enum  
Protected Member Functions inherited from llvm::iterator_adaptor_base< DerivedT, ItTy, std::iterator_traits< ItTy >::iterator_category, std::remove_reference_t< ReferenceTy >, std::iterator_traits< ItTy >::difference_type, std::remove_reference_t< ReferenceTy > *, ReferenceTy >
 iterator_adaptor_base ()=default
const ItTywrapped () const
Protected Attributes inherited from llvm::iterator_adaptor_base< DerivedT, ItTy, std::iterator_traits< ItTy >::iterator_category, std::remove_reference_t< ReferenceTy >, std::iterator_traits< ItTy >::difference_type, std::remove_reference_t< ReferenceTy > *, ReferenceTy >
ItTy I

Detailed Description

template<typename DerivedT, typename ItTy, typename ReferenceTy>
class llvm::mapped_iterator_base< DerivedT, ItTy, ReferenceTy >

A base type of mapped iterator, that is useful for building derived iterators that do not need/want to store the map function (as in mapped_iterator).

These iterators must simply provide a mapElement method that defines how to map a value of the iterator to the provided reference type.

Definition at line 376 of file STLExtras.h.

Member Typedef Documentation

◆ BaseT

template<typename DerivedT, typename ItTy, typename ReferenceTy>
using llvm::mapped_iterator_base< DerivedT, ItTy, ReferenceTy >::BaseT = mapped_iterator_base

Definition at line 384 of file STLExtras.h.

Constructor & Destructor Documentation

◆ mapped_iterator_base()

Member Function Documentation

◆ getCurrent()

template<typename DerivedT, typename ItTy, typename ReferenceTy>
ItTy llvm::mapped_iterator_base< DerivedT, ItTy, ReferenceTy >::getCurrent ( )
inline

Definition at line 389 of file STLExtras.h.

◆ operator*()

template<typename DerivedT, typename ItTy, typename ReferenceTy>
ReferenceTy llvm::mapped_iterator_base< DerivedT, ItTy, ReferenceTy >::operator* ( ) const
inline

Definition at line 391 of file STLExtras.h.


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