LLVM  6.0.0svn
Public Member Functions | List of all members
llvm::concat_iterator< ValueT, IterTs > Class Template Reference

Iterator wrapper that concatenates sequences together. More...

#include "llvm/ADT/STLExtras.h"

Inheritance diagram for llvm::concat_iterator< ValueT, IterTs >:
Inheritance graph
[legend]
Collaboration diagram for llvm::concat_iterator< ValueT, IterTs >:
Collaboration graph
[legend]

Public Member Functions

template<typename... RangeTs>
 concat_iterator (RangeTs &&... Ranges)
 Constructs an iterator from a squence of ranges. More...
 
concat_iteratoroperator++ ()
 
ValueToperator* () const
 
bool operator== (const concat_iterator &RHS) const
 
- Public Member Functions inherited from llvm::iterator_facade_base< concat_iterator< ValueT, IterTs... >, std::forward_iterator_tag, ValueT >
concat_iterator< ValueT, IterTs... > operator+ (std::ptrdiff_t n) const
 
concat_iterator< ValueT, IterTs... > operator- (std::ptrdiff_t n) const
 
concat_iterator< ValueT, IterTs... > & operator++ ()
 
concat_iterator< ValueT, IterTs... > operator++ (int)
 
concat_iterator< ValueT, IterTs... > & operator-- ()
 
concat_iterator< ValueT, IterTs... > operator-- (int)
 
bool operator!= (const concat_iterator< ValueT, IterTs... > &RHS) const
 
bool operator> (const concat_iterator< ValueT, IterTs... > &RHS) const
 
bool operator<= (const concat_iterator< ValueT, IterTs... > &RHS) const
 
bool operator>= (const concat_iterator< ValueT, IterTs... > &RHS) const
 
ValueToperator-> ()
 
ValueToperator-> () const
 
ReferenceProxy operator[] (std::ptrdiff_t n)
 
ReferenceProxy operator[] (std::ptrdiff_t n) const
 

Additional Inherited Members

- Protected Types inherited from llvm::iterator_facade_base< concat_iterator< ValueT, IterTs... >, std::forward_iterator_tag, ValueT >
enum  
 

Detailed Description

template<typename ValueT, typename... IterTs>
class llvm::concat_iterator< ValueT, IterTs >

Iterator wrapper that concatenates sequences together.

This can concatenate different iterators, even with different types, into a single iterator provided the value types of all the concatenated iterators expose reference and pointer types that can be converted to ValueT & and ValueT * respectively. It doesn't support more interesting/customized pointer or reference types.

Currently this only supports forward or higher iterator categories as inputs and always exposes a forward iterator interface.

Definition at line 505 of file STLExtras.h.

Constructor & Destructor Documentation

◆ concat_iterator()

template<typename ValueT , typename... IterTs>
template<typename... RangeTs>
llvm::concat_iterator< ValueT, IterTs >::concat_iterator ( RangeTs &&...  Ranges)
inlineexplicit

Constructs an iterator from a squence of ranges.

We need the full range to know how to switch between each of the iterators.

Definition at line 581 of file STLExtras.h.

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

Member Function Documentation

◆ operator*()

template<typename ValueT , typename... IterTs>
ValueT& llvm::concat_iterator< ValueT, IterTs >::operator* ( ) const
inline

Definition at line 591 of file STLExtras.h.

◆ operator++()

template<typename ValueT , typename... IterTs>
concat_iterator& llvm::concat_iterator< ValueT, IterTs >::operator++ ( )
inline

Definition at line 586 of file STLExtras.h.

◆ operator==()

template<typename ValueT , typename... IterTs>
bool llvm::concat_iterator< ValueT, IterTs >::operator== ( const concat_iterator< ValueT, IterTs > &  RHS) const
inline

Definition at line 593 of file STLExtras.h.


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