LLVM  15.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
[legend]
Collaboration diagram for llvm::vfs::RedirectingFileSystem::DirectoryEntry:
Collaboration graph
[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. More...
 
 DirectoryEntry (StringRef Name, Status S)
 Constructs an empty directory entry. More...
 
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 722 of file VirtualFileSystem.h.

Member Typedef Documentation

◆ iterator

Definition at line 745 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 728 of file VirtualFileSystem.h.

References S.

◆ DirectoryEntry() [2/2]

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

Constructs an empty directory entry.

Definition at line 734 of file VirtualFileSystem.h.

References S.

Member Function Documentation

◆ addContent()

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

Definition at line 739 of file VirtualFileSystem.h.

References Content, and move.

◆ classof()

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

Definition at line 750 of file VirtualFileSystem.h.

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

◆ contents_begin()

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

Definition at line 747 of file VirtualFileSystem.h.

◆ contents_end()

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

Definition at line 748 of file VirtualFileSystem.h.

◆ getLastContent()

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

Definition at line 743 of file VirtualFileSystem.h.

◆ getStatus()

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

Definition at line 737 of file VirtualFileSystem.h.

References S.


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