Boost  v1.57.0
doxygen for www.boost.org
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
boost::filesystem::path Class Reference

#include <path.hpp>

Classes

class  iterator
 

Public Types

typedef char value_type
 
typedef std::basic_string
< value_type
string_type
 
typedef std::codecvt< wchar_t,
char, std::mbstate_t > 
codecvt_type
 
typedef iterator const_iterator
 

Public Member Functions

 path ()
 
 path (const path &p)
 
template<class Source >
 path (Source const &source, typename boost::enable_if< path_traits::is_pathable< typename boost::decay< Source >::type > >::type *=0)
 
 path (const value_type *s)
 
 path (value_type *s)
 
 path (const string_type &s)
 
 path (string_type &s)
 
template<class Source >
 path (Source const &source, const codecvt_type &cvt)
 
template<class InputIterator >
 path (InputIterator begin, InputIterator end)
 
template<class InputIterator >
 path (InputIterator begin, InputIterator end, const codecvt_type &cvt)
 
pathoperator= (const path &p)
 
template<class Source >
boost::enable_if
< path_traits::is_pathable
< typename boost::decay
< Source >::type >, path & >
::type 
operator= (Source const &source)
 
pathoperator= (const value_type *ptr)
 
pathoperator= (value_type *ptr)
 
pathoperator= (const string_type &s)
 
pathoperator= (string_type &s)
 
pathassign (const value_type *ptr, const codecvt_type &)
 
template<class Source >
pathassign (Source const &source, const codecvt_type &cvt)
 
template<class InputIterator >
pathassign (InputIterator begin, InputIterator end)
 
template<class InputIterator >
pathassign (InputIterator begin, InputIterator end, const codecvt_type &cvt)
 
template<class Source >
boost::enable_if
< path_traits::is_pathable
< typename boost::decay
< Source >::type >, path & >
::type 
operator+= (Source const &source)
 
pathoperator+= (const path &p)
 
pathoperator+= (const value_type *ptr)
 
pathoperator+= (value_type *ptr)
 
pathoperator+= (const string_type &s)
 
pathoperator+= (string_type &s)
 
pathoperator+= (value_type c)
 
template<class CharT >
boost::enable_if< is_integral
< CharT >, path & >::type 
operator+= (CharT c)
 
template<class Source >
pathconcat (Source const &source)
 
template<class Source >
pathconcat (Source const &source, const codecvt_type &cvt)
 
template<class InputIterator >
pathconcat (InputIterator begin, InputIterator end)
 
template<class InputIterator >
pathconcat (InputIterator begin, InputIterator end, const codecvt_type &cvt)
 
pathoperator/= (const path &p)
 
template<class Source >
boost::enable_if
< path_traits::is_pathable
< typename boost::decay
< Source >::type >, path & >
::type 
operator/= (Source const &source)
 
pathoperator/= (const value_type *ptr)
 
pathoperator/= (value_type *ptr)
 
pathoperator/= (const string_type &s)
 
pathoperator/= (string_type &s)
 
pathappend (const value_type *ptr)
 
pathappend (const value_type *ptr, const codecvt_type &)
 
template<class Source >
pathappend (Source const &source)
 
template<class Source >
pathappend (Source const &source, const codecvt_type &cvt)
 
template<class InputIterator >
pathappend (InputIterator begin, InputIterator end)
 
template<class InputIterator >
pathappend (InputIterator begin, InputIterator end, const codecvt_type &cvt)
 
void clear ()
 
pathmake_preferred ()
 
pathremove_filename ()
 
pathreplace_extension (const path &new_extension=path())
 
void swap (path &rhs)
 
const string_typenative () const
 
const value_typec_str () const
 
template<class String >
String string () const
 
template<class String >
String string (const codecvt_type &cvt) const
 
const std::string & string () const
 
const std::string & string (const codecvt_type &) const
 
const std::wstring wstring () const
 
const std::wstring wstring (const codecvt_type &cvt) const
 
template<class String >
String generic_string () const
 
template<class String >
String generic_string (const codecvt_type &cvt) const
 
const std::string & generic_string () const
 
const std::string & generic_string (const codecvt_type &) const
 
const std::wstring generic_wstring () const
 
const std::wstring generic_wstring (const codecvt_type &cvt) const
 
int compare (const path &p) const BOOST_NOEXCEPT
 
int compare (const std::string &s) const
 
int compare (const value_type *s) const
 
path root_path () const
 
path root_name () const
 
path root_directory () const
 
path relative_path () const
 
path parent_path () const
 
path filename () const
 
path stem () const
 
path extension () const
 
bool empty () const
 
bool has_root_path () const
 
bool has_root_name () const
 
bool has_root_directory () const
 
bool has_relative_path () const
 
bool has_parent_path () const
 
bool has_filename () const
 
bool has_stem () const
 
bool has_extension () const
 
bool is_absolute () const
 
bool is_relative () const
 
iterator begin () const
 
iterator end () const
 
pathnormalize ()
 
pathremove_leaf ()
 
path leaf () const
 
path branch_path () const
 
bool has_leaf () const
 
bool has_branch_path () const
 
bool is_complete () const
 

Static Public Member Functions

static std::locale imbue (const std::locale &loc)
 
static const codecvt_typecodecvt ()
 

Public Attributes

BOOST_STATIC_CONSTEXPR value_type preferred_separator = '/'
 

Friends

class iterator
 
bool operator< (const path &lhs, const path &rhs)
 

Member Typedef Documentation

typedef std::codecvt<wchar_t, char, std::mbstate_t> boost::filesystem::path::codecvt_type

Constructor & Destructor Documentation

boost::filesystem::path::path ( )
inline
boost::filesystem::path::path ( const path p)
inline
template<class Source >
boost::filesystem::path::path ( Source const &  source,
typename boost::enable_if< path_traits::is_pathable< typename boost::decay< Source >::type > >::type = 0 
)
inline
boost::filesystem::path::path ( const value_type s)
inline
boost::filesystem::path::path ( value_type s)
inline
boost::filesystem::path::path ( const string_type s)
inline
boost::filesystem::path::path ( string_type s)
inline
template<class Source >
boost::filesystem::path::path ( Source const &  source,
const codecvt_type cvt 
)
inline
template<class InputIterator >
boost::filesystem::path::path ( InputIterator  begin,
InputIterator  end 
)
inline
template<class InputIterator >
boost::filesystem::path::path ( InputIterator  begin,
InputIterator  end,
const codecvt_type cvt 
)
inline

Member Function Documentation

path& boost::filesystem::path::append ( const value_type ptr)
inline
path& boost::filesystem::path::append ( const value_type ptr,
const codecvt_type  
)
inline
template<class Source >
path & boost::filesystem::path::append ( Source const &  source)
template<class Source >
path & boost::filesystem::path::append ( Source const &  source,
const codecvt_type cvt 
)
template<class InputIterator >
path & boost::filesystem::path::append ( InputIterator  begin,
InputIterator  end 
)
template<class InputIterator >
path & boost::filesystem::path::append ( InputIterator  begin,
InputIterator  end,
const codecvt_type cvt 
)
path& boost::filesystem::path::assign ( const value_type ptr,
const codecvt_type  
)
inline

References boost::python::ptr().

template<class Source >
path& boost::filesystem::path::assign ( Source const &  source,
const codecvt_type cvt 
)
inline
template<class InputIterator >
path& boost::filesystem::path::assign ( InputIterator  begin,
InputIterator  end 
)
inline
template<class InputIterator >
path& boost::filesystem::path::assign ( InputIterator  begin,
InputIterator  end,
const codecvt_type cvt 
)
inline
iterator boost::filesystem::path::begin ( ) const
path boost::filesystem::path::branch_path ( ) const
inline
const value_type* boost::filesystem::path::c_str ( ) const
inline
void boost::filesystem::path::clear ( )
inline
static const codecvt_type& boost::filesystem::path::codecvt ( )
static
int boost::filesystem::path::compare ( const path p) const
int boost::filesystem::path::compare ( const std::string &  s) const
inline

References compare().

Referenced by compare().

int boost::filesystem::path::compare ( const value_type s) const
inline

References compare().

Referenced by compare().

template<class Source >
path& boost::filesystem::path::concat ( Source const &  source)
inline
template<class Source >
path& boost::filesystem::path::concat ( Source const &  source,
const codecvt_type cvt 
)
inline
template<class InputIterator >
path& boost::filesystem::path::concat ( InputIterator  begin,
InputIterator  end 
)
inline
template<class InputIterator >
path& boost::filesystem::path::concat ( InputIterator  begin,
InputIterator  end,
const codecvt_type cvt 
)
inline
bool boost::filesystem::path::empty ( ) const
inline
iterator boost::filesystem::path::end ( ) const
path boost::filesystem::path::extension ( ) const
path boost::filesystem::path::filename ( ) const
template<class String >
String boost::filesystem::path::generic_string ( ) const
template<class String >
String boost::filesystem::path::generic_string ( const codecvt_type cvt) const
const std::string& boost::filesystem::path::generic_string ( ) const
inline
const std::string& boost::filesystem::path::generic_string ( const codecvt_type ) const
inline
const std::wstring boost::filesystem::path::generic_wstring ( ) const
inline
const std::wstring boost::filesystem::path::generic_wstring ( const codecvt_type cvt) const
inline
bool boost::filesystem::path::has_branch_path ( ) const
inline
bool boost::filesystem::path::has_extension ( ) const
inline
bool boost::filesystem::path::has_filename ( ) const
inline
bool boost::filesystem::path::has_leaf ( ) const
inline
bool boost::filesystem::path::has_parent_path ( ) const
inline
bool boost::filesystem::path::has_relative_path ( ) const
inline
bool boost::filesystem::path::has_root_directory ( ) const
inline
bool boost::filesystem::path::has_root_name ( ) const
inline
bool boost::filesystem::path::has_root_path ( ) const
inline
bool boost::filesystem::path::has_stem ( ) const
inline
static std::locale boost::filesystem::path::imbue ( const std::locale &  loc)
static
bool boost::filesystem::path::is_absolute ( ) const
inline
bool boost::filesystem::path::is_complete ( ) const
inline
bool boost::filesystem::path::is_relative ( ) const
inline
path boost::filesystem::path::leaf ( ) const
inline

Referenced by boost::wave::util::leaf().

path& boost::filesystem::path::make_preferred ( )
const string_type& boost::filesystem::path::native ( ) const
inline
path& boost::filesystem::path::normalize ( )
inline
template<class Source >
boost::enable_if<path_traits::is_pathable< typename boost::decay<Source>::type>, path&>::type boost::filesystem::path::operator+= ( Source const &  source)
inline
path& boost::filesystem::path::operator+= ( const path p)
inline
path& boost::filesystem::path::operator+= ( const value_type ptr)
inline

References boost::python::ptr().

path& boost::filesystem::path::operator+= ( value_type ptr)
inline

References boost::python::ptr().

path& boost::filesystem::path::operator+= ( const string_type s)
inline

References boost::asio::s.

path& boost::filesystem::path::operator+= ( string_type s)
inline

References boost::asio::s.

path& boost::filesystem::path::operator+= ( value_type  c)
inline
template<class CharT >
boost::enable_if<is_integral<CharT>, path&>::type boost::filesystem::path::operator+= ( CharT  c)
inline
path& boost::filesystem::path::operator/= ( const path p)
template<class Source >
boost::enable_if<path_traits::is_pathable< typename boost::decay<Source>::type>, path&>::type boost::filesystem::path::operator/= ( Source const &  source)
inline
path& boost::filesystem::path::operator/= ( const value_type ptr)
path& boost::filesystem::path::operator/= ( value_type ptr)
inline
path& boost::filesystem::path::operator/= ( const string_type s)
inline

References operator/=().

Referenced by operator/=().

path& boost::filesystem::path::operator/= ( string_type s)
inline

References operator/=().

Referenced by operator/=().

path& boost::filesystem::path::operator= ( const path p)
inline
template<class Source >
boost::enable_if<path_traits::is_pathable< typename boost::decay<Source>::type>, path&>::type boost::filesystem::path::operator= ( Source const &  source)
inline
path& boost::filesystem::path::operator= ( const value_type ptr)
inline

References boost::python::ptr().

path& boost::filesystem::path::operator= ( value_type ptr)
inline

References boost::python::ptr().

path& boost::filesystem::path::operator= ( const string_type s)
inline

References boost::asio::s.

path& boost::filesystem::path::operator= ( string_type s)
inline

References boost::asio::s.

path boost::filesystem::path::parent_path ( ) const
path boost::filesystem::path::relative_path ( ) const
path& boost::filesystem::path::remove_filename ( )
path& boost::filesystem::path::remove_leaf ( )
inline
path& boost::filesystem::path::replace_extension ( const path new_extension = path())
path boost::filesystem::path::root_directory ( ) const
path boost::filesystem::path::root_name ( ) const
path boost::filesystem::path::root_path ( ) const
path boost::filesystem::path::stem ( ) const
template<class String >
String boost::filesystem::path::string ( const codecvt_type cvt) const
const std::string& boost::filesystem::path::string ( ) const
inline
const std::string& boost::filesystem::path::string ( const codecvt_type ) const
inline
void boost::filesystem::path::swap ( path rhs)
inline

Referenced by boost::filesystem::swap().

const std::wstring boost::filesystem::path::wstring ( ) const
inline
const std::wstring boost::filesystem::path::wstring ( const codecvt_type cvt) const
inline

Friends And Related Function Documentation

friend class iterator
friend
bool operator< ( const path lhs,
const path rhs 
)
friend

Member Data Documentation

BOOST_STATIC_CONSTEXPR value_type boost::filesystem::path::preferred_separator = '/'

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