LLVM  6.0.0svn
Public Member Functions | List of all members
llvm::pointee_iterator< WrappedIteratorT, T > Struct Template Reference

An iterator type that allows iterating over the pointees via some other iterator. More...

#include "llvm/ADT/iterator.h"

Inheritance diagram for llvm::pointee_iterator< WrappedIteratorT, T >:
Inheritance graph
[legend]
Collaboration diagram for llvm::pointee_iterator< WrappedIteratorT, T >:
Collaboration graph
[legend]

Public Member Functions

 pointee_iterator ()=default
 
template<typename U >
 pointee_iterator (U &&u)
 
Toperator* () const
 
- Public Member Functions inherited from llvm::iterator_adaptor_base< pointee_iterator< WrappedIteratorT >, WrappedIteratorT, std::iterator_traits< WrappedIteratorT >::iterator_category, T >
pointee_iterator< WrappedIteratorT > & operator+= (difference_type n)
 
pointee_iterator< WrappedIteratorT > & operator-= (difference_type n)
 
difference_type operator- (const pointee_iterator< WrappedIteratorT > &RHS) const
 
pointee_iterator< WrappedIteratorT > & operator++ ()
 
pointee_iterator< WrappedIteratorT > & operator-- ()
 
bool operator== (const pointee_iterator< WrappedIteratorT > &RHS) const
 
bool operator< (const pointee_iterator< WrappedIteratorT > &RHS) const
 
typename std::conditional< std::is_same< T, typename std::iterator_traits< WrappedIteratorT >::value_type >::value, typename std::iterator_traits< WrappedIteratorT >::reference, T & >::type operator* () const
 
- Public Member Functions inherited from llvm::iterator_facade_base< pointee_iterator< WrappedIteratorT >, std::iterator_traits< WrappedIteratorT >::iterator_category, T, typename std::iterator_traits< WrappedIteratorT >::difference_type, typename std::conditional< std::is_same< T, typename std::iterator_traits< WrappedIteratorT >::value_type >::value, typename std::iterator_traits< WrappedIteratorT >::pointer, T * >::type, typename std::conditional< std::is_same< T, typename std::iterator_traits< WrappedIteratorT >::value_type >::value, typename std::iterator_traits< WrappedIteratorT >::reference, T & >::type >
pointee_iterator< WrappedIteratorT > operator+ (typename std::iterator_traits< WrappedIteratorT >::difference_type n) const
 
pointee_iterator< WrappedIteratorT > operator- (typename std::iterator_traits< WrappedIteratorT >::difference_type n) const
 
pointee_iterator< WrappedIteratorT > & operator++ ()
 
pointee_iterator< WrappedIteratorT > operator++ (int)
 
pointee_iterator< WrappedIteratorT > & operator-- ()
 
pointee_iterator< WrappedIteratorT > operator-- (int)
 
bool operator!= (const pointee_iterator< WrappedIteratorT > &RHS) const
 
bool operator> (const pointee_iterator< WrappedIteratorT > &RHS) const
 
bool operator<= (const pointee_iterator< WrappedIteratorT > &RHS) const
 
bool operator>= (const pointee_iterator< WrappedIteratorT > &RHS) const
 
typename std::conditional< std::is_same< T, typename std::iterator_traits< WrappedIteratorT >::value_type >::value, typename std::iterator_traits< WrappedIteratorT >::pointer, T *>::type operator-> ()
 
typename std::conditional< std::is_same< T, typename std::iterator_traits< WrappedIteratorT >::value_type >::value, typename std::iterator_traits< WrappedIteratorT >::pointer, T *>::type operator-> () const
 
ReferenceProxy operator[] (typename std::iterator_traits< WrappedIteratorT >::difference_type n)
 
ReferenceProxy operator[] (typename std::iterator_traits< WrappedIteratorT >::difference_type n) const
 

Additional Inherited Members

- Public Types inherited from llvm::iterator_adaptor_base< pointee_iterator< WrappedIteratorT >, WrappedIteratorT, std::iterator_traits< WrappedIteratorT >::iterator_category, T >
using difference_type = typename std::iterator_traits< WrappedIteratorT >::difference_type
 
- Protected Types inherited from llvm::iterator_facade_base< pointee_iterator< WrappedIteratorT >, std::iterator_traits< WrappedIteratorT >::iterator_category, T, typename std::iterator_traits< WrappedIteratorT >::difference_type, typename std::conditional< std::is_same< T, typename std::iterator_traits< WrappedIteratorT >::value_type >::value, typename std::iterator_traits< WrappedIteratorT >::pointer, T * >::type, typename std::conditional< std::is_same< T, typename std::iterator_traits< WrappedIteratorT >::value_type >::value, typename std::iterator_traits< WrappedIteratorT >::reference, T & >::type >
enum  
 
- Protected Member Functions inherited from llvm::iterator_adaptor_base< pointee_iterator< WrappedIteratorT >, WrappedIteratorT, std::iterator_traits< WrappedIteratorT >::iterator_category, T >
 iterator_adaptor_base ()=default
 
 iterator_adaptor_base (WrappedIteratorT u)
 
const WrappedIteratorT & wrapped () const
 
- Protected Attributes inherited from llvm::iterator_adaptor_base< pointee_iterator< WrappedIteratorT >, WrappedIteratorT, std::iterator_traits< WrappedIteratorT >::iterator_category, T >
WrappedIteratorT I
 

Detailed Description

template<typename WrappedIteratorT, typename T = typename std::remove_reference< decltype(**std::declval<WrappedIteratorT>())>::type>
struct llvm::pointee_iterator< WrappedIteratorT, T >

An iterator type that allows iterating over the pointees via some other iterator.

The typical usage of this is to expose a type that iterates over Ts, but which is implemented with some iterator over T*s:

using iterator = pointee_iterator<SmallVectorImpl<T *>::iterator>;

Definition at line 289 of file iterator.h.

Constructor & Destructor Documentation

◆ pointee_iterator() [1/2]

template<typename WrappedIteratorT , typename T = typename std::remove_reference< decltype(**std::declval<WrappedIteratorT>())>::type>
llvm::pointee_iterator< WrappedIteratorT, T >::pointee_iterator ( )
default

◆ pointee_iterator() [2/2]

template<typename WrappedIteratorT , typename T = typename std::remove_reference< decltype(**std::declval<WrappedIteratorT>())>::type>
template<typename U >
llvm::pointee_iterator< WrappedIteratorT, T >::pointee_iterator ( U &&  u)
inline

Definition at line 296 of file iterator.h.

Member Function Documentation

◆ operator*()

template<typename WrappedIteratorT , typename T = typename std::remove_reference< decltype(**std::declval<WrappedIteratorT>())>::type>
T& llvm::pointee_iterator< WrappedIteratorT, T >::operator* ( ) const
inline

Definition at line 299 of file iterator.h.

References llvm::sys::path::begin(), and I.


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