STLdoc
STLdocumentation
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Types | Public Member Functions | Private Attributes | List of all members
experimental::filesystem::v1::directory_entry Class Reference

Public Types

typedef directory_entry _Myt
 
typedef _FSPFX path::string_type string_type
 

Public Member Functions

 directory_entry ()
 
 directory_entry (const directory_entry &)=default
 
 ~directory_entry () _NOEXCEPT=default
 
directory_entryoperator= (const directory_entry &)=default
 
 directory_entry (directory_entry &&)=default
 
directory_entryoperator= (directory_entry &&)=default
 
 directory_entry (const _FSPFX path &_Path, file_status _Statarg=file_status(), file_status _Symstatarg=file_status())
 
void assign (const _FSPFX path &_Path, file_status _Statarg=file_status(), file_status _Symstatarg=file_status())
 
void replace_filename (const _FSPFX path &_Path, file_status _Statarg=file_status(), file_status _Symstatarg=file_status())
 
 operator const _FSPFX path & () const _NOEXCEPT
 
const _FSPFX pathpath () const _NOEXCEPT
 
file_status status () const
 
file_status status (error_code &_Code) const _NOEXCEPT
 
file_status symlink_status () const
 
file_status symlink_status (error_code &_Code) const _NOEXCEPT
 
bool operator== (const _Myt &_Right) const _NOEXCEPT
 
bool operator!= (const _Myt &_Right) const _NOEXCEPT
 
bool operator< (const _Myt &_Right) const _NOEXCEPT
 
bool operator> (const _Myt &_Right) const _NOEXCEPT
 
bool operator<= (const _Myt &_Right) const _NOEXCEPT
 
bool operator>= (const _Myt &_Right) const _NOEXCEPT
 

Private Attributes

_FSPFX path _Mypval
 
file_status _Mystat
 
file_status _Mysymstat
 

Member Typedef Documentation

Constructor & Destructor Documentation

experimental::filesystem::v1::directory_entry::directory_entry ( )
inline
1681  : _Mystat(),
1682  _Mysymstat()
1683  { // default construct
1684  }
file_status _Mystat
Definition: filesystem:1794
file_status _Mysymstat
Definition: filesystem:1795
experimental::filesystem::v1::directory_entry::directory_entry ( const directory_entry )
default
experimental::filesystem::v1::directory_entry::~directory_entry ( )
default
experimental::filesystem::v1::directory_entry::directory_entry ( directory_entry &&  )
default
experimental::filesystem::v1::directory_entry::directory_entry ( const _FSPFX path _Path,
file_status  _Statarg = file_status(),
file_status  _Symstatarg = file_status() 
)
inlineexplicit
1696  : _Mypval(_Path),
1697  _Mystat(_Statarg),
1698  _Mysymstat(_Symstatarg)
1699  { // construct from path and status
1700  }
_FSPFX path _Mypval
Definition: filesystem:1793
file_status _Mystat
Definition: filesystem:1794
file_status _Mysymstat
Definition: filesystem:1795

Member Function Documentation

