LLVM 23.0.0git
llvm::StringMapIterBase< ValueTy, IsConst > Class Template Reference

#include "llvm/ADT/StringMap.h"

Inheritance diagram for llvm::StringMapIterBase< ValueTy, IsConst >:
[legend]

Public Types

using iterator_category = std::forward_iterator_tag
using value_type = StringMapEntry<ValueTy>
using difference_type = std::ptrdiff_t
using pointer = std::conditional_t<IsConst, const value_type *, value_type *>
using reference

Public Member Functions

 StringMapIterBase ()=default
 StringMapIterBase (const DebugEpochBase *Epoch, StringMapEntryBase **Bucket, bool Advance=false)
template<bool IsConstSrc, typename = std::enable_if_t<!IsConstSrc && IsConst>>
 StringMapIterBase (const StringMapIterBase< ValueTy, IsConstSrc > &I)
reference operator* () const
pointer operator-> () const
StringMapIterBaseoperator++ ()
StringMapIterBase operator++ (int)

Friends

class StringMapIterBase< ValueTy, true >
class StringMapIterBase< ValueTy, false >
bool operator== (const StringMapIterBase &LHS, const StringMapIterBase &RHS)
bool operator!= (const StringMapIterBase &LHS, const StringMapIterBase &RHS)

Detailed Description

template<typename ValueTy, bool IsConst>
class llvm::StringMapIterBase< ValueTy, IsConst >

Definition at line 463 of file StringMap.h.

Member Typedef Documentation

◆ difference_type

template<typename ValueTy, bool IsConst>
using llvm::StringMapIterBase< ValueTy, IsConst >::difference_type = std::ptrdiff_t

Definition at line 472 of file StringMap.h.

◆ iterator_category

template<typename ValueTy, bool IsConst>
using llvm::StringMapIterBase< ValueTy, IsConst >::iterator_category = std::forward_iterator_tag

Definition at line 470 of file StringMap.h.

◆ pointer

template<typename ValueTy, bool IsConst>
using llvm::StringMapIterBase< ValueTy, IsConst >::pointer = std::conditional_t<IsConst, const value_type *, value_type *>

Definition at line 473 of file StringMap.h.

◆ reference

template<typename ValueTy, bool IsConst>
using llvm::StringMapIterBase< ValueTy, IsConst >::reference
Initial value:
std::conditional_t<IsConst, const value_type &, value_type &>

Definition at line 474 of file StringMap.h.

◆ value_type

template<typename ValueTy, bool IsConst>
using llvm::StringMapIterBase< ValueTy, IsConst >::value_type = StringMapEntry<ValueTy>

Definition at line 471 of file StringMap.h.

Constructor & Destructor Documentation

◆ StringMapIterBase() [1/3]

template<typename ValueTy, bool IsConst>
llvm::StringMapIterBase< ValueTy, IsConst >::StringMapIterBase ( )
default

◆ StringMapIterBase() [2/3]

template<typename ValueTy, bool IsConst>
llvm::StringMapIterBase< ValueTy, IsConst >::StringMapIterBase ( const DebugEpochBase * Epoch,
StringMapEntryBase ** Bucket,
bool Advance = false )
inlineexplicit

Definition at line 479 of file StringMap.h.

◆ StringMapIterBase() [3/3]

template<typename ValueTy, bool IsConst>
template<bool IsConstSrc, typename = std::enable_if_t<!IsConstSrc && IsConst>>
llvm::StringMapIterBase< ValueTy, IsConst >::StringMapIterBase ( const StringMapIterBase< ValueTy, IsConstSrc > & I)
inline

Definition at line 490 of file StringMap.h.

Member Function Documentation

◆ operator*()

template<typename ValueTy, bool IsConst>
reference llvm::StringMapIterBase< ValueTy, IsConst >::operator* ( ) const
inlinenodiscard

Definition at line 493 of file StringMap.h.

◆ operator++() [1/2]

template<typename ValueTy, bool IsConst>
StringMapIterBase & llvm::StringMapIterBase< ValueTy, IsConst >::operator++ ( )
inline

Definition at line 502 of file StringMap.h.

◆ operator++() [2/2]

template<typename ValueTy, bool IsConst>
StringMapIterBase llvm::StringMapIterBase< ValueTy, IsConst >::operator++ ( int )
inline

Definition at line 509 of file StringMap.h.

◆ operator->()

template<typename ValueTy, bool IsConst>
pointer llvm::StringMapIterBase< ValueTy, IsConst >::operator-> ( ) const
inlinenodiscard

Definition at line 497 of file StringMap.h.

◆ operator!=

template<typename ValueTy, bool IsConst>
bool operator!= ( const StringMapIterBase< ValueTy, IsConst > & LHS,
const StringMapIterBase< ValueTy, IsConst > & RHS )
friend

Definition at line 524 of file StringMap.h.

◆ operator==

template<typename ValueTy, bool IsConst>
bool operator== ( const StringMapIterBase< ValueTy, IsConst > & LHS,
const StringMapIterBase< ValueTy, IsConst > & RHS )
friend

Definition at line 515 of file StringMap.h.

◆ StringMapIterBase< ValueTy, false >

template<typename ValueTy, bool IsConst>
friend class StringMapIterBase< ValueTy, false >
friend

Definition at line 437 of file StringMap.h.

◆ StringMapIterBase< ValueTy, true >

template<typename ValueTy, bool IsConst>
friend class StringMapIterBase< ValueTy, true >
friend

Definition at line 437 of file StringMap.h.


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