STLdoc
STLdocumentation
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Types | Public Member Functions | Private Attributes | List of all members
tr2::sys::basic_directory_entry< _Path > Class Template Reference

Public Types

typedef basic_directory_entry< _Path > _Myt
 
typedef _Path path_type
 
typedef _Path::string_type string_type
 

Public Member Functions

 basic_directory_entry ()
 
 basic_directory_entry (const path_type &_Pval, file_status _Statarg=file_status(), file_status _Symstatarg=file_status())
 
 basic_directory_entry (const basic_directory_entry &_Right)
 
basic_directory_entryoperator= (const basic_directory_entry &_Right)
 
 basic_directory_entry (basic_directory_entry &&_Right)
 
basic_directory_entryoperator= (basic_directory_entry &&_Right)
 
void assign (const path_type &_Pval, file_status _Statarg=file_status(), file_status _Symstatarg=file_status())
 
void replace_leaf (const string_type &_Str, file_status _Statarg=file_status(), file_status _Symstatarg=file_status())
 
const path_typepath () const
 
 operator const path_type & () const
 
file_status status () const
 
file_status status (error_code &_Code) const
 
file_status symlink_status () const
 
file_status symlink_status (error_code &_Code) const
 
bool operator== (const _Myt &_Right) const
 
bool operator!= (const _Myt &_Right) const
 
bool operator< (const _Myt &_Right) const
 
bool operator> (const _Myt &_Right) const
 
bool operator<= (const _Myt &_Right) const
 
bool operator>= (const _Myt &_Right) const
 

Private Attributes

path_type _Mypval
 
file_type _Myftype
 
file_type _Mysymftype
 

Member Typedef Documentation

template<class _Path >
typedef basic_directory_entry<_Path> tr2::sys::basic_directory_entry< _Path >::_Myt
template<class _Path >
typedef _Path tr2::sys::basic_directory_entry< _Path >::path_type
template<class _Path >
typedef _Path::string_type tr2::sys::basic_directory_entry< _Path >::string_type

Constructor & Destructor Documentation

template<class _Path >
tr2::sys::basic_directory_entry< _Path >::basic_directory_entry ( )
inline
1064  { // default construct
1065  }
file_type _Mysymftype
Definition: filesystem:1210
file_type _Myftype
Definition: filesystem:1209
Definition: filesystem:34
template<class _Path >
tr2::sys::basic_directory_entry< _Path >::basic_directory_entry ( const path_type _Pval,
file_status  _Statarg = file_status(),
file_status  _Symstatarg = file_status() 
)
inlineexplicit
1070  : _Mypval(_Pval),
1071  _Myftype(_Statarg.type()),
1072  _Mysymftype(_Symstatarg.type())
1073  { // construct from path and status
1074  }
file_type _Mysymftype
Definition: filesystem:1210
file_type _Myftype
Definition: filesystem:1209
path_type _Mypval
Definition: filesystem:1208
template<class _Path >
tr2::sys::basic_directory_entry< _Path >::basic_directory_entry ( const basic_directory_entry< _Path > &  _Right)
inline
1077  : _Mypval(_Right._Mypval),
1078  _Myftype(_Right._Myftype),
1079  _Mysymftype(_Right._Mysymftype)
1080  { // copy construct
1081  }
file_type _Mysymftype
Definition: filesystem:1210
file_type _Myftype
Definition: filesystem:1209
path_type _Mypval
Definition: filesystem:1208
const _Ty & _Right
Definition: algorithm:4087
template<class _Path >
tr2::sys::basic_directory_entry< _Path >::basic_directory_entry ( basic_directory_entry< _Path > &&  _Right)
inline
1092  : _Mypval(_STD move(_Right._Mypval)),
1093  _Myftype(_Right._Myftype),
1094  _Mysymftype(_Right._Mysymftype)
1095  { // move construct
1096  }
_OutIt move(_InIt _First, _InIt _Last, _OutIt _Dest)
Definition: xutility:2447
file_type _Mysymftype
Definition: filesystem:1210
file_type _Myftype
Definition: filesystem:1209
path_type _Mypval
Definition: filesystem:1208
const _Ty & _Right
Definition: algorithm:4087

