ARC SDK
Public Member Functions
Arc::PathIterator Class Reference

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...
 
PathIteratoroperator++ ()
 Advances iterator to point at next path element. More...
 
PathIteratoroperator-- ()
 Moves iterator to element before current. More...
 
 operator bool () const
 Return false when iterator moved outside path elements. More...
 
std::string operator* () const
 Returns part of initial path from first till and including current. More...
 
std::string Rest () const
 Returns part of initial path from one after current till end. More...
 

Detailed Description

Class to iterate through elements of a path.

Constructor & Destructor Documentation

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.

Member Function Documentation

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.

Python interface deviation
Method is unavailable in Python interface
Java interface deviation
Method is unavailable in Java interface
PathIterator& Arc::PathIterator::operator-- ( )

Moves iterator to element before current.

Python interface deviation
Method is unavailable in Python interface
Java interface deviation
Method is unavailable in Java interface
std::string Arc::PathIterator::Rest ( ) const

Returns part of initial path from one after current till end.


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