LLVM  14.0.0git
Public Member Functions | List of all members
llvm::mapped_iterator< ItTy, FuncTy, FuncReturnTy > Class Template Reference

#include "llvm/ADT/STLExtras.h"

Inheritance diagram for llvm::mapped_iterator< ItTy, FuncTy, FuncReturnTy >:
Inheritance graph
[legend]
Collaboration diagram for llvm::mapped_iterator< ItTy, FuncTy, FuncReturnTy >:
Collaboration graph
[legend]

Public Member Functions

 mapped_iterator (ItTy U, FuncTy F)
 
ItTy getCurrent ()
 
FuncReturnTy operator* () const
 
- Public Member Functions inherited from llvm::iterator_adaptor_base< mapped_iterator< ItTy, FuncTy >, ItTy, std::iterator_traits< ItTy >::iterator_category, std::remove_reference< decltype(std::declval< FuncTy >()(*std::declval< ItTy >())) >::type >
mapped_iterator< ItTy, FuncTy > & operator+= (difference_type n)
 
mapped_iterator< ItTy, FuncTy > & operator-= (difference_type n)
 
difference_type operator- (const mapped_iterator< ItTy, FuncTy > &RHS) const
 
mapped_iterator< ItTy, FuncTy > & operator++ ()
 
mapped_iterator< ItTy, FuncTy > & operator-- ()
 
std::conditional_t< std::is_same< std::remove_reference< decltype(std::declval< FuncTy >()(*std::declval< ItTy >())) >::type, typename std::iterator_traits< ItTy >::value_type >::value, typename std::iterator_traits< ItTy >::reference, std::remove_reference< decltype(std::declval< FuncTy >()(*std::declval< ItTy >())) >::type & > operator* () const
 
- Public Member Functions inherited from llvm::iterator_facade_base< mapped_iterator< ItTy, FuncTy >, std::iterator_traits< ItTy >::iterator_category, std::remove_reference< decltype(std::declval< FuncTy >()(*std::declval< ItTy >())) >::type, typename std::iterator_traits< ItTy >::difference_type, std::conditional_t< std::is_same< std::remove_reference< decltype(std::declval< FuncTy >()(*std::declval< ItTy >())) >::type, typename std::iterator_traits< ItTy >::value_type >::value, typename std::iterator_traits< ItTy >::pointer, std::remove_reference< decltype(std::declval< FuncTy >()(*std::declval< ItTy >())) >::type * >, std::conditional_t< std::is_same< std::remove_reference< decltype(std::declval< FuncTy >()(*std::declval< ItTy >())) >::type, typename std::iterator_traits< ItTy >::value_type >::value, typename std::iterator_traits< ItTy >::reference, std::remove_reference< decltype(std::declval< FuncTy >()(*std::declval< ItTy >())) >::type & > >
mapped_iterator< ItTy, FuncTy > operator+ (typename std::iterator_traits< ItTy >::difference_type n) const
 
mapped_iterator< ItTy, FuncTy > operator- (typename std::iterator_traits< ItTy >::difference_type n) const
 
mapped_iterator< ItTy, FuncTy > & operator++ ()
 
mapped_iterator< ItTy, FuncTy > operator++ (int)
 
mapped_iterator< ItTy, FuncTy > & operator-- ()
 
mapped_iterator< ItTy, FuncTy > operator-- (int)
 
bool operator!= (const mapped_iterator< ItTy, FuncTy > &RHS) const
 
bool operator> (const mapped_iterator< ItTy, FuncTy > &RHS) const
 
bool operator<= (const mapped_iterator< ItTy, FuncTy > &RHS) const
 
bool operator>= (const mapped_iterator< ItTy, FuncTy > &RHS) const
 
std::conditional_t< std::is_same< std::remove_reference< decltype(std::declval< FuncTy >()(*std::declval< ItTy >())) >::type operator-> ()
 
std::conditional_t< std::is_same< std::remove_reference< decltype(std::declval< FuncTy >()(*std::declval< ItTy >())) >::type operator-> () const
 
ReferenceProxy operator[] (typename std::iterator_traits< ItTy >::difference_type n)
 
ReferenceProxy operator[] (typename std::iterator_traits< ItTy >::difference_type n) const
 

Additional Inherited Members

- Public Types inherited from llvm::iterator_adaptor_base< mapped_iterator< ItTy, FuncTy >, ItTy, std::iterator_traits< ItTy >::iterator_category, std::remove_reference< decltype(std::declval< FuncTy >()(*std::declval< ItTy >())) >::type >
using difference_type = typename std::iterator_traits< ItTy >::difference_type
 
