LLVM 20.0.0git
Public Member Functions | List of all members
llvm::coverage::LineCoverageIterator Class Reference

An iterator over the LineCoverageStats objects for lines described by a CoverageData instance. More...

#include "llvm/ProfileData/Coverage/CoverageMapping.h"

Inheritance diagram for llvm::coverage::LineCoverageIterator:
Inheritance graph
[legend]

Public Member Functions

 LineCoverageIterator (const CoverageData &CD)
 
 LineCoverageIterator (const CoverageData &CD, unsigned Line)
 
bool operator== (const LineCoverageIterator &R) const
 
const LineCoverageStatsoperator* () const
 
LineCoverageIteratoroperator++ ()
 
LineCoverageIterator getEnd () const
 
- Public Member Functions inherited from llvm::iterator_facade_base< LineCoverageIterator, std::forward_iterator_tag, const LineCoverageStats >
LineCoverageIterator operator+ (std::ptrdiff_t n) const
 
LineCoverageIterator operator- (std::ptrdiff_t n) const
 
LineCoverageIterator & operator++ ()
 
LineCoverageIterator operator++ (int)
 
LineCoverageIterator & operator-- ()
 
LineCoverageIterator operator-- (int)
 
bool operator!= (const LineCoverageIterator &RHS) const
 
bool operator> (const LineCoverageIterator &RHS) const
 
bool operator<= (const LineCoverageIterator &RHS) const
 
bool operator>= (const LineCoverageIterator &RHS) const
 
PointerProxy operator-> () const
 
ReferenceProxy operator[] (std::ptrdiff_t n) const
 

Additional Inherited Members

- Public Types inherited from llvm::iterator_facade_base< LineCoverageIterator, std::forward_iterator_tag, const LineCoverageStats >
using iterator_category = std::forward_iterator_tag
 
using value_type = const LineCoverageStats
 
using difference_type = std::ptrdiff_t
 
using pointer = const LineCoverageStats *
 
using reference = const LineCoverageStats &
 
- Protected Types inherited from llvm::iterator_facade_base< LineCoverageIterator, std::forward_iterator_tag, const LineCoverageStats >
enum  
 

Detailed Description

An iterator over the LineCoverageStats objects for lines described by a CoverageData instance.

Definition at line 1067 of file CoverageMapping.h.

Constructor & Destructor Documentation

◆ LineCoverageIterator() [1/2]

llvm::coverage::LineCoverageIterator::LineCoverageIterator ( const CoverageData CD)
inline

Definition at line 1072 of file CoverageMapping.h.

◆ LineCoverageIterator() [2/2]

llvm::coverage::LineCoverageIterator::LineCoverageIterator ( const CoverageData CD,
unsigned  Line 
)
inline

Definition at line 1075 of file CoverageMapping.h.

References operator++().

Member Function Documentation

◆ getEnd()

LineCoverageIterator llvm::coverage::LineCoverageIterator::getEnd ( ) const
inline

Definition at line 1089 of file CoverageMapping.h.

References llvm::coverage::CoverageData::end().

◆ operator*()

const LineCoverageStats & llvm::coverage::LineCoverageIterator::operator* ( ) const
inline

Definition at line 1085 of file CoverageMapping.h.

◆ operator++()

LineCoverageIterator & LineCoverageIterator::operator++ ( )

Definition at line 1552 of file CoverageMapping.cpp.

References llvm::coverage::CoverageData::end().

Referenced by LineCoverageIterator().

◆ operator==()

bool llvm::coverage::LineCoverageIterator::operator== ( const LineCoverageIterator R) const
inline

Definition at line 1081 of file CoverageMapping.h.


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