|
Nix 2.93.3
Lix: A modern, delicious implementation of the Nix package manager; unstable internal interfaces
|
#include <source-path.hh>
Public Member Functions | |
| SourcePath (CanonPath path) | |
| std::string_view | baseName () const |
| SourcePath | parent () const |
| const CanonPath & | canonical () const |
| std::string | to_string () const |
| CheckedSourcePath | unsafeIntoChecked () |
| SourcePath | operator+ (const CanonPath &x) const |
| SourcePath | operator+ (std::string_view c) const |
| bool | operator== (const SourcePath &x) const |
| bool | operator!= (const SourcePath &x) const |
| bool | operator< (const SourcePath &x) const |
Protected Attributes | |
| CanonPath | path |
An abstraction for manipulating path names during evaluation.
|
inline |
Append a CanonPath to this path.
|
inline |
Append a single component c to this path. c must not contain a slash. A slash is implicitly added between this path and c.
| SourcePath nix::SourcePath::parent | ( | ) | const |
Construct the parent of this SourcePath. Aborts if this denotes the root.
|
inline |
Converts this SourcePath into a checked SourcePath, consuming it.