![]() |
QMCPACK
|
Public Member Functions | |
hdf_path () | |
Constructs an empty path. More... | |
hdf_path (std::string_view p) | |
Constructs a path whose pathname is the same as that of p. More... | |
hdf_path & | append (std::string_view p) |
Appends elements to the path with a directory separator. More... | |
hdf_path & | append (const hdf_path &p) |
hdf_path & | concat (std::string_view p) |
Concatenates two paths without introducing a directory separator. More... | |
hdf_path & | concat (const hdf_path &p) |
hdf_path & | operator/= (std::string_view p) |
Appends elements to the path with a directory separator. More... | |
hdf_path & | operator/= (const hdf_path &p) |
hdf_path & | operator+= (std::string_view p) |
Concatenates two paths without introducing a directory separator. More... | |
hdf_path & | operator+= (const hdf_path &p) |
hdf_path & | remove_subgroup () |
Remove last subgroup in path. More... | |
hdf_path & | replace_subgroup (std::string_view p) |
Replace the last subgroup in path. More... | |
const std::string & | string () const |
Return std::string for use with HDF5. More... | |
bool | has_root_directory () const |
Does the path absolute (true) or relative to the current group in hdf_archive (false)? More... | |
Private Attributes | |
std::string | path_ |
Definition at line 22 of file hdf_path.h.
|
default |
Constructs an empty path.
Referenced by hdf_path::append().
hdf_path | ( | std::string_view | p | ) |
Constructs a path whose pathname is the same as that of p.
p | pathname |
Definition at line 18 of file hdf_path.cpp.
hdf_path & append | ( | std::string_view | p | ) |
Appends elements to the path with a directory separator.
p | pathname |
Definition at line 20 of file hdf_path.cpp.
References hdf_path::hdf_path().
Referenced by hdf_path::operator/=(), hdf_path::replace_subgroup(), and TEST_CASE().
Definition at line 22 of file hdf_path.cpp.
References hdf_path::concat(), hdf_path::has_root_directory(), and hdf_path::path_.
hdf_path & concat | ( | std::string_view | p | ) |
Concatenates two paths without introducing a directory separator.
p | pathname |
Definition at line 31 of file hdf_path.cpp.
References hdf_path::path_.
Referenced by hdf_path::append(), hdf_path::concat(), hdf_path::operator+=(), and TEST_CASE().
Definition at line 37 of file hdf_path.cpp.
References hdf_path::concat(), and hdf_path::string().
bool has_root_directory | ( | ) | const |
Does the path absolute (true) or relative to the current group in hdf_archive (false)?
Definition at line 73 of file hdf_path.cpp.
References hdf_path::path_.
Referenced by hdf_path::append(), hdf_path::remove_subgroup(), and TEST_CASE().
hdf_path & operator+= | ( | std::string_view | p | ) |
Concatenates two paths without introducing a directory separator.
p | pathname |
Definition at line 43 of file hdf_path.cpp.
References hdf_path::concat().
Definition at line 45 of file hdf_path.cpp.
References hdf_path::concat().
hdf_path & operator/= | ( | std::string_view | p | ) |
Appends elements to the path with a directory separator.
p | pathname |
Definition at line 39 of file hdf_path.cpp.
References hdf_path::append().
Definition at line 41 of file hdf_path.cpp.
References hdf_path::append().
hdf_path & remove_subgroup | ( | ) |
Remove last subgroup in path.
Definition at line 47 of file hdf_path.cpp.
References hdf_path::has_root_directory(), and hdf_path::path_.
Referenced by hdf_path::replace_subgroup(), and TEST_CASE().
hdf_path & replace_subgroup | ( | std::string_view | p | ) |
Replace the last subgroup in path.
p | subgroup to replace last in path |
Definition at line 67 of file hdf_path.cpp.
References hdf_path::append(), and hdf_path::remove_subgroup().
Referenced by TEST_CASE().
|
inline |
Return std::string for use with HDF5.
Definition at line 67 of file hdf_path.h.
References hdf_path::path_.
Referenced by hdf_path::concat(), hdf_archive::push(), TEST_CASE(), and OneBodyDensityMatricesTests< T >::testRegisterAndWrite().
|
private |
Definition at line 74 of file hdf_path.h.
Referenced by hdf_path::append(), hdf_path::concat(), hdf_path::has_root_directory(), hdf_path::remove_subgroup(), and hdf_path::string().