LLVM  8.0.1
Public Types | Public Member Functions | Friends | List of all members
llvm::DenseMapIterator< KeyT, ValueT, KeyInfoT, Bucket, IsConst > Class Template Reference

#include "llvm/ADT/DenseMap.h"

Inheritance diagram for llvm::DenseMapIterator< KeyT, ValueT, KeyInfoT, Bucket, IsConst >:
Inheritance graph
[legend]
Collaboration diagram for llvm::DenseMapIterator< KeyT, ValueT, KeyInfoT, Bucket, IsConst >:
Collaboration graph
[legend]

Public Types

using difference_type = ptrdiff_t
 
using value_type = typename std::conditional< IsConst, const Bucket, Bucket >::type
 
using pointer = value_type *
 
using reference = value_type &
 
using iterator_category = std::forward_iterator_tag
 

Public Member Functions

 DenseMapIterator ()=default
 
 DenseMapIterator (pointer Pos, pointer E, const DebugEpochBase &Epoch, bool NoAdvance=false)
 
template<bool IsConstSrc, typename = typename std::enable_if<!IsConstSrc && IsConst>::type>
 DenseMapIterator (const DenseMapIterator< KeyT, ValueT, KeyInfoT, Bucket, IsConstSrc > &I)
 
reference operator* () const
 
pointer operator-> () const
 
bool operator== (const ConstIterator &RHS) const
 
bool operator!= (const ConstIterator &RHS) const
 
DenseMapIteratoroperator++ ()
 
DenseMapIterator operator++ (int)
 

Friends

class DenseMapIterator< KeyT, ValueT, KeyInfoT, Bucket, true >
 
class DenseMapIterator< KeyT, ValueT, KeyInfoT, Bucket, false >
 

Detailed Description

template<typename KeyT, typename ValueT, typename KeyInfoT, typename Bucket, bool IsConst>
class llvm::DenseMapIterator< KeyT, ValueT, KeyInfoT, Bucket, IsConst >

Definition at line 82 of file DenseMap.h.

Member Typedef Documentation

◆ difference_type

template<typename KeyT, typename ValueT, typename KeyInfoT, typename Bucket, bool IsConst>
using llvm::DenseMapIterator< KeyT, ValueT, KeyInfoT, Bucket, IsConst >::difference_type = ptrdiff_t

Definition at line 1184 of file DenseMap.h.

◆ iterator_category

template<typename KeyT, typename ValueT, typename KeyInfoT, typename Bucket, bool IsConst>
using llvm::DenseMapIterator< KeyT, ValueT, KeyInfoT, Bucket, IsConst >::iterator_category = std::forward_iterator_tag

Definition at line 1189 of file DenseMap.h.

◆ pointer

template<typename KeyT, typename ValueT, typename KeyInfoT, typename Bucket, bool IsConst>
using llvm::DenseMapIterator< KeyT, ValueT, KeyInfoT, Bucket, IsConst >::pointer = value_type *

Definition at line 1187 of file DenseMap.h.

◆ reference

template<typename KeyT, typename ValueT, typename KeyInfoT, typename Bucket, bool IsConst>
using llvm::DenseMapIterator< KeyT, ValueT, KeyInfoT, Bucket, IsConst >::reference = value_type &

Definition at line 1188 of file DenseMap.h.

◆ value_type

template<typename KeyT, typename ValueT, typename KeyInfoT, typename Bucket, bool IsConst>
using llvm::DenseMapIterator< KeyT, ValueT, KeyInfoT, Bucket, IsConst >::value_type = typename std::conditional<IsConst, const Bucket, Bucket>::type

Definition at line 1186 of file DenseMap.h.

Constructor & Destructor Documentation

◆ DenseMapIterator() [1/3]

template<typename KeyT, typename ValueT, typename KeyInfoT, typename Bucket, bool IsConst>
llvm::DenseMapIterator< KeyT, ValueT, KeyInfoT, Bucket, IsConst >::DenseMapIterator ( )
default

◆ DenseMapIterator() [2/3]

template<typename KeyT, typename ValueT, typename KeyInfoT, typename Bucket, bool IsConst>
llvm::DenseMapIterator< KeyT, ValueT, KeyInfoT, Bucket, IsConst >::DenseMapIterator ( pointer  Pos,
pointer  E,
const DebugEpochBase Epoch,
bool  NoAdvance = false 
)
inline

Definition at line 1198 of file DenseMap.h.

References assert().

◆ DenseMapIterator() [3/3]

template<typename KeyT, typename ValueT, typename KeyInfoT, typename Bucket, bool IsConst>
template<bool IsConstSrc, typename = typename std::enable_if<!IsConstSrc && IsConst>::type>
llvm::DenseMapIterator< KeyT, ValueT, KeyInfoT, Bucket, IsConst >::DenseMapIterator ( const DenseMapIterator< KeyT, ValueT, KeyInfoT, Bucket, IsConstSrc > &  I)
inline

Definition at line 1216 of file DenseMap.h.

Member Function Documentation

◆ operator!=()

template<typename KeyT, typename ValueT, typename KeyInfoT, typename Bucket, bool IsConst>
bool llvm::DenseMapIterator< KeyT, ValueT, KeyInfoT, Bucket, IsConst >::operator!= ( const ConstIterator RHS) const
inline

◆ operator*()

template<typename KeyT, typename ValueT, typename KeyInfoT, typename Bucket, bool IsConst>
reference llvm::DenseMapIterator< KeyT, ValueT, KeyInfoT, Bucket, IsConst >::operator* ( ) const
inline

Definition at line 1220 of file DenseMap.h.

References assert().

◆ operator++() [1/2]

template<typename KeyT, typename ValueT, typename KeyInfoT, typename Bucket, bool IsConst>
DenseMapIterator& llvm::DenseMapIterator< KeyT, ValueT, KeyInfoT, Bucket, IsConst >::operator++ ( )
inline

Definition at line 1248 of file DenseMap.h.

References assert().

◆ operator++() [2/2]

template<typename KeyT, typename ValueT, typename KeyInfoT, typename Bucket, bool IsConst>
DenseMapIterator llvm::DenseMapIterator< KeyT, ValueT, KeyInfoT, Bucket, IsConst >::operator++ ( int  )
inline

◆ operator->()

template<typename KeyT, typename ValueT, typename KeyInfoT, typename Bucket, bool IsConst>
pointer llvm::DenseMapIterator< KeyT, ValueT, KeyInfoT, Bucket, IsConst >::operator-> ( ) const
inline

Definition at line 1226 of file DenseMap.h.

References assert().

◆ operator==()

template<typename KeyT, typename ValueT, typename KeyInfoT, typename Bucket, bool IsConst>
bool llvm::DenseMapIterator< KeyT, ValueT, KeyInfoT, Bucket, IsConst >::operator== ( const ConstIterator RHS) const
inline

Friends And Related Function Documentation

◆ DenseMapIterator< KeyT, ValueT, KeyInfoT, Bucket, false >

template<typename KeyT, typename ValueT, typename KeyInfoT, typename Bucket, bool IsConst>
friend class DenseMapIterator< KeyT, ValueT, KeyInfoT, Bucket, false >
friend

Definition at line 1179 of file DenseMap.h.

◆ DenseMapIterator< KeyT, ValueT, KeyInfoT, Bucket, true >

template<typename KeyT, typename ValueT, typename KeyInfoT, typename Bucket, bool IsConst>
friend class DenseMapIterator< KeyT, ValueT, KeyInfoT, Bucket, true >
friend

Definition at line 1178 of file DenseMap.h.


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