LLVM  14.0.0git
Public Types | Public Member Functions | Static Public Member Functions | List of all members
llvm::vfs::detail::InMemoryDirectory Class Reference
Inheritance diagram for llvm::vfs::detail::InMemoryDirectory:
Inheritance graph
[legend]
Collaboration diagram for llvm::vfs::detail::InMemoryDirectory:
Collaboration graph
[legend]

Public Types

using const_iterator = decltype(Entries)::const_iterator
 

Public Member Functions

 InMemoryDirectory (Status Stat)
 
Status getStatus (const Twine &RequestedName) const
 Return the Status for this node. More...
 
UniqueID getUniqueID () const
 
InMemoryNodegetChild (StringRef Name)
 
InMemoryNodeaddChild (StringRef Name, std::unique_ptr< InMemoryNode > Child)
 
const_iterator begin () const
 
const_iterator end () const
 
std::string toString (unsigned Indent) const override
 
- Public Member Functions inherited from llvm::vfs::detail::InMemoryNode
 InMemoryNode (llvm::StringRef FileName, InMemoryNodeKind Kind)
 
virtual ~InMemoryNode ()=default
 
StringRef getFileName () const
 Get the filename of this node (the name without the directory part). More...
 
InMemoryNodeKind getKind () const
 

Static Public Member Functions

static bool classof (const InMemoryNode *N)
 

Detailed Description

Definition at line 660 of file VirtualFileSystem.cpp.

Member Typedef Documentation

◆ const_iterator

Definition at line 689 of file VirtualFileSystem.cpp.

Constructor & Destructor Documentation

◆ InMemoryDirectory()

llvm::vfs::detail::InMemoryDirectory::InMemoryDirectory ( Status  Stat)
inline

Definition at line 665 of file VirtualFileSystem.cpp.

Member Function Documentation

◆ addChild()

InMemoryNode* llvm::vfs::detail::InMemoryDirectory::addChild ( StringRef  Name,
std::unique_ptr< InMemoryNode Child 
)
inline

Definition at line 684 of file VirtualFileSystem.cpp.

◆ begin()

const_iterator llvm::vfs::detail::InMemoryDirectory::begin ( ) const
inline

Definition at line 691 of file VirtualFileSystem.cpp.

◆ classof()

static bool llvm::vfs::detail::InMemoryDirectory::classof ( const InMemoryNode N)
inlinestatic

Definition at line 702 of file VirtualFileSystem.cpp.

References llvm::vfs::detail::IME_Directory, and N.

◆ end()

const_iterator llvm::vfs::detail::InMemoryDirectory::end ( ) const
inline

Definition at line 692 of file VirtualFileSystem.cpp.

◆ getChild()

InMemoryNode* llvm::vfs::detail::InMemoryDirectory::getChild ( StringRef  Name)
inline

Definition at line 677 of file VirtualFileSystem.cpp.

References I.

◆ getStatus()

Status llvm::vfs::detail::InMemoryDirectory::getStatus ( const Twine RequestedName) const
inline

Return the Status for this node.

RequestedName should be the name through which the caller referred to this node. It will override Status::Name in the return value, to mimic the behavior of RealFile.

Definition at line 671 of file VirtualFileSystem.cpp.

◆ getUniqueID()

UniqueID llvm::vfs::detail::InMemoryDirectory::getUniqueID ( ) const
inline

Definition at line 675 of file VirtualFileSystem.cpp.

References llvm::vfs::Status::getUniqueID().

◆ toString()

std::string llvm::vfs::detail::InMemoryDirectory::toString ( unsigned  Indent) const
inlineoverridevirtual

Implements llvm::vfs::detail::InMemoryNode.

Definition at line 694 of file VirtualFileSystem.cpp.

References llvm::vfs::Status::getName().


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