Class to iterate through elements of path. More...
#include <URL.h>
Public Member Functions | |
| PathIterator (const std::string &path, bool end=false) | |
| PathIterator & | operator++ () |
| PathIterator & | operator-- () |
| operator bool () const | |
| std::string | operator* () const |
| std::string | Rest () const |
Class to iterate through elements of 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 is pointing at first element in path. Otherwise selected element is one before last.
| Arc::PathIterator::operator bool | ( | ) | const |
Return false when iterator moved outside path elements
| std::string Arc::PathIterator::operator* | ( | ) | const |
Returns part of initial path from first till and including current
| PathIterator& Arc::PathIterator::operator++ | ( | ) |
Advances iterator to point at next path element
| PathIterator& Arc::PathIterator::operator-- | ( | ) |
Moves iterator to element before current
| std::string Arc::PathIterator::Rest | ( | ) | const |
Returns part of initial path from one after current till end
1.6.3