ARC SDK
|
Class to iterate through elements of a path. More...
#include <arc/URL.h>
Public Member Functions | |
PathIterator (const std::string &path, bool end=false) | |
Constructor accepts path and stores it internally. More... | |
PathIterator & | operator++ () |
Advances iterator to point at next path element. | |
PathIterator & | operator-- () |
Moves iterator to element before current. | |
operator bool () const | |
Return false when iterator moved outside path elements. | |
std::string | operator* () const |
Returns part of initial path from first till and including current. | |
std::string | Rest () const |
Returns part of initial path from one after current till end. | |
Class to iterate through elements of a path.
Arc::PathIterator::PathIterator | ( | const std::string & | path, |
bool | end = false |
||
) |
Constructor accepts path and stores it internally.
If end is set to false iterator points at first element in path. Otherwise selected element is one before last.