YSTest
PreAlpha_b500_20140530
The YSLib Test Project
|
一般路径模板。 更多...
#include <path.hpp>
Public 类型 | |
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 |
Public 成员函数 | |
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 >()) | |
path & | operator= (const path &pth) |
path & | operator= (path &&pth) |
path & | operator= (std::initializer_list< value_type > il) |
bool | before (const path &pth) const |
bool | equals (const path &pth) const |
void | filter_self () |
norm & | get_norm () const |
value_type | get_root () const |
bool | is_absolute () const |
bool | is_relative () const |
void | merge_parents () |
void | swap (path &pth) |
Public 属性 | |
std::unique_ptr< norm > | p_norm |
Private 类型 | |
using | base = sequence_container_adaptor< _tSeqCon > |
![]() | |
using | container_type = typename base::container_type |
using | value_type = typename container_type::value_type |
using | size_type = typename container_type::size_type |
静态 Private 成员函数 | |
static std::unique_ptr< norm > | unique_norm (std::unique_ptr< norm > &p) |
相关函数 | |
(请注意: 这些不是成员函数.) | |
template<class _tSeqCon , class _tNorm > | |
void | normalize (path< _tSeqCon, _tNorm > &pth) |
正规化。 更多... | |
template<class _tSeqCon , class _tNorm > | |
void | swap (path< _tSeqCon, _tNorm > &x, path< _tSeqCon, _tNorm > &y) |
交换。 更多... | |
template<class _tSeqCon , class _tNorm > | |
_tSeqCon::value_type | to_string (const path< _tSeqCon, _tNorm > &pth, const typename _tSeqCon::value_type &seperator=&to_array< typename string_traits< typename _tSeqCon::value_type >::value_type >("/")[0]) |
取字符串表示。 更多... | |
template<class _tSeqCon , class _tNorm > | |
_tSeqCon::value_type | to_string_d (const path< _tSeqCon, _tNorm > &pth, typename string_traits< typename _tSeqCon::value_type >::value_type delimiter= '/') |
取分隔符结尾的字符串表示。 更多... | |
额外继承的成员函数 | |
![]() | |
sequence_container_adaptor ()=default | |
满足序列容器要求。 更多... | |
sequence_container_adaptor (size_type n) | |
sequence_container_adaptor (size_type n, const value_type &value) | |
template<class _tIn > | |
sequence_container_adaptor (_tIn first, _tIn last) | |
sequence_container_adaptor (const sequence_container_adaptor &)=default | |
sequence_container_adaptor (sequence_container_adaptor &&)=default | |
sequence_container_adaptor (std::initializer_list< value_type > il) | |
sequence_container_adaptor & | operator= (const sequence_container_adaptor &)=default |
sequence_container_adaptor & | operator= (sequence_container_adaptor &&)=default |
sequence_container_adaptor & | operator= (std::initializer_list< value_type > il) |
一般路径模板。
_tSeqCon | 可倒置的序列容器类型。 |
|
private |
using ystdex::path< _tSeqCon, _tNorm >::const_iterator = typename base::const_iterator |
using ystdex::path< _tSeqCon, _tNorm >::const_reference = typename _tSeqCon::const_reference |
using ystdex::path< _tSeqCon, _tNorm >::const_reverse_iterator = typename base::container_type::const_reverse_iterator |
using ystdex::path< _tSeqCon, _tNorm >::default_norm = ystdex::conditional_t<std::is_default_constructible< norm>::value, norm, file_path_norm<value_type>> |
using ystdex::path< _tSeqCon, _tNorm >::difference_type = typename base::difference_type |
using ystdex::path< _tSeqCon, _tNorm >::iterator = typename base::iterator |
using ystdex::path< _tSeqCon, _tNorm >::norm = _tNorm |
using ystdex::path< _tSeqCon, _tNorm >::reference = typename _tSeqCon::reference |
using ystdex::path< _tSeqCon, _tNorm >::reverse_iterator = typename base::container_type::reverse_iterator |
using ystdex::path< _tSeqCon, _tNorm >::size_type = typename base::size_type |
using ystdex::path< _tSeqCon, _tNorm >::value_type = typename _tSeqCon::value_type |
|
inline |
|
inlineexplicit |
|
inlineexplicit |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
参考 ystdex::erase_all_if() , 以及 platform_ex::Windows::s.
参考自 ystdex::path< _tSeqCon, _tNorm >::normalize().
|
inline |
参考 yconstraint.
参考自 ystdex::path< _tSeqCon, _tNorm >::before(), YSLib::IO::ClassifyNode() , 以及 ystdex::path< _tSeqCon, _tNorm >::equals().
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
参考 ystdex::swap().
参考自 ystdex::path< _tSeqCon, _tNorm >::path() , 以及 ystdex::path< _tSeqCon, _tNorm >::swap().
|
inlinestaticprivate |
|
related |
|
related |
|
related |
std::unique_ptr<norm> ystdex::path< _tSeqCon, _tNorm >::p_norm |