Psi4
Public Member Functions | Static Public Member Functions | Static Protected Member Functions | Protected Attributes | List of all members
psi::filesystem::path Class Reference

Class for manipulating paths. More...

#include <path.h>

Public Member Functions

 path ()
 
 path (const path &path)
 
 path (path &&path)
 
 path (const std::string &string)
 
void set (const std::string &str)
 
size_t length () const
 
bool empty () const
 
bool is_absolute () const
 
path make_absolute () const
 
bool exists () const
 
std::string str () const
 
bool is_directory () const
 
bool is_file () const
 
std::string stem () const
 
std::string filename () const
 
std::string extension () const
 
bool remove_file ()
 
bool resize_file (size_t target_length)
 
path parent_path () const
 
path operator/ (const path &other) const
 
pathoperator= (const path &path)
 
pathoperator= (path &&path)
 
bool operator== (const path &p) const
 
bool operator!= (const path &p) const
 

Static Public Member Functions

static path getcwd ()
 

Static Protected Member Functions

static std::vector< std::string > tokenize (const std::string &string, const std::string &delim)
 

Protected Attributes

std::vector< std::string > path_
 
bool absolute_
 

Detailed Description

Class for manipulating paths.

Constructor & Destructor Documentation

psi::filesystem::path::path ( )
inline
psi::filesystem::path::path ( const path path)
inline
psi::filesystem::path::path ( path &&  path)
inline
psi::filesystem::path::path ( const std::string &  string)
inline

Member Function Documentation

bool psi::filesystem::path::empty ( ) const
inline
bool psi::filesystem::path::exists ( ) const
std::string psi::filesystem::path::extension ( ) const
std::string psi::filesystem::path::filename ( ) const
path psi::filesystem::path::getcwd ( )
static
bool psi::filesystem::path::is_absolute ( ) const
inline
bool psi::filesystem::path::is_directory ( ) const
bool psi::filesystem::path::is_file ( ) const
size_t psi::filesystem::path::length ( ) const
inline
path psi::filesystem::path::make_absolute ( ) const
bool psi::filesystem::path::operator!= ( const path p) const
inline
path psi::filesystem::path::operator/ ( const path other) const
path & psi::filesystem::path::operator= ( const path path)
path & psi::filesystem::path::operator= ( path &&  path)
bool psi::filesystem::path::operator== ( const path p) const
inline
path psi::filesystem::path::parent_path ( ) const
bool psi::filesystem::path::remove_file ( )
bool psi::filesystem::path::resize_file ( size_t  target_length)
void psi::filesystem::path::set ( const std::string &  str)
std::string psi::filesystem::path::stem ( ) const
std::string psi::filesystem::path::str ( ) const
static std::vector<std::string> psi::filesystem::path::tokenize ( const std::string &  string,
const std::string &  delim 
)
inlinestaticprotected

Member Data Documentation

bool psi::filesystem::path::absolute_
protected
std::vector<std::string> psi::filesystem::path::path_
protected

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