Member Function Documentation

template<class _Path >
void tr2::sys::basic_directory_entry< _Path >::assign ( const path_type _Pval,
file_status  _Statarg = file_status(),
file_status  _Symstatarg = file_status() 
)
inline
1109  { // assign path and status
1110  _Mypval = _Pval;
1111  _Myftype = _Statarg.type();
1112  _Mysymftype = _Symstatarg.type();
1113  }
file_type _Mysymftype
Definition: filesystem:1210
file_type _Myftype
Definition: filesystem:1209
path_type _Mypval
Definition: filesystem:1208
template<class _Path >
tr2::sys::basic_directory_entry< _Path >::operator const path_type & ( ) const
inline
1130  { // get path
1131  return (_Mypval);
1132  }
path_type _Mypval
Definition: filesystem:1208
template<class _Path >
bool tr2::sys::basic_directory_entry< _Path >::operator!= ( const _Myt _Right) const
inline
1184  { // test if *this == _Right
1185  return (!(*this == _Right));
1186  }
const _Ty & _Right
Definition: algorithm:4087
template<class _Path >
bool tr2::sys::basic_directory_entry< _Path >::operator< ( const _Myt _Right) const
inline
1189  { // test if *this < _Right
1190  return (_Mypval < _Right._Mypval);
1191  }
path_type _Mypval
Definition: filesystem:1208
const _Ty & _Right
Definition: algorithm:4087
template<class _Path >
bool tr2::sys::basic_directory_entry< _Path >::operator<= ( const _Myt _Right) const
inline
1198  { // test if *this <= _Right
1199  return (!(_Right < *this));
1200  }
const _Ty & _Right
Definition: algorithm:4087
template<class _Path >
basic_directory_entry& tr2::sys::basic_directory_entry< _Path >::operator= ( const basic_directory_entry< _Path > &  _Right)
inline
1084  { // copy assign
1085  _Mypval = _Right._Mypval;
1086  _Myftype = _Right._Myftype;
1087  _Mysymftype = _Right._Mysymftype;
1088  return (*this);
1089  }
file_type _Mysymftype
Definition: filesystem:1210
file_type _Myftype
Definition: filesystem:1209
path_type _Mypval
Definition: filesystem:1208
const _Ty & _Right
Definition: algorithm:4087
template<class _Path >
basic_directory_entry& tr2::sys::basic_directory_entry< _Path >::operator= ( basic_directory_entry< _Path > &&  _Right)
inline
1099  { // move assign
1100  _Mypval = _STD move(_Right._Mypval);
1101  _Myftype = _Right._Myftype;
1102  _Mysymftype = _Right._Mysymftype;
1103  return (*this);
1104  }
_OutIt move(_InIt _First, _InIt _Last, _OutIt _Dest)
Definition: xutility:2447
file_type _Mysymftype
Definition: filesystem:1210
file_type _Myftype
Definition: filesystem:1209
path_type _Mypval
Definition: filesystem:1208
const _Ty & _Right
Definition: algorithm:4087
template<class _Path >
bool tr2::sys::basic_directory_entry< _Path >::operator== ( const _Myt _Right) const
inline
1179  { // test if *this == _Right
1180  return (_Mypval == _Right._Mypval);
1181  }
path_type _Mypval
Definition: filesystem:1208
const _Ty & _Right
Definition: algorithm:4087
template<class _Path >
bool tr2::sys::basic_directory_entry< _Path >::operator> ( const _Myt _Right) const
inline
1194  { // test if *this > _Right
1195  return (_Right < *this);
1196  }
const _Ty & _Right
Definition: algorithm:4087
template<class _Path >
bool tr2::sys::basic_directory_entry< _Path >::operator>= ( const _Myt _Right) const
inline
1203  { // test if *this <= _Right
1204  return (!(*this < _Right));
1205  }
const _Ty & _Right
Definition: algorithm:4087
template<class _Path >
const path_type& tr2::sys::basic_directory_entry< _Path >::path ( ) const
inline
1125  { // get path
1126  return (_Mypval);
1127  }
path_type _Mypval
Definition: filesystem:1208
template<class _Path >
void tr2::sys::basic_directory_entry< _Path >::replace_leaf ( const string_type _Str,
file_status  _Statarg = file_status(),
file_status  _Symstatarg = file_status() 
)
inline
1118  { // replace leaf and assign status
1119  _Mypval = _Mypval.branch_path() / _Str;
1120  _Myftype = _Statarg.type();
1121  _Mysymftype = _Symstatarg.type();
1122  }
file_type _Mysymftype
Definition: filesystem:1210
file_type _Myftype
Definition: filesystem:1209
path_type _Mypval
Definition: filesystem:1208
template<class _Path >
file_status tr2::sys::basic_directory_entry< _Path >::status ( ) const
inline
1135  { // get file status
1136  int _Errno = 0;
1137  if (_Myftype != status_unknown)
1138  ;
1139  else if (_Mysymftype != status_unknown
1140  && _Mysymftype != symlink_file)
1142  else
1143  _Myftype = _Stat(_Mypval._Ptr(), _Errno);
1144  return (file_status(_Myftype));
1145  }
file_type _Mysymftype
Definition: filesystem:1210
Definition: filesystem:35
file_type _Myftype
Definition: filesystem:1209
_FS_DLL file_type __CLRCALL_PURE_OR_CDECL _Stat(const char *, int &)
path_type _Mypval
Definition: filesystem:1208
Definition: filesystem:34
template<class _Path >
file_status tr2::sys::basic_directory_entry< _Path >::status ( error_code _Code) const
inline
1148  { // get file status
1149  int _Errno = 0;
1150  if (_Myftype != status_unknown)
1151  ;
1152  else if (_Mysymftype != status_unknown
1153  && _Mysymftype != symlink_file)
1155  else
1156  _Myftype = _Stat(_Mypval._Ptr(), _Errno);
1157  _Code = error_code(_Errno, _STD system_category());
1158  return (file_status(_Myftype));
1159  }
const error_category & system_category() _NOEXCEPT
Definition: system_error:651
Definition: system_error:195
file_type _Mysymftype
Definition: filesystem:1210
Definition: filesystem:35
file_type _Myftype
Definition: filesystem:1209
_FS_DLL file_type __CLRCALL_PURE_OR_CDECL _Stat(const char *, int &)
path_type _Mypval
Definition: filesystem:1208
Definition: filesystem:34
template<class _Path >
file_status tr2::sys::basic_directory_entry< _Path >::symlink_status ( ) const
inline
1162  { // get file status
1163  int _Errno = 0;
1164  if (_Mysymftype == status_unknown)
1165  _Mysymftype = _Lstat(_Mypval._Ptr(), _Errno);
1166  return (file_status(_Mysymftype));
1167  }
file_type _Mysymftype
Definition: filesystem:1210
_FS_DLL file_type __CLRCALL_PURE_OR_CDECL _Lstat(const char *, int &)
path_type _Mypval
Definition: filesystem:1208
Definition: filesystem:34
template<class _Path >
file_status tr2::sys::basic_directory_entry< _Path >::symlink_status ( error_code _Code) const
inline
1170  { // get file symlink status
1171  int _Errno = 0;
1172  if (_Mysymftype == status_unknown)
1173  _Mysymftype = _Lstat(_Mypval._Ptr(), _Errno);
1174  _Code = error_code(_Errno, _STD system_category());
1175  return (file_status(_Mysymftype));
1176  }
const error_category & system_category() _NOEXCEPT
Definition: system_error:651
Definition: system_error:195
file_type _Mysymftype
Definition: filesystem:1210
_FS_DLL file_type __CLRCALL_PURE_OR_CDECL _Lstat(const char *, int &)
path_type _Mypval
Definition: filesystem:1208
Definition: filesystem:34

Member Data Documentation

template<class _Path >
file_type tr2::sys::basic_directory_entry< _Path >::_Myftype
mutableprivate
template<class _Path >
path_type tr2::sys::basic_directory_entry< _Path >::_Mypval
private
template<class _Path >
file_type tr2::sys::basic_directory_entry< _Path >::_Mysymftype
mutableprivate

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