AGXDynamics  2.31.1.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
agx::Path Class Reference

Representation of a path, a list of name components. More...

#include <Path.h>

Classes

class  iterator
 

Public Member Functions

 Path ()
 
 Path (const agx::String &path)
 
 Path (const std::string &path)
 
 Path (const char *path)
 
 Path (const agx::Path &other)
 
 Path (const Name &name)
 
 ~Path ()
 
agx::String back () const
 
agx::Path base () const
 
iterator begin () const
 
const char * c_str () const
 
bool contains (const Path &subpath)
 
bool contains (const Name &component)
 
bool empty () const
 
iterator end () const
 
UInt32 hash () const
 
bool hasTail () const
 
bool operator!= (const agx::Path &other) const
 
agx::Path operator+ (const agx::Path &extension) const
 
agx::Path operator+ (const agx::Name &extension) const
 
agx::Path & operator+= (const agx::Path &extension)
 
agx::Path & operator+= (const agx::Name &extension)
 
Path & operator= (const Path &other)
 
bool operator== (const agx::Path &other) const
 
agx::String root () const
 
const agx::String & str () const
 
agx::Path tail () const
 

Detailed Description

Representation of a path, a list of name components.

Definition at line 33 of file Path.h.

Constructor & Destructor Documentation

agx::Path::Path ( )
inline

Definition at line 145 of file Path.h.

agx::Path::Path ( const agx::String &  path)
agx::Path::Path ( const std::string &  path)
agx::Path::Path ( const char *  path)
agx::Path::Path ( const agx::Path &  other)
agx::Path::Path ( const Name &  name)
explicit
agx::Path::~Path ( )

Member Function Documentation

agx::String agx::Path::back ( ) const
Returns
The last component of the path, eg Foo.bar.hej -> hej
agx::Path agx::Path::base ( ) const
Returns
The base of the path, eg Foo.bar.hej -> Foo.bar
Path::iterator agx::Path::begin ( ) const
inline

Definition at line 150 of file Path.h.

bool agx::Path::contains ( const Path &  subpath)
bool agx::Path::contains ( const Name &  component)
bool agx::Path::empty ( ) const
Returns
True if the path is empty.
Path::iterator agx::Path::end ( ) const
inline

Definition at line 151 of file Path.h.

UInt32 agx::Path::hash ( ) const

Definition at line 153 of file Path.h.

References agx::hash().

bool agx::Path::hasTail ( ) const
Returns
True if the path has sub-paths.
bool agx::Path::operator!= ( const agx::Path &  other) const
agx::Path agx::Path::operator+ ( const agx::Path &  extension) const
agx::Path agx::Path::operator+ ( const agx::Name &  extension) const
agx::Path& agx::Path::operator+= ( const agx::Path &  extension)
agx::Path& agx::Path::operator+= ( const agx::Name &  extension)
Path& agx::Path::operator= ( const Path &  other)
bool agx::Path::operator== ( const agx::Path &  other) const
agx::String agx::Path::root ( ) const
Returns
The root name component.
const String & agx::Path::str ( ) const
Returns
A string representation of the path.

Definition at line 148 of file Path.h.

agx::Path agx::Path::tail ( ) const
Returns
The subpath below the root, eg Foo.bar.hej -> bar.hej

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