sandreco  1.0.8
A modular reconstruction software for SAND
sand::geo_path Class Reference

#include <sand.h>

Inheritance diagram for sand::geo_path:

Public Member Functions

geo_path & operator/= (const std::string_view &)
 
geo_path operator/ (const std::string_view &rhs) const
 
geo_path & operator-= (const geo_path &)
 
geo_path operator- (const geo_path &rhs) const
 
std::string_view token (std::size_t) const
 

Detailed Description

Class to represet a geometry path, supports safe concatenation via operator /.

Member Function Documentation

◆ operator-=()

geo_path & sand::geo_path::operator-= ( const geo_path &  sub)
inline

Removes a path prefix from this path if and only if sub matches the start of this path.

Returns
the remaining path element.

◆ operator/=()

geo_path & sand::geo_path::operator/= ( const std::string_view &  sv)
inline

Appends sv to this with the correct amount of '/' characters.

◆ token()

std::string_view sand::geo_path::token ( std::size_t  i) const
inline
Returns
the i-th element of the path.

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