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

Adaptor from InMemoryDir::iterator to directory_iterator. More...

Inheritance diagram for llvm::vfs::InMemoryFileSystem::DirIterator:
Inheritance graph
[legend]

Public Member Functions

 DirIterator ()=default
 
 DirIterator (const InMemoryFileSystem *FS, const detail::InMemoryDirectory &Dir, std::string RequestedDirName)
 
std::error_code increment () override
 Sets CurrentEntry to the next entry in the directory on success, to directory_entry() at end, or returns a system-defined error_code.
 
- Public Member Functions inherited from llvm::vfs::detail::DirIterImpl
virtual ~DirIterImpl ()
 
virtual std::error_code increment ()=0
 Sets CurrentEntry to the next entry in the directory on success, to directory_entry() at end, or returns a system-defined error_code.
 

Additional Inherited Members

- Public Attributes inherited from llvm::vfs::detail::DirIterImpl
directory_entry CurrentEntry
 

Detailed Description

Adaptor from InMemoryDir::iterator to directory_iterator.

Definition at line 1104 of file VirtualFileSystem.cpp.

Constructor & Destructor Documentation

◆ DirIterator() [1/2]

llvm::vfs::InMemoryFileSystem::DirIterator::DirIterator ( )
default

◆ DirIterator() [2/2]

llvm::vfs::InMemoryFileSystem::DirIterator::DirIterator ( const InMemoryFileSystem FS,
const detail::InMemoryDirectory Dir,
std::string  RequestedDirName 
)
inline

Definition at line 1142 of file VirtualFileSystem.cpp.

References I.

Member Function Documentation

◆ increment()

std::error_code llvm::vfs::InMemoryFileSystem::DirIterator::increment ( )
inlineoverridevirtual

Sets CurrentEntry to the next entry in the directory on success, to directory_entry() at end, or returns a system-defined error_code.

Implements llvm::vfs::detail::DirIterImpl.

Definition at line 1150 of file VirtualFileSystem.cpp.

References I.


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