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

#include "llvm/ADT/STLExtras.h"

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

Public Member Functions

 mapped_iterator (ItTy U, FuncTy F)
 
ItTy getCurrent ()
 
const FuncTy & getFunction () const
 
ReferenceTy 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_t< decltype(std::declval< FuncTy >()(*std::declval< ItTy >())) >, std::iterator_traits< ItTy >::difference_type, std::remove_reference_t< decltype(std::declval< FuncTy >()(*std::declval< ItTy >())) > *, decltype(std::declval< FuncTy >()(*std::declval< ItTy >())) >
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-- ()
 
decltype(std::declval< FuncTy >()(*std::declval< ItTy >())) operator* () const
 
- Public Member Functions inherited from llvm::iterator_facade_base< mapped_iterator< ItTy, FuncTy >, std::iterator_traits< ItTy >::iterator_category, std::remove_reference_t< decltype(std::declval< FuncTy >()(*std::declval< ItTy >())) >, std::iterator_traits< ItTy >::difference_type, std::remove_reference_t< decltype(std::declval< FuncTy >()(*std::declval< ItTy >())) > *, decltype(std::declval< FuncTy >()(*std::declval< ItTy >())) >
mapped_iterator< ItTy, FuncTy > operator+ (std::iterator_traits< ItTy >::difference_type n) const
 
mapped_iterator< ItTy, FuncTy > operator- (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
 
PointerProxy operator-> () const
 
ReferenceProxy operator[] (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_t< decltype(std::declval< FuncTy >()(*std::declval< ItTy >())) >, std::iterator_traits< ItTy >::difference_type, std::remove_reference_t< decltype(std::declval< FuncTy >()(*std::declval< ItTy >())) > *, decltype(std::declval< FuncTy >()(*std::declval< ItTy >())) >
using difference_type = 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_t< decltype(std::declval< FuncTy >()(*std::declval< ItTy >())) >, std::iterator_traits< ItTy >::difference_type, std::remove_reference_t< decltype(std::declval< FuncTy >()(*std::declval< ItTy >())) > *, decltype(std::declval< FuncTy >()(*std::declval< ItTy >())) >
using iterator_category = std::iterator_traits< ItTy >::iterator_category
 
using value_type = std::remove_reference_t< decltype(std::declval< FuncTy >()(*std::declval< ItTy >())) >
 
using difference_type = std::iterator_traits< ItTy >::difference_type
 
using pointer = std::remove_reference_t< decltype(std::declval< FuncTy >()(*std::declval< ItTy >())) > *
 
using reference = decltype(std::declval< FuncTy >()(*std::declval< ItTy >()))
 
- Protected Types inherited from llvm::iterator_facade_base< mapped_iterator< ItTy, FuncTy >, std::iterator_traits< ItTy >::iterator_category, std::remove_reference_t< decltype(std::declval< FuncTy >()(*std::declval< ItTy >())) >, std::iterator_traits< ItTy >::difference_type, std::remove_reference_t< decltype(std::declval< FuncTy >()(*std::declval< ItTy >())) > *, decltype(std::declval< FuncTy >()(*std::declval< ItTy >())) >
enum  
 
- Protected Member Functions inherited from llvm::iterator_adaptor_base< mapped_iterator< ItTy, FuncTy >, ItTy, std::iterator_traits< ItTy >::iterator_category, std::remove_reference_t< decltype(std::declval< FuncTy >()(*std::declval< ItTy >())) >, std::iterator_traits< ItTy >::difference_type, std::remove_reference_t< decltype(std::declval< FuncTy >()(*std::declval< ItTy >())) > *, decltype(std::declval< FuncTy >()(*std::declval< ItTy >())) >
 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_t< decltype(std::declval< FuncTy >()(*std::declval< ItTy >())) >, std::iterator_traits< ItTy >::difference_type, std::remove_reference_t< decltype(std::declval< FuncTy >()(*std::declval< ItTy >())) > *, decltype(std::declval< FuncTy >()(*std::declval< ItTy >())) >
ItTy I
 

Detailed Description

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

Definition at line 277 of file STLExtras.h.

Constructor & Destructor Documentation

◆ mapped_iterator()

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

Definition at line 285 of file STLExtras.h.

References F.

Member Function Documentation

◆ getCurrent()

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

◆ getFunction()

template<typename ItTy , typename FuncTy , typename ReferenceTy = decltype(std::declval<FuncTy>()(*std::declval<ItTy>()))>
const FuncTy& llvm::mapped_iterator< ItTy, FuncTy, ReferenceTy >::getFunction ( ) const
inline

Definition at line 290 of file STLExtras.h.

◆ operator*()

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

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