YSTest  PreAlpha_b500_20140530
The YSLib Test Project
 全部  命名空间 文件 函数 变量 类型定义 枚举 枚举值 友元 宏定义  
YSLib::IO::Path类 参考

路径。 更多...

#include <FileSystem.h>

类 YSLib::IO::Path 继承关系图:
YSLib::IO::Path 的协作图:

Public 类型

using iterator = typename base::iterator
 
using const_iterator = typename base::const_iterator
 
using value_type = typename _tSeqCon::value_type
 

Public 成员函数

 DefDeCtor (Path) Path(const ucs2_t *str)
 无参数构造:默认实现。 更多...
 
 DefDeCopyCtor (Path) DefDeMoveCtor(Path) DefDeDtor(Path) DefDeCopyAssignment(Path) DefDeMoveAssignment(Path) Path &operator/
 复制构造:默认实现。 更多...
 
Pathoperator/= (const Path &)
 
 operator String () const
 转换为字符串。 更多...
 
 DefCvt (const, string, GetMBCS(CS_Path)) PDefH(string
 转换为窄字符串。 更多...
 
 PDefH (void, swap, Path &pth) ImplExpr(static_cast< ypath & >(pth).swap(*this)) friend PDefH(String
 
 Path (const ucs2string &str)
 
 Path (ucs2string &&str)
 
template<typename _type , yimpl(typename=ystdex::exclude_self_ctor_t< Path, _type >) >
 Path (_type &&arg, Text::Encoding enc=CS_Path)
 

Public 属性

 GetMBCS
 
Text::Encoding enc
 
 to_string
 

友元

bool operator== (const Path &, const Path &)
 
bool operator< (const Path &, const Path &)
 

相关函数

(请注意: 这些不是成员函数.)

#define PDefHOp(_t, _op,...)   PDefH(_t, operator _op, __VA_ARGS__)
 

额外继承的成员函数

- Private 类型 继承自 ystdex::path< _tSeqCon, _tNorm >
using value_type = typename _tSeqCon::value_type
 
using norm = _tNorm
 
using default_norm = ystdex::conditional_t< std::is_default_constructible< norm >::value, norm, file_path_norm< value_type >>
 
using reference = typename _tSeqCon::reference
 
using const_reference = typename _tSeqCon::const_reference
 
using size_type = typename base::size_type
 
using difference_type = typename base::difference_type
 
using iterator = typename base::iterator
 
using const_iterator = typename base::const_iterator
 
using reverse_iterator = typename base::container_type::reverse_iterator
 
using const_reverse_iterator = typename base::container_type::const_reverse_iterator
 
- Private 成员函数 继承自 ystdex::path< _tSeqCon, _tNorm >
 path (std::unique_ptr< norm > p=std::unique_ptr< norm >())
 
 path (base &&b, std::unique_ptr< norm > p=std::unique_ptr< norm >())
 
 path (size_type n, std::unique_ptr< norm > p=std::unique_ptr< norm >())
 
 path (size_type n, value_type root, std::unique_ptr< norm > p=std::unique_ptr< norm >())
 
template<typename _tIn >
 path (_tIn first, _tIn last, std::unique_ptr< norm > p=std::unique_ptr< norm >())
 
template<typename... _tParams>
 path (std::unique_ptr< norm > p, _tParams &&...args)
 
 path (const path &pth)
 
 path (path &&pth)
 
 path (std::initializer_list< value_type > il, std::unique_ptr< norm > p=std::unique_ptr< norm >())
 
pathoperator= (const path &pth)
 
pathoperator= (path &&pth)
 
pathoperator= (std::initializer_list< value_type > il)
 
bool before (const path &pth) const
 
bool equals (const path &pth) const
 
void filter_self ()
 
normget_norm () const
 
value_type get_root () const
 
bool is_absolute () const
 
bool is_relative () const
 
void merge_parents ()
 
void swap (path &pth)
 
- Private 属性 继承自 ystdex::path< _tSeqCon, _tNorm >
std::unique_ptr< normp_norm
 

详细描述

路径。

警告
非虚析构。

在文件 YSLib/Service/FileSystem.h75 行定义.

成员类型定义说明

using ystdex::path< _tSeqCon, _tNorm >::const_iterator = typename base::const_iterator

在文件 path.hpp165 行定义.

using ystdex::path< _tSeqCon, _tNorm >::iterator = typename base::iterator

在文件 path.hpp164 行定义.

using ystdex::path< _tSeqCon, _tNorm >::value_type = typename _tSeqCon::value_type
自从
build 409

在文件 path.hpp155 行定义.

构造及析构函数说明

YSLib::IO::Path::Path ( const ucs2string str)
inline
自从
build 402

在文件 YSLib/Service/FileSystem.h93 行定义.

YSLib::IO::Path::Path ( ucs2string &&  str)
inline

在文件 YSLib/Service/FileSystem.h96 行定义.

template<typename _type , yimpl(typename=ystdex::exclude_self_ctor_t< Path, _type >) >
YSLib::IO::Path::Path ( _type &&  arg,
Text::Encoding  enc = CS_Path 
)
inline
自从
build 448

在文件 YSLib/Service/FileSystem.h102 行定义.

成员函数说明

YSLib::IO::Path::DefCvt ( const  ,
string  ,
GetMBCS(CS_Path)   
)

转换为窄字符串。

自从
build 411

取指定编码的多字节字符串。

自从
build 411
YSLib::IO::Path::DefDeCopyCtor ( Path  )

复制构造:默认实现。

转移构造:默认实现。

复制赋值:默认实现。

自从
build 295

转移赋值:默认实现。

自从
build 295追加路径。
build 410
YSLib::IO::Path::DefDeCtor ( Path  ) const
inline

无参数构造:默认实现。

在文件 YSLib/Service/FileSystem.h87 行定义.

YSLib::IO::Path::operator String ( ) const

转换为字符串。

注解
使用 VerifyDirectory 验证,当且仅当确认为可打开的目录时结果以分隔符结尾。
自从
build 409

在文件 YSLib/Service/FileSystem.cpp63 行定义.

参考 YSLib::IO::VerifyDirectory().

函数调用图:

Path & YSLib::IO::Path::operator/= ( const Path pth)

在文件 YSLib/Service/FileSystem.cpp42 行定义.

YSLib::IO::Path::PDefH ( void  ,
swap  ,
Path pth 
)
自从
build 475

友元及相关函数文档

bool operator< ( const Path ,
const Path  
)
friend
bool operator== ( const Path ,
const Path  
)
friend
#define PDefHOp (   _t,
  _op,
  ... 
)    PDefH(_t, operator _op, __VA_ARGS__)
related

类成员变量说明

Text::Encoding YSLib::IO::Path::enc
初始值:
= CS_Path) const
ImplRet(String(*this).GetMBCS(enc))
String
GetString() const

在文件 YSLib/Service/FileSystem.h158 行定义.

YSLib::IO::Path::GetMBCS

在文件 YSLib/Service/FileSystem.h158 行定义.

YSLib::IO::Path::to_string

在文件 YSLib/Service/FileSystem.h224 行定义.


该类的文档由以下文件生成: