LLVM  6.0.0svn
Public Member Functions | Friends | List of all members
llvm::sys::fs::file_status Class Reference

Represents the result of a call to sys::fs::status(). More...

#include "llvm/Support/FileSystem.h"

Inheritance diagram for llvm::sys::fs::file_status:
Inheritance graph
[legend]
Collaboration diagram for llvm::sys::fs::file_status:
Collaboration graph
[legend]

Public Member Functions

 file_status ()=default
 
 file_status (file_type Type)
 
UniqueID getUniqueID () const
 
uint32_t getLinkCount () const
 
- Public Member Functions inherited from llvm::sys::fs::basic_file_status
 basic_file_status ()=default
 
 basic_file_status (file_type Type)
 
file_type type () const
 
perms permissions () const
 
TimePoint getLastAccessedTime () const
 
TimePoint getLastModificationTime () const
 
void type (file_type v)
 
void permissions (perms p)
 

Friends

bool equivalent (file_status A, file_status B)
 Do file_status's represent the same thing? More...
 

Additional Inherited Members

- Protected Attributes inherited from llvm::sys::fs::basic_file_status
file_type Type = file_type::status_error
 
perms Perms = perms_not_known
 

Detailed Description

Represents the result of a call to sys::fs::status().

Definition at line 219 of file FileSystem.h.

Constructor & Destructor Documentation

◆ file_status() [1/2]

llvm::sys::fs::file_status::file_status ( )
default

◆ file_status() [2/2]

llvm::sys::fs::file_status::file_status ( file_type  Type)
inlineexplicit

Member Function Documentation

◆ getLinkCount()

uint32_t llvm::sys::fs::file_status::getLinkCount ( ) const

◆ getUniqueID()

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

Friends And Related Function Documentation

◆ equivalent

bool equivalent ( file_status  A,
file_status  B 
)
friend

Do file_status's represent the same thing?

Parameters
AInput file_status.
BInput file_status.

assert(status_known(A) || status_known(B));

Returns
True if A and B both represent the same file system entity, false otherwise.

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