class InMemoryFile
Declaration
class InMemoryFile : public InMemoryNode { /* full declaration omitted */ };
Description
The in memory file system is a tree of Nodes. Every node can either be a file , hardlink or a directory.
Declared at: llvm/lib/Support/VirtualFileSystem.cpp:547
Inherits from: InMemoryNode
Method Overview
- public InMemoryFile(llvm::vfs::Status Stat, std::unique_ptr<llvm::MemoryBuffer> Buffer)
- public static bool classof(const llvm::vfs::detail::InMemoryNode * N)
- public llvm::MemoryBuffer * getBuffer() const
- public llvm::vfs::Status getStatus(const llvm::Twine & RequestedName) const
- public std::string toString(unsigned int Indent) const
Inherited from InMemoryNode:
Methods
¶InMemoryFile(
llvm::vfs::Status Stat,
std::unique_ptr<llvm::MemoryBuffer> Buffer)
InMemoryFile(
llvm::vfs::Status Stat,
std::unique_ptr<llvm::MemoryBuffer> Buffer)
Declared at: llvm/lib/Support/VirtualFileSystem.cpp:552
Parameters
- llvm::vfs::Status Stat
- std::unique_ptr<llvm::MemoryBuffer> Buffer
¶static bool classof(
const llvm::vfs::detail::InMemoryNode* N)
static bool classof(
const llvm::vfs::detail::InMemoryNode* N)
Declared at: llvm/lib/Support/VirtualFileSystem.cpp:568
Parameters
- const llvm::vfs::detail::InMemoryNode* N
¶llvm::MemoryBuffer* getBuffer() const
llvm::MemoryBuffer* getBuffer() const
Declared at: llvm/lib/Support/VirtualFileSystem.cpp:562
¶llvm::vfs::Status getStatus(
const llvm::Twine& RequestedName) const
llvm::vfs::Status getStatus(
const llvm::Twine& RequestedName) const
Description
Return the \p Status for this node. \p RequestedName should be the name through which the caller referred to this node. It will override\p Status::Name in the return value, to mimic the behavior of \p RealFile.
Declared at: llvm/lib/Support/VirtualFileSystem.cpp:559
Parameters
- const llvm::Twine& RequestedName
¶std::string toString(unsigned int Indent) const
std::string toString(unsigned int Indent) const
Declared at: llvm/lib/Support/VirtualFileSystem.cpp:564
Parameters
- unsigned int Indent