LLVM 23.0.0git
llvm::sampleprof::SampleProfileNameTable::iterator Class Reference

iterator is a lightweight, self-contained input iterator designed to stream FunctionId symbols from either the memory-mapped file buffer (lazy loading from the FixedMD5 layout) or from an eagerly loaded vector of FunctionId objects (fallback). More...

#include "llvm/ProfileData/SampleProfReader.h"

Inheritance diagram for llvm::sampleprof::SampleProfileNameTable::iterator:
[legend]

Classes

struct  UseLazy_t

Public Member Functions

 iterator ()=default
 iterator (const uint8_t *P, UseLazy_t)
 iterator (const FunctionId *P)
bool operator== (const iterator &RHS) const
iteratoroperator++ ()
FunctionId operator* () const
Public Member Functions inherited from llvm::iterator_facade_base< iterator, std::input_iterator_tag, FunctionId, std::ptrdiff_t, const FunctionId *, FunctionId >
iterator operator+ (std::ptrdiff_t n) const
iterator operator- (std::ptrdiff_t n) const
iteratoroperator++ ()
iteratoroperator-- ()
bool operator!= (const iterator &RHS) const
bool operator> (const iterator &RHS) const
bool operator<= (const iterator &RHS) const
bool operator>= (const iterator &RHS) const
PointerProxy operator-> () const
ReferenceProxy operator[] (std::ptrdiff_t n) const

Static Public Attributes

static constexpr UseLazy_t UseLazy {}

Additional Inherited Members

Public Types inherited from llvm::iterator_facade_base< iterator, std::input_iterator_tag, FunctionId, std::ptrdiff_t, const FunctionId *, FunctionId >
enum  
using iterator_category
using value_type
using difference_type
using pointer
using reference

Detailed Description

iterator is a lightweight, self-contained input iterator designed to stream FunctionId symbols from either the memory-mapped file buffer (lazy loading from the FixedMD5 layout) or from an eagerly loaded vector of FunctionId objects (fallback).

Definition at line 369 of file SampleProfReader.h.

Constructor & Destructor Documentation

◆ iterator() [1/3]

llvm::sampleprof::SampleProfileNameTable::iterator::iterator ( )
default

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

◆ iterator() [2/3]

llvm::sampleprof::SampleProfileNameTable::iterator::iterator ( const uint8_t * P,
UseLazy_t  )
inline

Definition at line 380 of file SampleProfReader.h.

References P.

◆ iterator() [3/3]

llvm::sampleprof::SampleProfileNameTable::iterator::iterator ( const FunctionId * P)
inline

Definition at line 383 of file SampleProfReader.h.

References const, and P.

Member Function Documentation

◆ operator*()

FunctionId llvm::sampleprof::SampleProfileNameTable::iterator::operator* ( ) const
inline

Definition at line 393 of file SampleProfReader.h.

◆ operator++()

iterator & llvm::sampleprof::SampleProfileNameTable::iterator::operator++ ( )
inline

Definition at line 388 of file SampleProfReader.h.

References iterator().

◆ operator==()

bool llvm::sampleprof::SampleProfileNameTable::iterator::operator== ( const iterator & RHS) const
inline

Definition at line 386 of file SampleProfReader.h.

References iterator(), and RHS.

Member Data Documentation

◆ UseLazy

UseLazy_t llvm::sampleprof::SampleProfileNameTable::iterator::UseLazy {}
staticconstexpr

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