LLVM 20.0.0git
Public Types | Public Member Functions | List of all members
llvm::RopePieceBTreeIterator Class Reference

RopePieceBTreeIterator - This class provides read-only forward iteration over bytes that are in a RopePieceBTree. More...

#include "llvm/ADT/RewriteRope.h"

Public Types

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

Public Member Functions

 RopePieceBTreeIterator ()=default
 
 RopePieceBTreeIterator (const void *N)
 
char operator* () const
 
bool operator== (const RopePieceBTreeIterator &RHS) const
 
bool operator!= (const RopePieceBTreeIterator &RHS) const
 
RopePieceBTreeIteratoroperator++ ()
 
RopePieceBTreeIterator operator++ (int)
 
llvm::StringRef piece () const
 
void MoveToNextPiece ()
 

Detailed Description

RopePieceBTreeIterator - This class provides read-only forward iteration over bytes that are in a RopePieceBTree.

This first iterates over bytes in a RopePiece, then iterates over RopePiece's in a RopePieceBTreeLeaf, then iterates over RopePieceBTreeLeaf's in a RopePieceBTree.

Definition at line 86 of file RewriteRope.h.

Member Typedef Documentation

◆ difference_type

Definition at line 100 of file RewriteRope.h.

◆ iterator_category

using llvm::RopePieceBTreeIterator::iterator_category = std::forward_iterator_tag

Definition at line 98 of file RewriteRope.h.

◆ pointer

Definition at line 101 of file RewriteRope.h.

◆ reference

Definition at line 102 of file RewriteRope.h.

◆ value_type

Definition at line 99 of file RewriteRope.h.

Constructor & Destructor Documentation

◆ RopePieceBTreeIterator() [1/2]

llvm::RopePieceBTreeIterator::RopePieceBTreeIterator ( )
default

◆ RopePieceBTreeIterator() [2/2]

RopePieceBTreeIterator::RopePieceBTreeIterator ( const void *  N)

Definition at line 668 of file RewriteRope.cpp.

References getCN(), and N.

Member Function Documentation

◆ MoveToNextPiece()

void RopePieceBTreeIterator::MoveToNextPiece ( )

Definition at line 690 of file RewriteRope.cpp.

References getCN().

Referenced by operator++().

◆ operator!=()

bool llvm::RopePieceBTreeIterator::operator!= ( const RopePieceBTreeIterator RHS) const
inline

Definition at line 112 of file RewriteRope.h.

References operator==(), and RHS.

◆ operator*()

char llvm::RopePieceBTreeIterator::operator* ( ) const
inline

Definition at line 107 of file RewriteRope.h.

◆ operator++() [1/2]

RopePieceBTreeIterator & llvm::RopePieceBTreeIterator::operator++ ( )
inline

Definition at line 116 of file RewriteRope.h.

References MoveToNextPiece(), and llvm::RopePiece::size().

◆ operator++() [2/2]

RopePieceBTreeIterator llvm::RopePieceBTreeIterator::operator++ ( int  )
inline

Definition at line 124 of file RewriteRope.h.

◆ operator==()

bool llvm::RopePieceBTreeIterator::operator== ( const RopePieceBTreeIterator RHS) const
inline

Definition at line 109 of file RewriteRope.h.

References RHS.

Referenced by operator!=().

◆ piece()

llvm::StringRef llvm::RopePieceBTreeIterator::piece ( ) const
inline

Definition at line 130 of file RewriteRope.h.

References llvm::RopePiece::size().


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