clang  8.0.0svn
Public Types | Public Member Functions | Static Public Member Functions | List of all members
clang::vfs::detail::InMemoryDirectory Class Reference
Inheritance diagram for clang::vfs::detail::InMemoryDirectory:
Inheritance graph
Collaboration diagram for clang::vfs::detail::InMemoryDirectory:
Collaboration graph

Public Types

using const_iterator = decltype(Entries)::const_iterator

Public Member Functions

 InMemoryDirectory (Status Stat)
Status getStatus (StringRef RequestedName) const
 Return the Status for this node. More...
InMemoryNodegetChild (StringRef Name)
InMemoryNodeaddChild (StringRef Name, std::unique_ptr< InMemoryNode > Child)
const_iterator begin () const
const_iterator end () const
std::string toString (unsigned Indent) const override
- Public Member Functions inherited from clang::vfs::detail::InMemoryNode
 InMemoryNode (llvm::StringRef FileName, InMemoryNodeKind Kind)
virtual ~InMemoryNode ()=default
StringRef getFileName () const
 Get the filename of this node (the name without the directory part). More...
InMemoryNodeKind getKind () const

Static Public Member Functions

static bool classof (const InMemoryNode *N)

Detailed Description

Definition at line 567 of file VirtualFileSystem.cpp.

Member Typedef Documentation

◆ const_iterator

Definition at line 593 of file VirtualFileSystem.cpp.

Constructor & Destructor Documentation

◆ InMemoryDirectory()

clang::vfs::detail::InMemoryDirectory::InMemoryDirectory ( Status  Stat)

Definition at line 572 of file VirtualFileSystem.cpp.

Member Function Documentation

◆ addChild()

InMemoryNode* clang::vfs::detail::InMemoryDirectory::addChild ( StringRef  Name,
std::unique_ptr< InMemoryNode Child 

Definition at line 588 of file VirtualFileSystem.cpp.

◆ begin()

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

Definition at line 595 of file VirtualFileSystem.cpp.

◆ classof()

static bool clang::vfs::detail::InMemoryDirectory::classof ( const InMemoryNode N)

◆ end()

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

Definition at line 596 of file VirtualFileSystem.cpp.

◆ getChild()

InMemoryNode* clang::vfs::detail::InMemoryDirectory::getChild ( StringRef  Name)

Definition at line 581 of file VirtualFileSystem.cpp.

◆ getStatus()

Status clang::vfs::detail::InMemoryDirectory::getStatus ( StringRef  RequestedName) const

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.

Definition at line 578 of file VirtualFileSystem.cpp.

◆ toString()

std::string clang::vfs::detail::InMemoryDirectory::toString ( unsigned  Indent) const

Implements clang::vfs::detail::InMemoryNode.

Definition at line 598 of file VirtualFileSystem.cpp.

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