clang 24.0.0git
clang::StackFrame::parent_iterator Class Reference

Forward iterator over a chain of StackFrame parents. More...

#include "clang/Analysis/AnalysisDeclContext.h"

Public Types

using iterator_category = std::forward_iterator_tag
using value_type = const StackFrame
using difference_type = std::ptrdiff_t
using pointer = const StackFrame *
using reference = const StackFrame &

Public Member Functions

 parent_iterator ()=default
 parent_iterator (const StackFrame *SF)
reference operator* () const
pointer operator-> () const
parent_iteratoroperator++ ()
parent_iterator operator++ (int)
bool operator== (const parent_iterator &Other) const
bool operator!= (const parent_iterator &Other) const

Detailed Description

Forward iterator over a chain of StackFrame parents.

Advancing follows getParent(); the past-the-end iterator holds a null frame.

Definition at line 253 of file AnalysisDeclContext.h.

Member Typedef Documentation

◆ difference_type

Definition at line 259 of file AnalysisDeclContext.h.

◆ iterator_category

using clang::StackFrame::parent_iterator::iterator_category = std::forward_iterator_tag

Definition at line 257 of file AnalysisDeclContext.h.

◆ pointer

◆ reference

◆ value_type

Constructor & Destructor Documentation

◆ parent_iterator() [1/2]

clang::StackFrame::parent_iterator::parent_iterator ( )
default

◆ parent_iterator() [2/2]

clang::StackFrame::parent_iterator::parent_iterator ( const StackFrame * SF)
inlineexplicit

Definition at line 264 of file AnalysisDeclContext.h.

References clang::StackFrame::StackFrame().

Member Function Documentation

◆ operator!=()

bool clang::StackFrame::parent_iterator::operator!= ( const parent_iterator & Other) const
inline

Definition at line 281 of file AnalysisDeclContext.h.

References clang::Other, and parent_iterator().

◆ operator*()

reference clang::StackFrame::parent_iterator::operator* ( ) const
inline

Definition at line 266 of file AnalysisDeclContext.h.

◆ operator++() [1/2]

parent_iterator & clang::StackFrame::parent_iterator::operator++ ( )
inline

Definition at line 268 of file AnalysisDeclContext.h.

References parent_iterator().

◆ operator++() [2/2]

parent_iterator clang::StackFrame::parent_iterator::operator++ ( int )
inline

Definition at line 273 of file AnalysisDeclContext.h.

References parent_iterator().

◆ operator->()

pointer clang::StackFrame::parent_iterator::operator-> ( ) const
inline

Definition at line 267 of file AnalysisDeclContext.h.

◆ operator==()

bool clang::StackFrame::parent_iterator::operator== ( const parent_iterator & Other) const
inline

Definition at line 278 of file AnalysisDeclContext.h.

References clang::Other, and parent_iterator().


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