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

Public Member Functions

 InMemoryFile (Status Stat, std::unique_ptr< llvm::MemoryBuffer > Buffer)
 
Status getStatus (const Twine &RequestedName) const override
 Return the Status for this node.
 
llvm::MemoryBuffergetBuffer () 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
 
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
 

Static Public Member Functions

static bool classof (const InMemoryNode *N)
 

Detailed Description

Definition at line 639 of file VirtualFileSystem.cpp.

Constructor & Destructor Documentation

◆ InMemoryFile()

llvm::vfs::detail::InMemoryFile::InMemoryFile ( Status  Stat,
std::unique_ptr< llvm::MemoryBuffer Buffer 
)
inline

Definition at line 644 of file VirtualFileSystem.cpp.

References llvm::vfs::detail::IME_File.

Member Function Documentation

◆ classof()

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

Definition at line 657 of file VirtualFileSystem.cpp.

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

◆ getBuffer()

llvm::MemoryBuffer * llvm::vfs::detail::InMemoryFile::getBuffer ( ) const
inline

Definition at line 651 of file VirtualFileSystem.cpp.

◆ getStatus()

Status llvm::vfs::detail::InMemoryFile::getStatus ( const Twine RequestedName) const
inlineoverridevirtual

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.

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

Definition at line 648 of file VirtualFileSystem.cpp.

◆ toString()

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

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

Definition at line 653 of file VirtualFileSystem.cpp.

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


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