LLVM API Documentation

Public Member Functions
llvm::sys::fs::directory_iterator Class Reference

#include <FileSystem.h>

List of all members.

Public Member Functions

 directory_iterator (const Twine &path, std::error_code &ec)
 directory_iterator (const directory_entry &de, std::error_code &ec)
 directory_iterator ()
 Construct end iterator.
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 753 of file FileSystem.h.


Constructor & Destructor Documentation

llvm::sys::fs::directory_iterator::directory_iterator ( const Twine path,
std::error_code &  ec 
) [inline, explicit]

Definition at line 757 of file FileSystem.h.

References directory_iterator().

llvm::sys::fs::directory_iterator::directory_iterator ( const directory_entry de,
std::error_code &  ec 
) [inline, explicit]

Definition at line 764 of file FileSystem.h.

Construct end iterator.

Definition at line 770 of file FileSystem.h.

References llvm::sys::fs::detail::directory_iterator_construct(), and llvm::sys::fs::directory_entry::path().

Referenced by directory_iterator().


Member Function Documentation

Definition at line 773 of file FileSystem.h.

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

Definition at line 791 of file FileSystem.h.

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

Definition at line 778 of file FileSystem.h.

const directory_entry* llvm::sys::fs::directory_iterator::operator-> ( ) const [inline]
bool llvm::sys::fs::directory_iterator::operator== ( const directory_iterator RHS) const [inline]

Definition at line 781 of file FileSystem.h.


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