|
|
| chemin () |
| | constucts an empty path
|
| |
|
| chemin (const std::string &path) |
| |
|
| chemin (const chemin &ref)=default |
| |
|
| chemin (chemin &&ref) noexcept=default |
| |
|
chemin & | operator= (const chemin &ref)=default |
| |
|
chemin & | operator= (chemin &&ref) noexcept=default |
| |
| void | clear () |
| | default copy constructor is OK
|
| |
|
bool | operator== (const chemin &ref) const |
| | compaires two path
|
| |
|
bool | operator!= (const chemin &ref) const |
| |
|
bool | is_the_beginning_of (const chemin &ref) const |
| | return true if 'this' is the beginning of ref
|
| |
|
void | operator+= (const chemin &ref) |
| | concatenate a path to this object
|
| |
|
chemin | operator+ (const chemin &ref) const |
| | concatenate a path with us another
|
| |
|
void | push_back (const std::string &x) |
| | add a member at the end of the path
|
| |
| std::string | front () const |
| | get the first member of the path
|
| |
| std::string | back () const |
| | get the last member of the path
|
| |
| void | pop_front () |
| |
|
void | pop_back () |
| | removes the last member of the path from this object
|
| |
|
unsigned int | size () const |
| | returns the size of the path in number of members
|
| |
|
bool | empty () const |
| | return true if the path is an empty path (having no members)
|
| |
| unsigned int | get_index () const |
| |
|
void | increase_index () const |
| | set the index to the next member. If the member is the last of the path this call does nothing
|
| |
|
void | decrease_index () const |
| | set the index to the previous member. If the member is the first of the path, this call does nothing
|
| |
|
void | set_index (unsigned int val) const |
| | set the index to an arbitrary value. An exception is thrown if the given value is greater or equal the path size
|
| |
|
std::string | display (bool relative=false) const |
| | return a string corresponding to the expected value of an absolute path
|
| |
| std::string | namify () const |
| |
| const std::string & | operator[] (unsigned int x) const |
| |