LLVM 20.0.0git
Public Member Functions | List of all members
llvm::vfs::recursive_directory_iterator Class Reference

An input iterator over the recursive contents of a virtual path, similar to llvm::sys::fs::recursive_directory_iterator. More...

#include "llvm/Support/VirtualFileSystem.h"

Public Member Functions

 recursive_directory_iterator (FileSystem &FS, const Twine &Path, std::error_code &EC)
 
 recursive_directory_iterator ()=default
 Construct an 'end' iterator.
 
recursive_directory_iteratorincrement (std::error_code &EC)
 Equivalent to operator++, with an error code.
 
const directory_entryoperator* () const
 
const directory_entryoperator-> () const
 
bool operator== (const recursive_directory_iterator &Other) const
 
bool operator!= (const recursive_directory_iterator &RHS) const
 
int level () const
 Gets the current level. Starting path is at level 0.
 
void no_push ()
 

Detailed Description

An input iterator over the recursive contents of a virtual path, similar to llvm::sys::fs::recursive_directory_iterator.

Definition at line 229 of file VirtualFileSystem.h.

Constructor & Destructor Documentation

◆ recursive_directory_iterator() [1/2]

vfs::recursive_directory_iterator::recursive_directory_iterator ( FileSystem FS,
const Twine Path,
std::error_code &  EC 
)

Definition at line 2910 of file VirtualFileSystem.cpp.

References I.

◆ recursive_directory_iterator() [2/2]

llvm::vfs::recursive_directory_iterator::recursive_directory_iterator ( )
default

Construct an 'end' iterator.

Member Function Documentation

◆ increment()

vfs::recursive_directory_iterator & recursive_directory_iterator::increment ( std::error_code &  EC)

Equivalent to operator++, with an error code.

Definition at line 2921 of file VirtualFileSystem.cpp.

References assert(), llvm::sys::fs::directory_file, End, and I.

◆ level()

int llvm::vfs::recursive_directory_iterator::level ( ) const
inline

Gets the current level. Starting path is at level 0.

Definition at line 255 of file VirtualFileSystem.h.

References assert().

◆ no_push()

void llvm::vfs::recursive_directory_iterator::no_push ( )
inline

Definition at line 261 of file VirtualFileSystem.h.

◆ operator!=()

bool llvm::vfs::recursive_directory_iterator::operator!= ( const recursive_directory_iterator RHS) const
inline

Definition at line 250 of file VirtualFileSystem.h.

References RHS.

◆ operator*()

const directory_entry & llvm::vfs::recursive_directory_iterator::operator* ( ) const
inline

Definition at line 244 of file VirtualFileSystem.h.

◆ operator->()

const directory_entry * llvm::vfs::recursive_directory_iterator::operator-> ( ) const
inline

Definition at line 245 of file VirtualFileSystem.h.

◆ operator==()

bool llvm::vfs::recursive_directory_iterator::operator== ( const recursive_directory_iterator Other) const
inline

Definition at line 247 of file VirtualFileSystem.h.

References llvm::Other.


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