LLVM 22.0.0git
llvm::vfs::detail::InMemoryNode Class Referenceabstract

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

Inheritance diagram for llvm::vfs::detail::InMemoryNode:
[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.
StringRef getFileName () const
 Get the filename of this node (the name without the directory part).
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, symlink, hardlink or a directory.

Definition at line 641 of file VirtualFileSystem.cpp.

Constructor & Destructor Documentation

◆ InMemoryNode()

◆ ~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 657 of file VirtualFileSystem.cpp.

◆ getKind()

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

Definition at line 658 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: