Scroll to navigation

std::experimental::filesystem::path(3cxx) std::experimental::filesystem::path(3cxx)

NAME

std::experimental::filesystem::path - A filesystem path.

SYNOPSIS

#include <fs_path.h>

Inherited by std::experimental::filesystem::path::_Cmpt.

Classes


class iterator
An iterator for the components of a path.

Public Types


typedef iterator const_iterator
typedef std::basic_string< value_type > string_type
typedef char value_type

Public Member Functions


template<typename _InputIterator , typename _Require = _Path<_InputIterator, _InputIterator>> path (_InputIterator __first, _InputIterator __last)
template<typename _InputIterator , typename _Require = _Path<_InputIterator, _InputIterator>, typename _Require2 = __value_type_is_char<_InputIterator>> path (_InputIterator __first, _InputIterator __last, const locale &__loc)
template<typename _Source , typename _Require = _Path<_Source>> path (_Source const &__source)
template<typename _Source , typename _Require = _Path<_Source>, typename _Require2 = __value_type_is_char<_Source>> path (_Source const &__source, const locale &__loc)
path (const path &__p)=default
path (path &&__p) noexcept
path (string_type &&__source)
template<typename _InputIterator > _Path< _InputIterator, _InputIterator > & append (_InputIterator __first, _InputIterator __last)
template<typename _Source > _Path< _Source > & append (_Source const &__source)
template<typename _InputIterator > _Path< _InputIterator, _InputIterator > & assign (_InputIterator __first, _InputIterator __last)
template<typename _Source > _Path< _Source > & assign (_Source const &__source)
const value_type * c_str () const noexcept
void clear () noexcept
int compare (const path &__p) const noexcept
template<typename _InputIterator > _Path< _InputIterator, _InputIterator > & concat (_InputIterator __first, _InputIterator __last)
template<typename _Source > _Path< _Source > & concat (_Source const &__x)
_GLIBCXX_NODISCARD bool empty () const noexcept
bool has_filename () const
bool has_parent_path () const
bool has_relative_path () const
bool has_root_directory () const
bool has_root_name () const
bool has_root_path () const
bool is_relative () const
const string_type & native () const noexcept
operator string_type () const
template<typename _Source > _Path< _Source > & operator+= (_Source const &__x)
template<class _Source > _Path< _Source > & operator/= (_Source const &__source)
path & operator/= (const path &__p)
template<typename _Source > _Path< _Source > & operator= (_Source const &__source)
path & operator= (const path &__p)=default
path parent_path () const
path relative_path () const
path & remove_filename ()
path & replace_extension (const path &__replacement=path())
path & replace_filename (const path &__replacement)
path root_directory () const
path root_name () const
path root_path () const



path & operator= (path &&__p) noexcept
path & operator= (string_type &&__source)
path & assign (string_type &&__source)
path & operator+= (const path &__x)
path & operator+= (const string_type &__x)
path & operator+= (const value_type *__x)
path & operator+= (value_type __x)
path & operator+= (basic_string_view< value_type > __x)
template<typename _CharT > _Path< _CharT *, _CharT * > & operator+= (_CharT __x)
path & make_preferred ()
void swap (path &__rhs) noexcept
template<typename _CharT , typename _Traits = std::char_traits<_CharT>, typename _Allocator = std::allocator<_CharT>> std::basic_string< _CharT, _Traits, _Allocator > string (const _Allocator &__a=_Allocator()) const
std::string string () const
std::wstring wstring () const
std::string u8string () const
std::u16string u16string () const
std::u32string u32string () const
template<typename _CharT , typename _Traits = std::char_traits<_CharT>, typename _Allocator = std::allocator<_CharT>> std::basic_string< _CharT, _Traits, _Allocator > generic_string (const _Allocator &__a=_Allocator()) const
std::string generic_string () const
std::wstring generic_wstring () const
std::string generic_u8string () const
std::u16string generic_u16string () const
std::u32string generic_u32string () const
int compare (const string_type &__s) const
int compare (const value_type *__s) const
int compare (const basic_string_view< value_type > __s) const
path filename () const
path stem () const
path extension () const
bool has_stem () const
bool has_extension () const
bool is_absolute () const
iterator begin () const noexcept
iterator end () const noexcept


Static Public Member Functions


template<typename _InputIterator , typename _Traits = std::iterator_traits<_InputIterator>, typename _CharT = typename std::remove_cv<typename _Traits::value_type>::type> static std::basic_string< _CharT > _S_string_from_iter (_InputIterator __source)

Static Public Attributes


static constexpr value_type preferred_separator

Detailed Description

A filesystem path.

Definition at line 80 of file experimental/bits/fs_path.h.

Member Typedef Documentation

typedef iterator std::experimental::filesystem::path::const_iterator

Definition at line 399 of file experimental/bits/fs_path.h.

typedef std::basic_string<value_type> std::experimental::filesystem::path::string_type

Definition at line 187 of file experimental/bits/fs_path.h.

typedef char std::experimental::filesystem::path::value_type

Definition at line 184 of file experimental/bits/fs_path.h.

Constructor & Destructor Documentation

std::experimental::filesystem::path::path () [inline], [noexcept]

Definition at line 191 of file experimental/bits/fs_path.h.

std::experimental::filesystem::path::path (path && __p) [inline], [noexcept]

Definition at line 195 of file experimental/bits/fs_path.h.

std::experimental::filesystem::path::path (string_type && __source) [inline]

Definition at line 203 of file experimental/bits/fs_path.h.

template<typename _Source , typename _Require = _Path<_Source>> std::experimental::filesystem::path::path (_Source const & __source) [inline]

Definition at line 209 of file experimental/bits/fs_path.h.

template<typename _InputIterator , typename _Require = _Path<_InputIterator, _InputIterator>> std::experimental::filesystem::path::path (_InputIterator __first, _InputIterator __last) [inline]

Definition at line 216 of file experimental/bits/fs_path.h.

template<typename _Source , typename _Require = _Path<_Source>, typename _Require2 = __value_type_is_char<_Source>> std::experimental::filesystem::path::path (_Source const & __source, const locale & __loc) [inline]

Definition at line 223 of file experimental/bits/fs_path.h.

template<typename _InputIterator , typename _Require = _Path<_InputIterator, _InputIterator>, typename _Require2 = __value_type_is_char<_InputIterator>> std::experimental::filesystem::path::path (_InputIterator __first, _InputIterator __last, const locale & __loc) [inline]

Definition at line 231 of file experimental/bits/fs_path.h.

Member Function Documentation

template<typename _InputIterator , typename _Traits = std::iterator_traits<_InputIterator>, typename _CharT = typename std::remove_cv<typename _Traits::value_type>::type> static std::basic_string< _CharT > std::experimental::filesystem::path::_S_string_from_iter (_InputIterator __source) [inline], [static]

Definition at line 410 of file experimental/bits/fs_path.h.

template<typename _InputIterator > _Path< _InputIterator, _InputIterator > & std::experimental::filesystem::path::append (_InputIterator __first, _InputIterator __last) [inline]

Definition at line 278 of file experimental/bits/fs_path.h.

template<typename _Source > _Path< _Source > & std::experimental::filesystem::path::append (_Source const & __source) [inline]

Definition at line 270 of file experimental/bits/fs_path.h.

template<typename _InputIterator > _Path< _InputIterator, _InputIterator > & std::experimental::filesystem::path::assign (_InputIterator __first, _InputIterator __last) [inline]

Definition at line 256 of file experimental/bits/fs_path.h.

template<typename _Source > _Path< _Source > & std::experimental::filesystem::path::assign (_Source const & __source) [inline]

Definition at line 251 of file experimental/bits/fs_path.h.

path & std::experimental::filesystem::path::assign (string_type && __source) [inline]

Definition at line 820 of file experimental/bits/fs_path.h.

path::iterator std::experimental::filesystem::path::begin () const [inline], [noexcept]

Definition at line 1108 of file experimental/bits/fs_path.h.

const value_type * std::experimental::filesystem::path::c_str () const [inline], [noexcept]

Definition at line 323 of file experimental/bits/fs_path.h.

void std::experimental::filesystem::path::clear () [inline], [noexcept]

Definition at line 311 of file experimental/bits/fs_path.h.

int std::experimental::filesystem::path::compare (const basic_string_view< value_type > __s) const [inline]

Definition at line 1058 of file experimental/bits/fs_path.h.

int std::experimental::filesystem::path::compare (const string_type & __s) const [inline]

Definition at line 1051 of file experimental/bits/fs_path.h.

int std::experimental::filesystem::path::compare (const value_type * __s) const [inline]

Definition at line 1054 of file experimental/bits/fs_path.h.

template<typename _InputIterator > _Path< _InputIterator, _InputIterator > & std::experimental::filesystem::path::concat (_InputIterator __first, _InputIterator __last) [inline]

Definition at line 306 of file experimental/bits/fs_path.h.

template<typename _Source > _Path< _Source > & std::experimental::filesystem::path::concat (_Source const & __x) [inline]

Definition at line 301 of file experimental/bits/fs_path.h.

_GLIBCXX_NODISCARD bool std::experimental::filesystem::path::empty () const [inline], [noexcept]

Definition at line 385 of file experimental/bits/fs_path.h.

path::iterator std::experimental::filesystem::path::end () const [inline], [noexcept]

Definition at line 1116 of file experimental/bits/fs_path.h.

path std::experimental::filesystem::path::extension () const [inline]

Definition at line 1075 of file experimental/bits/fs_path.h.

path std::experimental::filesystem::path::filename () const [inline]

Definition at line 1063 of file experimental/bits/fs_path.h.

std::string std::experimental::filesystem::path::generic_string () const [inline]

Definition at line 1029 of file experimental/bits/fs_path.h.

template<typename _CharT , typename _Traits , typename _Allocator > std::basic_string< _CharT, _Traits, _Allocator > std::experimental::filesystem::path::generic_string (const _Allocator & __a = _Allocator()) const [inline]

Definition at line 1001 of file experimental/bits/fs_path.h.

std::u16string std::experimental::filesystem::path::generic_u16string () const [inline]

Definition at line 1045 of file experimental/bits/fs_path.h.

std::u32string std::experimental::filesystem::path::generic_u32string () const [inline]

Definition at line 1048 of file experimental/bits/fs_path.h.

std::string std::experimental::filesystem::path::generic_u8string () const [inline]

Definition at line 1041 of file experimental/bits/fs_path.h.

std::wstring std::experimental::filesystem::path::generic_wstring () const [inline]

Definition at line 1033 of file experimental/bits/fs_path.h.

bool std::experimental::filesystem::path::has_extension () const [inline]

Definition at line 1091 of file experimental/bits/fs_path.h.

bool std::experimental::filesystem::path::has_stem () const [inline]

Definition at line 1084 of file experimental/bits/fs_path.h.

bool std::experimental::filesystem::path::is_absolute () const [inline]

Definition at line 1098 of file experimental/bits/fs_path.h.

bool std::experimental::filesystem::path::is_relative () const [inline]

Definition at line 395 of file experimental/bits/fs_path.h.

path & std::experimental::filesystem::path::make_preferred () [inline]

Definition at line 872 of file experimental/bits/fs_path.h.

const string_type & std::experimental::filesystem::path::native () const [inline], [noexcept]

Definition at line 322 of file experimental/bits/fs_path.h.

std::experimental::filesystem::path::operator string_type () const [inline]

Definition at line 324 of file experimental/bits/fs_path.h.

template<typename _CharT > path::_Path< _CharT *, _CharT * > & std::experimental::filesystem::path::operator+= (_CharT __x) [inline]

Definition at line 865 of file experimental/bits/fs_path.h.

template<typename _Source > _Path< _Source > & std::experimental::filesystem::path::operator+= (_Source const & __x) [inline]

Definition at line 293 of file experimental/bits/fs_path.h.

path & std::experimental::filesystem::path::operator+= (basic_string_view< value_type > __x) [inline]

Definition at line 855 of file experimental/bits/fs_path.h.

path & std::experimental::filesystem::path::operator+= (const path & __x) [inline]

Definition at line 824 of file experimental/bits/fs_path.h.

path & std::experimental::filesystem::path::operator+= (const string_type & __x) [inline]

Definition at line 830 of file experimental/bits/fs_path.h.

path & std::experimental::filesystem::path::operator+= (const value_type * __x) [inline]

Definition at line 838 of file experimental/bits/fs_path.h.

path & std::experimental::filesystem::path::operator+= (value_type __x) [inline]

Definition at line 846 of file experimental/bits/fs_path.h.

template<class _Source > _Path< _Source > & std::experimental::filesystem::path::operator/= (_Source const & __source) [inline]

Definition at line 265 of file experimental/bits/fs_path.h.

path & std::experimental::filesystem::path::operator/= (const path & __p) [inline]

Definition at line 261 of file experimental/bits/fs_path.h.

template<typename _Source > _Path< _Source > & std::experimental::filesystem::path::operator= (_Source const & __source) [inline]

Definition at line 246 of file experimental/bits/fs_path.h.

path & std::experimental::filesystem::path::operator= (path && __p) [inline], [noexcept]

Definition at line 806 of file experimental/bits/fs_path.h.

path & std::experimental::filesystem::path::operator= (string_type && __source) [inline]

Definition at line 816 of file experimental/bits/fs_path.h.

path std::experimental::filesystem::path::stem () const [inline]

Definition at line 1066 of file experimental/bits/fs_path.h.

std::string std::experimental::filesystem::path::string () const [inline]

Definition at line 962 of file experimental/bits/fs_path.h.

template<typename _CharT , typename _Traits , typename _Allocator > std::basic_string< _CharT, _Traits, _Allocator > std::experimental::filesystem::path::string (const _Allocator & __a = _Allocator()) const [inline]

Definition at line 890 of file experimental/bits/fs_path.h.

void std::experimental::filesystem::path::swap (path & __rhs) [inline], [noexcept]

Definition at line 881 of file experimental/bits/fs_path.h.

std::u16string std::experimental::filesystem::path::u16string () const [inline]

Definition at line 994 of file experimental/bits/fs_path.h.

std::u32string std::experimental::filesystem::path::u32string () const [inline]

Definition at line 997 of file experimental/bits/fs_path.h.

std::string std::experimental::filesystem::path::u8string () const [inline]

Definition at line 974 of file experimental/bits/fs_path.h.

std::wstring std::experimental::filesystem::path::wstring () const [inline]

Definition at line 966 of file experimental/bits/fs_path.h.

Member Data Documentation

constexpr value_type std::experimental::filesystem::path::preferred_separator [static], [constexpr]

Definition at line 185 of file experimental/bits/fs_path.h.

Author

Generated automatically by Doxygen for libstdc++ from the source code.

libstdc++