dune-vtk 2.8
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes | Protected Member Functions | List of all members
Dune::Vtk::Path Class Reference

#include <dune/vtk/utility/filesystem.hh>

Inheritance diagram for Dune::Vtk::Path:
Inheritance graph

Public Member Functions

 Path ()=default
 
template<class String >
 Path (String const &p)
 
template<class InputIt >
 Path (InputIt it, InputIt end_it)
 
template<class String >
 Path (std::initializer_list< String > const &list)
 
PathremoveFilename ()
 Removes filename path component. More...
 
Path parentPath () const
 Returns the path of the parent path. More...
 
Path filename () const
 Returns filename path component. More...
 
Path stem () const
 Returns the stem path component. More...
 
Path extension () const
 Returns the file extension path component. More...
 
std::string string () const
 Return the path as string. More...
 
bool isAbsolute () const
 
bool isRelative () const
 
bool isFile () const
 Check whether path is a regular file. More...
 
bool isDirectory () const
 Check whether path is a regular file. More...
 
bool operator== (Path const &p)
 Lexicographically compares two paths. More...
 
Pathoperator/= (Path const &p)
 Appends elements to the path. More...
 

Static Public Member Functions

static bool isAbsolute (std::string p)
 Return whether a path is an absolute path. More...
 

Public Attributes

elements
 STL member. More...
 

Static Public Attributes

static constexpr char preferredSeparator = '/'
 

Protected Member Functions

void split (std::string p)
 

Constructor & Destructor Documentation

◆ Path() [1/4]

Dune::Vtk::Path::Path ( )
default

◆ Path() [2/4]

template<class String >
Dune::Vtk::Path::Path ( String const &  p)
inline

◆ Path() [3/4]

template<class InputIt >
Dune::Vtk::Path::Path ( InputIt  it,
InputIt  end_it 
)
inline

◆ Path() [4/4]

template<class String >
Dune::Vtk::Path::Path ( std::initializer_list< String > const &  list)
inline

Member Function Documentation

◆ extension()

Path Dune::Vtk::Path::extension ( ) const

Returns the file extension path component.

◆ filename()

Path Dune::Vtk::Path::filename ( ) const
inline

Returns filename path component.

◆ isAbsolute() [1/2]

bool Dune::Vtk::Path::isAbsolute ( ) const
inline

◆ isAbsolute() [2/2]

bool Dune::Vtk::Path::isAbsolute ( std::string  p)
static

Return whether a path is an absolute path.

In Linux, test whether the path starts with /, in Windows whether it starts with [a-z]:\\.

◆ isDirectory()

bool Dune::Vtk::Path::isDirectory ( ) const

Check whether path is a regular file.

◆ isFile()

bool Dune::Vtk::Path::isFile ( ) const

Check whether path is a regular file.

◆ isRelative()

bool Dune::Vtk::Path::isRelative ( ) const
inline

◆ operator/=()

Path & Dune::Vtk::Path::operator/= ( Path const &  p)

Appends elements to the path.

◆ operator==()

bool Dune::Vtk::Path::operator== ( Path const &  p)
inline

Lexicographically compares two paths.

◆ parentPath()

Path Dune::Vtk::Path::parentPath ( ) const
inline

Returns the path of the parent path.

◆ removeFilename()

Path & Dune::Vtk::Path::removeFilename ( )
inline

Removes filename path component.

◆ split()

void Dune::Vtk::Path::split ( std::string  p)
protected

◆ stem()

Path Dune::Vtk::Path::stem ( ) const

Returns the stem path component.

◆ string()

std::string Dune::Vtk::Path::string ( ) const

Return the path as string.

Member Data Documentation

◆ elements

T std::vector< T >::elements
inherited

STL member.

◆ preferredSeparator

constexpr char Dune::Vtk::Path::preferredSeparator = '/'
staticconstexpr

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