- Public Types inherited from llvm::iterator_facade_base< mapped_iterator< ItTy, FuncTy >, std::iterator_traits< ItTy >::iterator_category, std::remove_reference< decltype(std::declval< FuncTy >()(*std::declval< ItTy >())) >::type, typename std::iterator_traits< ItTy >::difference_type, std::conditional_t< std::is_same< std::remove_reference< decltype(std::declval< FuncTy >()(*std::declval< ItTy >())) >::type, typename std::iterator_traits< ItTy >::value_type >::value, typename std::iterator_traits< ItTy >::pointer, std::remove_reference< decltype(std::declval< FuncTy >()(*std::declval< ItTy >())) >::type * >, std::conditional_t< std::is_same< std::remove_reference< decltype(std::declval< FuncTy >()(*std::declval< ItTy >())) >::type, typename std::iterator_traits< ItTy >::value_type >::value, typename std::iterator_traits< ItTy >::reference, std::remove_reference< decltype(std::declval< FuncTy >()(*std::declval< ItTy >())) >::type & > >
using iterator_category = std::iterator_traits< ItTy >::iterator_category
 
using value_type = std::remove_reference< decltype(std::declval< FuncTy >()(*std::declval< ItTy >())) >::type
 
using difference_type = typename std::iterator_traits< ItTy >::difference_type
 
using pointer = std::conditional_t< std::is_same< std::remove_reference< decltype(std::declval< FuncTy >()(*std::declval< ItTy >())) >::type
 
using reference = typename std::iterator_traits< ItTy >::value_type
 
- Protected Types inherited from llvm::iterator_facade_base< mapped_iterator< ItTy, FuncTy >, std::iterator_traits< ItTy >::iterator_category, std::remove_reference< decltype(std::declval< FuncTy >()(*std::declval< ItTy >())) >::type, typename std::iterator_traits< ItTy >::difference_type, std::conditional_t< std::is_same< std::remove_reference< decltype(std::declval< FuncTy >()(*std::declval< ItTy >())) >::type, typename std::iterator_traits< ItTy >::value_type >::value, typename std::iterator_traits< ItTy >::pointer, std::remove_reference< decltype(std::declval< FuncTy >()(*std::declval< ItTy >())) >::type * >, std::conditional_t< std::is_same< std::remove_reference< decltype(std::declval< FuncTy >()(*std::declval< ItTy >())) >::type, typename std::iterator_traits< ItTy >::value_type >::value, typename std::iterator_traits< ItTy >::reference, std::remove_reference< decltype(std::declval< FuncTy >()(*std::declval< ItTy >())) >::type & > >
enum  
 
- Protected Member Functions inherited from llvm::iterator_adaptor_base< mapped_iterator< ItTy, FuncTy >, ItTy, std::iterator_traits< ItTy >::iterator_category, std::remove_reference< decltype(std::declval< FuncTy >()(*std::declval< ItTy >())) >::type >
 iterator_adaptor_base ()=default
 
 iterator_adaptor_base (ItTy u)
 
const ItTywrapped () const
 
- Protected Attributes inherited from llvm::iterator_adaptor_base< mapped_iterator< ItTy, FuncTy >, ItTy, std::iterator_traits< ItTy >::iterator_category, std::remove_reference< decltype(std::declval< FuncTy >()(*std::declval< ItTy >())) >::type >
ItTy I
 

Detailed Description

template<typename ItTy, typename FuncTy, typename FuncReturnTy = decltype(std::declval<FuncTy>()(*std::declval<ItTy>()))>
class llvm::mapped_iterator< ItTy, FuncTy, FuncReturnTy >

Definition at line 277 of file STLExtras.h.

Constructor & Destructor Documentation

◆ mapped_iterator()

template<typename ItTy , typename FuncTy , typename FuncReturnTy = decltype(std::declval<FuncTy>()(*std::declval<ItTy>()))>
llvm::mapped_iterator< ItTy, FuncTy, FuncReturnTy >::mapped_iterator ( ItTy  U,
FuncTy  F 
)
inline

Definition at line 283 of file STLExtras.h.

References F.

Member Function Documentation

◆ getCurrent()

template<typename ItTy , typename FuncTy , typename FuncReturnTy = decltype(std::declval<FuncTy>()(*std::declval<ItTy>()))>
ItTy llvm::mapped_iterator< ItTy, FuncTy, FuncReturnTy >::getCurrent ( )
inline

◆ operator*()

template<typename ItTy , typename FuncTy , typename FuncReturnTy = decltype(std::declval<FuncTy>()(*std::declval<ItTy>()))>
FuncReturnTy llvm::mapped_iterator< ItTy, FuncTy, FuncReturnTy >::operator* ( ) const
inline

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