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

An input iterator over the entries in a virtual path, similar to llvm::sys::fs::directory_iterator. More...

#include "llvm/Support/VirtualFileSystem.h"

Public Member Functions

 directory_iterator (std::shared_ptr< detail::DirIterImpl > I)
 
 directory_iterator ()=default
 Construct an 'end' iterator.
 
directory_iteratorincrement (std::error_code &EC)
 Equivalent to operator++, with an error code.
 
const directory_entryoperator* () const
 
const directory_entryoperator-> () const
 
bool operator== (const directory_iterator &RHS) const
 
bool operator!= (const directory_iterator &RHS) const
 

Detailed Description

An input iterator over the entries in a virtual path, similar to llvm::sys::fs::directory_iterator.

Definition at line 179 of file VirtualFileSystem.h.

Constructor & Destructor Documentation

◆ directory_iterator() [1/2]

llvm::vfs::directory_iterator::directory_iterator ( std::shared_ptr< detail::DirIterImpl I)
inline

Definition at line 183 of file VirtualFileSystem.h.

References assert().

◆ directory_iterator() [2/2]

llvm::vfs::directory_iterator::directory_iterator ( )
default

Construct an 'end' iterator.

Member Function Documentation

◆ increment()

directory_iterator & llvm::vfs::directory_iterator::increment ( std::error_code &  EC)
inline

Equivalent to operator++, with an error code.

Definition at line 194 of file VirtualFileSystem.h.

References assert().

◆ operator!=()

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

Definition at line 210 of file VirtualFileSystem.h.

References RHS.

◆ operator*()

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

Definition at line 202 of file VirtualFileSystem.h.

◆ operator->()

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

Definition at line 203 of file VirtualFileSystem.h.

◆ operator==()

bool llvm::vfs::directory_iterator::operator== ( const directory_iterator RHS) const
inline

Definition at line 205 of file VirtualFileSystem.h.

References RHS.


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