LLVM  7.0.0svn
Public Member Functions | List of all members
llvm::sys::fs::directory_entry Class Reference

directory_entry - A single entry in a directory. More...

#include "llvm/Support/FileSystem.h"

Public Member Functions

 directory_entry (const Twine &path, bool follow_symlinks=true, basic_file_status st=basic_file_status())
 directory_entry ()=default
void assign (const Twine &path, basic_file_status st=basic_file_status())
void replace_filename (const Twine &filename, basic_file_status st=basic_file_status())
const std::string & path () const
ErrorOr< basic_file_statusstatus () const
bool operator== (const directory_entry &rhs) const
bool operator!= (const directory_entry &rhs) const
bool operator< (const directory_entry &rhs) const
bool operator<= (const directory_entry &rhs) const
bool operator> (const directory_entry &rhs) const
bool operator>= (const directory_entry &rhs) const

Detailed Description

directory_entry - A single entry in a directory.

Caches the status either from the result of the iteration syscall, or the first time status is called.

Definition at line 1089 of file FileSystem.h.

Constructor & Destructor Documentation

◆ directory_entry() [1/2]

llvm::sys::fs::directory_entry::directory_entry ( const Twine path,
bool  follow_symlinks = true,
basic_file_status  st = basic_file_status() 

Definition at line 1095 of file FileSystem.h.

◆ directory_entry() [2/2]

llvm::sys::fs::directory_entry::directory_entry ( )

Member Function Documentation

◆ assign()

void llvm::sys::fs::directory_entry::assign ( const Twine path,
basic_file_status  st = basic_file_status() 

Definition at line 1101 of file FileSystem.h.

References llvm::sys::path::filename(), and llvm::Twine::str().

◆ operator!=()

bool llvm::sys::fs::directory_entry::operator!= ( const directory_entry rhs) const

◆ operator<()

bool llvm::sys::fs::directory_entry::operator< ( const directory_entry rhs) const

◆ operator<=()

bool llvm::sys::fs::directory_entry::operator<= ( const directory_entry rhs) const

◆ operator==()

bool llvm::sys::fs::directory_entry::operator== ( const directory_entry rhs) const

Definition at line 1112 of file FileSystem.h.

◆ operator>()

bool llvm::sys::fs::directory_entry::operator> ( const directory_entry rhs) const

◆ operator>=()

bool llvm::sys::fs::directory_entry::operator>= ( const directory_entry rhs) const

◆ path()

const std::string& llvm::sys::fs::directory_entry::path ( ) const

◆ replace_filename()

void llvm::sys::fs::directory_entry::replace_filename ( const Twine filename,
basic_file_status  st = basic_file_status() 

◆ status()

ErrorOr<basic_file_status> llvm::sys::fs::directory_entry::status ( ) const

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