26 else if (!
path_.empty() &&
path_.back() !=
'/')
53 auto pos =
path_.find_last_of(
'/');
60 if (pos == std::string::npos)
63 path_.erase(pos, std::string::npos);
const std::string & string() const
Return std::string for use with HDF5.
helper functions for EinsplineSetBuilder
bool operator==(const Matrix< T, Alloc > &lhs, const Matrix< T, Alloc > &rhs)
hdf_path & replace_subgroup(std::string_view p)
Replace the last subgroup in path.
hdf_path & concat(std::string_view p)
Concatenates two paths without introducing a directory separator.
hdf_path & append(std::string_view p)
Appends elements to the path with a directory separator.
hdf_path & remove_subgroup()
Remove last subgroup in path.
hdf_path & operator+=(std::string_view p)
Concatenates two paths without introducing a directory separator.
bool has_root_directory() const
Does the path absolute (true) or relative to the current group in hdf_archive (false)?
MakeReturn< BinaryNode< OpDivide, typename CreateLeaf< Vector< T1, C1 > >::Leaf_t, typename CreateLeaf< Vector< T2, C2 > >::Leaf_t > >::Expression_t operator/(const Vector< T1, C1 > &l, const Vector< T2, C2 > &r)
hdf_path & operator/=(std::string_view p)
Appends elements to the path with a directory separator.
hdf_path()
Constructs an empty path.