LLVM 20.0.0git
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]

Public Types

using difference_type = ptrdiff_t
 
using value_type = std::conditional_t< IsConst, const Bucket, Bucket >
 
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 = std::enable_if_t<!IsConstSrc && IsConst>>
 DenseMapIterator (const DenseMapIterator< KeyT, ValueT, KeyInfoT, Bucket, IsConstSrc > &I)
 
reference operator* () const
 
pointer operator-> () const
 
DenseMapIteratoroperator++ ()
 
DenseMapIterator operator++ (int)
 

Friends

class DenseMapIterator< KeyT, ValueT, KeyInfoT, Bucket, true >
 
class DenseMapIterator< KeyT, ValueT, KeyInfoT, Bucket, false >
 
bool operator== (const DenseMapIterator &LHS, const DenseMapIterator &RHS)
 
bool operator!= (const DenseMapIterator &LHS, const DenseMapIterator &RHS)
 

Detailed Description

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

Definition at line 1189 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 1194 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 1198 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 1196 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 1197 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 = std::conditional_t<IsConst, const Bucket, Bucket>

Definition at line 1195 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 1207 of file DenseMap.h.

References assert().

◆ DenseMapIterator() [3/3]

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

Definition at line 1226 of file DenseMap.h.

Member Function Documentation

◆ 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 1230 of file DenseMap.h.

References assert(), End, and Ptr.

◆ 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 1259 of file DenseMap.h.

References assert(), End, and Ptr.

◆ 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

Definition at line 1271 of file DenseMap.h.

References assert().

◆ 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 1237 of file DenseMap.h.

References assert(), End, and Ptr.

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 899 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 899 of file DenseMap.h.

◆ operator!=

template<typename KeyT , typename ValueT , typename KeyInfoT , typename Bucket , bool IsConst>
bool operator!= ( const DenseMapIterator< KeyT, ValueT, KeyInfoT, Bucket, IsConst > &  LHS,
const DenseMapIterator< KeyT, ValueT, KeyInfoT, Bucket, IsConst > &  RHS 
)
friend

Definition at line 1254 of file DenseMap.h.

◆ operator==

template<typename KeyT , typename ValueT , typename KeyInfoT , typename Bucket , bool IsConst>
bool operator== ( const DenseMapIterator< KeyT, ValueT, KeyInfoT, Bucket, IsConst > &  LHS,
const DenseMapIterator< KeyT, ValueT, KeyInfoT, Bucket, IsConst > &  RHS 
)
friend

Definition at line 1245 of file DenseMap.h.


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