LLVM 23.0.0git
llvm::DWARFDebugNames::ValueIterator Class Reference

#include "llvm/DebugInfo/DWARF/DWARFAcceleratorTable.h"

Public Types

using iterator_category = std::input_iterator_tag
using value_type = Entry
using difference_type = std::ptrdiff_t
using pointer = value_type *
using reference = value_type &

Public Member Functions

LLVM_ABI ValueIterator (const DWARFDebugNames &AccelTable, StringRef Key)
 Create a "begin" iterator for looping over all entries in the accelerator table matching Key.
LLVM_ABI ValueIterator (const NameIndex &NI, StringRef Key)
 Create a "begin" iterator for looping over all entries in a specific Name Index.
 ValueIterator ()=default
 End marker.
const Entryoperator* () const
ValueIteratoroperator++ ()
ValueIterator operator++ (int)

Friends

bool operator== (const ValueIterator &A, const ValueIterator &B)
bool operator!= (const ValueIterator &A, const ValueIterator &B)

Detailed Description

Definition at line 708 of file DWARFAcceleratorTable.h.

Member Typedef Documentation

◆ difference_type

Definition at line 712 of file DWARFAcceleratorTable.h.

◆ iterator_category

Definition at line 710 of file DWARFAcceleratorTable.h.

◆ pointer

◆ reference

◆ value_type

Constructor & Destructor Documentation

◆ ValueIterator() [1/3]

DWARFDebugNames::ValueIterator::ValueIterator ( const DWARFDebugNames & AccelTable,
StringRef Key )

Create a "begin" iterator for looping over all entries in the accelerator table matching Key.

The iterator will run through all Name Indexes in the section in sequence.

Definition at line 1050 of file DWARFAcceleratorTable.cpp.

References llvm::DWARFDebugNames::begin(), and llvm::DWARFDebugNames::DWARFDebugNames().

Referenced by operator!=, operator++(), operator++(), and operator==.

◆ ValueIterator() [2/3]

DWARFDebugNames::ValueIterator::ValueIterator ( const NameIndex & NI,
StringRef Key )

Create a "begin" iterator for looping over all entries in a specific Name Index.

Other indices in the section will not be visited.

Definition at line 1057 of file DWARFAcceleratorTable.cpp.

◆ ValueIterator() [3/3]

llvm::DWARFDebugNames::ValueIterator::ValueIterator ( )
default

End marker.

Member Function Documentation

◆ operator*()

const Entry & llvm::DWARFDebugNames::ValueIterator::operator* ( ) const
inline

Definition at line 753 of file DWARFAcceleratorTable.h.

◆ operator++() [1/2]

ValueIterator & llvm::DWARFDebugNames::ValueIterator::operator++ ( )
inline

Definition at line 754 of file DWARFAcceleratorTable.h.

References ValueIterator().

◆ operator++() [2/2]

ValueIterator llvm::DWARFDebugNames::ValueIterator::operator++ ( int )
inline

Definition at line 758 of file DWARFAcceleratorTable.h.

References I, and ValueIterator().

◆ operator!=

bool operator!= ( const ValueIterator & A,
const ValueIterator & B )
friend

Definition at line 767 of file DWARFAcceleratorTable.h.

References A(), B(), and ValueIterator().

◆ operator==

bool operator== ( const ValueIterator & A,
const ValueIterator & B )
friend

Definition at line 764 of file DWARFAcceleratorTable.h.

References A(), B(), and ValueIterator().


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