class InMemoryDirectory

Declaration

class InMemoryDirectory : 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:725

Inherits from: InMemoryNode

Member Variables

private llvm::vfs::Status Stat
private llvm::StringMap<std::unique_ptr<InMemoryNode>> Entries

Method Overview

  • public InMemoryDirectory(llvm::vfs::Status Stat)
  • public llvm::vfs::detail::InMemoryNode * addChild(llvm::StringRef Name, std::unique_ptr<InMemoryNode> Child)
  • public llvm::vfs::detail::InMemoryDirectory::const_iterator begin() const
  • public static bool classof(const llvm::vfs::detail::InMemoryNode * N)
  • public llvm::vfs::detail::InMemoryDirectory::const_iterator end() const
  • public llvm::vfs::detail::InMemoryNode * getChild(llvm::StringRef Name) const
  • public llvm::vfs::Status getStatus(const llvm::Twine & RequestedName) const
  • public llvm::sys::fs::UniqueID getUniqueID() const
  • public std::string toString(unsigned int Indent) const

Inherited from InMemoryNode:

Methods

InMemoryDirectory(llvm::vfs::Status Stat)

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

Parameters

llvm::vfs::Status Stat

llvm::vfs::detail::InMemoryNode* addChild(
    llvm::StringRef Name,
    std::unique_ptr<InMemoryNode> Child)

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

Parameters

llvm::StringRef Name
std::unique_ptr<InMemoryNode> Child

llvm::vfs::detail::InMemoryDirectory::
    const_iterator
    begin() const

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

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

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

Parameters

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

llvm::vfs::detail::InMemoryDirectory::
    const_iterator
    end() const

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

llvm::vfs::detail::InMemoryNode* getChild(
    llvm::StringRef Name) const

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

Parameters

llvm::StringRef Name

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

Parameters

const llvm::Twine& RequestedName

llvm::sys::fs::UniqueID getUniqueID() const

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

std::string toString(unsigned int Indent) const

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

Parameters

unsigned int Indent