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, symlink, hardlink or a directory.

Declared at: llvm/lib/Support/VirtualFileSystem.cpp:623

Inherits from: InMemoryNode

Member Variables

private llvm::vfs::Status Stat
private std::unique_ptr<llvm::MemoryBuffer> Buffer

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)

Declared at: llvm/lib/Support/VirtualFileSystem.cpp:628

Parameters

llvm::vfs::Status Stat
std::unique_ptr<llvm::MemoryBuffer> Buffer

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

Declared at: llvm/lib/Support/VirtualFileSystem.cpp:641

Parameters

const llvm::vfs::detail::InMemoryNode* N

llvm::MemoryBuffer* getBuffer() const

Declared at: llvm/lib/Support/VirtualFileSystem.cpp:635

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:632

Parameters

const llvm::Twine& RequestedName

std::string toString(unsigned int Indent) const

Declared at: llvm/lib/Support/VirtualFileSystem.cpp:637

Parameters

unsigned int Indent