LLVM  8.0.1
Public Member Functions | List of all members
llvm::sys::fs::directory_iterator Class Reference

directory_iterator - Iterates through the entries in path. More...

#include "llvm/Support/FileSystem.h"

Public Member Functions

 directory_iterator (const Twine &path, std::error_code &ec, bool follow_symlinks=true)
 
 directory_iterator (const directory_entry &de, std::error_code &ec, bool follow_symlinks=true)
 
 directory_iterator ()=default
 Construct end iterator. More...
 
directory_iteratorincrement (std::error_code &ec)
 
const directory_entryoperator* () const
 
const directory_entryoperator-> () const
 
bool operator== (const directory_iterator &RHS) const
 
bool operator!= (const directory_iterator &RHS) const
 

Detailed Description

directory_iterator - Iterates through the entries in path.

There is no operator++ because we need an error_code. If it's really needed we can make it call report_fatal_error on error.

Definition at line 1197 of file FileSystem.h.

Constructor & Destructor Documentation

◆ directory_iterator() [1/3]

llvm::sys::fs::directory_iterator::directory_iterator ( const Twine path,
std::error_code &  ec,
bool  follow_symlinks = true 
)
inlineexplicit

◆ directory_iterator() [2/3]

llvm::sys::fs::directory_iterator::directory_iterator ( const directory_entry de,
std::error_code &  ec,
bool  follow_symlinks = true 
)
inlineexplicit

◆ directory_iterator() [3/3]

llvm::sys::fs::directory_iterator::directory_iterator ( )
default

Construct end iterator.

Member Function Documentation

◆ increment()

directory_iterator& llvm::sys::fs::directory_iterator::increment ( std::error_code &  ec)
inline

◆ operator!=()

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

Definition at line 1241 of file FileSystem.h.

◆ operator*()

const directory_entry& llvm::sys::fs::directory_iterator::operator* ( ) const
inline

Definition at line 1228 of file FileSystem.h.

◆ operator->()

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

Definition at line 1229 of file FileSystem.h.

◆ operator==()

bool llvm::sys::fs::directory_iterator::operator== ( const directory_iterator RHS) const
inline

Definition at line 1231 of file FileSystem.h.


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