#include <pathspecification.h>
The initial string specification should be of the form [name][::name]*[::], i.e. a list of names separated by double colons, with no whitespace.
Operations return empty strings or empty lists if the appropriate item is unavailable or undefined.
Definition at line 24 of file pathspecification.h.
Public Types | |
typedef StringParser::arglist | NameList |
Public Methods | |
PathSpecification (const string &s) | |
Constructor. | |
const string | last () const |
Returns the tail of the path, if any. | |
const string | first () const |
Returns the head of the path, if any. | |
const bool | isrooted () const |
Returns true if the path started with the segment separator, i.e. | |
const NameList & | all () const |
Returns the entire path. | |
const NameList | allbutlast () const |
Returns the path up to (but not including) the tail. |
|
Returns true if the path started with the segment separator, i.e. :: Definition at line 49 of file pathspecification.h. Referenced by ParameterMap< ParamType >::lookup_map(), and ParameterMap< ParamType >::lookup_with_path(). |