void experimental::filesystem::v1::directory_entry::assign ( const _FSPFX path _Path,
file_status  _Statarg = file_status(),
file_status  _Symstatarg = file_status() 
)
inline
1705  { // assign path and status
1706  _Mypval = _Path;
1707  _Mystat = _Statarg;
1708  _Mysymstat = _Symstatarg;
1709  }
_FSPFX path _Mypval
Definition: filesystem:1793
file_status _Mystat
Definition: filesystem:1794
file_status _Mysymstat
Definition: filesystem:1795
experimental::filesystem::v1::directory_entry::operator const _FSPFX path & ( ) const
inline
1721  { // get path
1722  return (_Mypval);
1723  }
_FSPFX path _Mypval
Definition: filesystem:1793
bool experimental::filesystem::v1::directory_entry::operator!= ( const _Myt _Right) const
inline
1769  { // test if *this == _Right
1770  return (!(*this == _Right));
1771  }
constexpr const _Ty &() _Right
Definition: algorithm:3591
bool experimental::filesystem::v1::directory_entry::operator< ( const _Myt _Right) const
inline
1774  { // test if *this < _Right
1775  return (_Mypval < _Right._Mypval);
1776  }
_FSPFX path _Mypval
Definition: filesystem:1793
constexpr const _Ty &() _Right
Definition: algorithm:3591
bool experimental::filesystem::v1::directory_entry::operator<= ( const _Myt _Right) const
inline
1783  { // test if *this <= _Right
1784  return (!(_Right < *this));
1785  }
constexpr const _Ty &() _Right
Definition: algorithm:3591
directory_entry& experimental::filesystem::v1::directory_entry::operator= ( const directory_entry )
default
directory_entry& experimental::filesystem::v1::directory_entry::operator= ( directory_entry &&  )
default
bool experimental::filesystem::v1::directory_entry::operator== ( const _Myt _Right) const
inline
1764  { // test if *this == _Right
1765  return (_Mypval == _Right._Mypval);
1766  }
_FSPFX path _Mypval
Definition: filesystem:1793
constexpr const _Ty &() _Right
Definition: algorithm:3591
bool experimental::filesystem::v1::directory_entry::operator> ( const _Myt _Right) const
inline
1779  { // test if *this > _Right
1780  return (_Right < *this);
1781  }
constexpr const _Ty &() _Right
Definition: algorithm:3591
bool experimental::filesystem::v1::directory_entry::operator>= ( const _Myt _Right) const
inline
1788  { // test if *this <= _Right
1789  return (!(*this < _Right));
1790  }
constexpr const _Ty &() _Right
Definition: algorithm:3591
const _FSPFX path& experimental::filesystem::v1::directory_entry::path ( ) const
inline
1726  { // get path
1727  return (_Mypval);
1728  }
_FSPFX path _Mypval
Definition: filesystem:1793
void experimental::filesystem::v1::directory_entry::replace_filename ( const _FSPFX path _Path,
file_status  _Statarg = file_status(),
file_status  _Symstatarg = file_status() 
)
inline
1714  { // replace filename and assign status
1715  _Mypval = _Mypval.parent_path() / _Path;
1716  _Mystat = _Statarg;
1717  _Mysymstat = _Symstatarg;
1718  }
_FSPFX path _Mypval
Definition: filesystem:1793
file_status _Mystat
Definition: filesystem:1794
path parent_path() const
Definition: filesystem:1355
file_status _Mysymstat
Definition: filesystem:1795
file_status experimental::filesystem::v1::directory_entry::status ( ) const
inline
1731  { // get file status
1732  error_code _Code;
1733  return (status(_Code));
1734  }
Definition: system_error:221
file_status status() const
Definition: filesystem:1730
file_status experimental::filesystem::v1::directory_entry::status ( error_code _Code) const
inline
1737  { // get file status
1738  _Code = error_code();
1739  if (status_known(_Mystat))
1740  ;
1741  else if (status_known(_Mysymstat)
1742  && !is_symlink(_Mysymstat))
1743  _Mystat = _Mysymstat;
1744  else
1745  _Mystat = _FSPFX status(_Mypval, _Code);
1746  return (_Mystat);
1747  }
bool is_symlink(file_status) _NOEXCEPT
Definition: filesystem:2873
_FSPFX path _Mypval
Definition: filesystem:1793
Definition: system_error:221
file_status _Mystat
Definition: filesystem:1794
bool status_known(file_status) _NOEXCEPT
Definition: filesystem:3152
#define _FSPFX
Definition: filesystem:40
file_status status() const
Definition: filesystem:1730
file_status _Mysymstat
Definition: filesystem:1795
file_status experimental::filesystem::v1::directory_entry::symlink_status ( ) const
inline
1750  { // get file symlink status
1751  error_code _Code;
1752  return (symlink_status(_Code));
1753  }
Definition: system_error:221
file_status symlink_status() const
Definition: filesystem:1749
file_status experimental::filesystem::v1::directory_entry::symlink_status ( error_code _Code) const
inline
1756  { // get file symlink status
1757  _Code = error_code();
1758  if (!status_known(_Mysymstat))
1760  return (_Mysymstat);
1761  }
_FSPFX path _Mypval
Definition: filesystem:1793
Definition: system_error:221
bool status_known(file_status) _NOEXCEPT
Definition: filesystem:3152
file_status symlink_status() const
Definition: filesystem:1749
#define _FSPFX
Definition: filesystem:40
file_status _Mysymstat
Definition: filesystem:1795

Member Data Documentation

_FSPFX path experimental::filesystem::v1::directory_entry::_Mypval
private
file_status experimental::filesystem::v1::directory_entry::_Mystat
mutableprivate
file_status experimental::filesystem::v1::directory_entry::_Mysymstat
mutableprivate

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