LLVM  8.0.1
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. More...
 
recursive_directory_iteratorincrement (std::error_code &EC)
 Equivalent to operator++, with an error code. More...
 
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. More...
 
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 209 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 2035 of file VirtualFileSystem.cpp.

References llvm::vfs::FileSystem::dir_begin(), and 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 2046 of file VirtualFileSystem.cpp.

References assert().

◆ level()

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

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

Definition at line 235 of file VirtualFileSystem.h.

References assert().

◆ no_push()

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

Definition at line 241 of file VirtualFileSystem.h.

◆ operator!=()

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

Definition at line 230 of file VirtualFileSystem.h.

◆ operator*()

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

Definition at line 224 of file VirtualFileSystem.h.

◆ operator->()

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

Definition at line 225 of file VirtualFileSystem.h.

◆ operator==()

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

Definition at line 227 of file VirtualFileSystem.h.


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