WPILibC++  2019.3.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Modules Pages
wpi::pointee_iterator< WrappedIteratorT, T > Struct Template Reference

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

#include <iterator.h>

Inheritance diagram for wpi::pointee_iterator< WrappedIteratorT, T >:
wpi::iterator_adaptor_base< pointee_iterator< WrappedIteratorT >, WrappedIteratorT, std::iterator_traits< WrappedIteratorT >::iterator_category, T > wpi::iterator_facade_base< pointee_iterator< WrappedIteratorT >, std::iterator_traits< WrappedIteratorT >::iterator_category, T, DifferenceTypeT, PointerT, ReferenceT >

Public Member Functions

template<typename U >
 pointee_iterator (U &&u)
 
T & operator* () const
 
- Public Member Functions inherited from wpi::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
 
ReferenceT operator* () const
 
- Public Member Functions inherited from wpi::iterator_facade_base< pointee_iterator< WrappedIteratorT >, std::iterator_traits< WrappedIteratorT >::iterator_category, T, DifferenceTypeT, PointerT, ReferenceT >
pointee_iterator
< WrappedIteratorT > 
operator+ (DifferenceTypeT n) const
 
pointee_iterator
< WrappedIteratorT > 
operator- (DifferenceTypeT 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
 
PointerT operator-> ()
 
PointerT operator-> () const
 
ReferenceProxy operator[] (DifferenceTypeT n)
 
ReferenceProxy operator[] (DifferenceTypeT n) const
 

Additional Inherited Members

- Public Types inherited from wpi::iterator_adaptor_base< pointee_iterator< WrappedIteratorT >, WrappedIteratorT, std::iterator_traits< WrappedIteratorT >::iterator_category, T >
using difference_type = DifferenceTypeT
 
- Protected Types inherited from wpi::iterator_facade_base< pointee_iterator< WrappedIteratorT >, std::iterator_traits< WrappedIteratorT >::iterator_category, T, DifferenceTypeT, PointerT, ReferenceT >
enum  
 
- Protected Member Functions inherited from wpi::iterator_adaptor_base< pointee_iterator< WrappedIteratorT >, WrappedIteratorT, std::iterator_traits< WrappedIteratorT >::iterator_category, T >
 iterator_adaptor_base (WrappedIteratorT u)
 
const WrappedIteratorT & wrapped () const
 
- Protected Attributes inherited from wpi::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 wpi::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>;

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