LLVM  14.0.0git
Public Member Functions | List of all members
llvm::vfs::detail::InMemoryNode Class Referenceabstract

The in memory file system is a tree of Nodes. More...

Inheritance diagram for llvm::vfs::detail::InMemoryNode:
Inheritance graph
[legend]

Public Member Functions

 InMemoryNode (llvm::StringRef FileName, InMemoryNodeKind Kind)
 
virtual ~InMemoryNode ()=default
 
virtual Status getStatus (const Twine &RequestedName) const =0
 Return the Status for this node. More...
 
StringRef getFileName () const
 Get the filename of this node (the name without the directory part). More...
 
InMemoryNodeKind getKind () const
 
virtual std::string toString (unsigned Indent) const =0
 

Detailed Description

The in memory file system is a tree of Nodes.

Every node can either be a file , hardlink or a directory.

Definition at line 564 of file VirtualFileSystem.cpp.

Constructor & Destructor Documentation

◆ InMemoryNode()

llvm::vfs::detail::InMemoryNode::InMemoryNode ( llvm::StringRef  FileName,
InMemoryNodeKind  Kind 
)
inline

Definition at line 569 of file VirtualFileSystem.cpp.

References string.

◆ ~InMemoryNode()

virtual llvm::vfs::detail::InMemoryNode::~InMemoryNode ( )
virtualdefault

Member Function Documentation

◆ getFileName()

StringRef llvm::vfs::detail::InMemoryNode::getFileName ( ) const
inline

Get the filename of this node (the name without the directory part).

Definition at line 580 of file VirtualFileSystem.cpp.

◆ getKind()

InMemoryNodeKind llvm::vfs::detail::InMemoryNode::getKind ( ) const
inline

Definition at line 581 of file VirtualFileSystem.cpp.

◆ getStatus()

virtual Status llvm::vfs::detail::InMemoryNode::getStatus ( const Twine RequestedName) const
pure virtual

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.

Implemented in llvm::vfs::detail::InMemoryDirectory, and llvm::vfs::detail::InMemoryFile.

◆ toString()

virtual std::string llvm::vfs::detail::InMemoryNode::toString ( unsigned  Indent) const
pure virtual

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