LLVM 22.0.0git
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:
[legend]

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 826 of file VirtualFileSystem.h.

Member Typedef Documentation

◆ iterator

Definition at line 849 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 )
inline

Constructs a directory entry with explicitly specified contents.

Definition at line 832 of file VirtualFileSystem.h.

References llvm::vfs::RedirectingFileSystem::EK_Directory, llvm::vfs::RedirectingFileSystem::Entry::Entry(), and llvm::move().

◆ DirectoryEntry() [2/2]

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

Constructs an empty directory entry.

Definition at line 838 of file VirtualFileSystem.h.

References llvm::vfs::RedirectingFileSystem::EK_Directory, llvm::vfs::RedirectingFileSystem::Entry::Entry(), and llvm::move().

Member Function Documentation

◆ addContent()

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

Definition at line 843 of file VirtualFileSystem.h.

◆ classof()

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

◆ contents_begin()

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

Definition at line 851 of file VirtualFileSystem.h.

◆ contents_end()

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

Definition at line 852 of file VirtualFileSystem.h.

◆ getLastContent()

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

◆ getStatus()

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

Definition at line 841 of file VirtualFileSystem.h.


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