LLVM 19.0.0git
Public Types | Public Member Functions | Static Public Member Functions | List of all members
llvm::vfs::RedirectingFileSystem::DirectoryEntry Class Reference

A directory in the vfs with explicitly specified contents. More...

#include "llvm/Support/VirtualFileSystem.h"

Inheritance diagram for llvm::vfs::RedirectingFileSystem::DirectoryEntry:
Inheritance graph

Public Types

using iterator = decltype(Contents)::iterator

Public Member Functions

 DirectoryEntry (StringRef Name, std::vector< std::unique_ptr< Entry > > Contents, Status S)
 Constructs a directory entry with explicitly specified contents.
 DirectoryEntry (StringRef Name, Status S)
 Constructs an empty directory entry.
Status getStatus ()
void addContent (std::unique_ptr< Entry > Content)
EntrygetLastContent () const
iterator contents_begin ()
iterator contents_end ()
- Public Member Functions inherited from llvm::vfs::RedirectingFileSystem::Entry
 Entry (EntryKind K, StringRef Name)
virtual ~Entry ()=default
StringRef getName () const
EntryKind getKind () const

Static Public Member Functions

static bool classof (const Entry *E)

Detailed Description

A directory in the vfs with explicitly specified contents.

Definition at line 809 of file VirtualFileSystem.h.

Member Typedef Documentation

◆ iterator

using llvm::vfs::RedirectingFileSystem::DirectoryEntry::iterator = decltype(Contents)::iterator

Definition at line 832 of file VirtualFileSystem.h.

Constructor & Destructor Documentation

◆ DirectoryEntry() [1/2]

llvm::vfs::RedirectingFileSystem::DirectoryEntry::DirectoryEntry ( StringRef  Name,
std::vector< std::unique_ptr< Entry > >  Contents,
Status  S 

Constructs a directory entry with explicitly specified contents.

Definition at line 815 of file VirtualFileSystem.h.

◆ DirectoryEntry() [2/2]

llvm::vfs::RedirectingFileSystem::DirectoryEntry::DirectoryEntry ( StringRef  Name,
Status  S 

Constructs an empty directory entry.

Definition at line 821 of file VirtualFileSystem.h.

Member Function Documentation

◆ addContent()

void llvm::vfs::RedirectingFileSystem::DirectoryEntry::addContent ( std::unique_ptr< Entry Content)

Definition at line 826 of file VirtualFileSystem.h.

References Content.

◆ classof()

static bool llvm::vfs::RedirectingFileSystem::DirectoryEntry::classof ( const Entry E)

Definition at line 837 of file VirtualFileSystem.h.

References E, and llvm::vfs::RedirectingFileSystem::EK_Directory.

◆ contents_begin()

iterator llvm::vfs::RedirectingFileSystem::DirectoryEntry::contents_begin ( )

Definition at line 834 of file VirtualFileSystem.h.

◆ contents_end()

iterator llvm::vfs::RedirectingFileSystem::DirectoryEntry::contents_end ( )

Definition at line 835 of file VirtualFileSystem.h.

◆ getLastContent()

Entry * llvm::vfs::RedirectingFileSystem::DirectoryEntry::getLastContent ( ) const

Definition at line 830 of file VirtualFileSystem.h.

◆ getStatus()

Status llvm::vfs::RedirectingFileSystem::DirectoryEntry::getStatus ( )

Definition at line 824 of file VirtualFileSystem.h.

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