ufe 5.5
Universal Front End is a DCC-agnostic component that will allow a DCC to browse and edit data in multiple data models
|
A segment of a path within a single runtime. More...
#include <pathSegment.h>
Public Types | |
typedef std::vector< PathComponent > | Components |
Public Member Functions | |
PathSegment (const std::string &segment, Rtid runTimeId, char separator) | |
PathSegment (const Components &components, Rtid runTimeId, char separator) | |
PathSegment (Components &&components, Rtid runTimeId, char separator) noexcept | |
PathSegment (const PathComponent &component, Rtid runTimeId, char separator) | |
PathSegment (const PathSegment &)=default | |
Default copy constructor. More... | |
PathSegment & | operator= (const PathSegment &)=default |
Default assignment operator. More... | |
PathSegment (PathSegment &&) noexcept | |
Move construction. Right hand side becomes empty. More... | |
PathSegment & | operator= (PathSegment &&rhs) noexcept |
Move assignment. Right hand side becomes empty. More... | |
Rtid | runTimeId () const |
char | separator () const |
const Components & | components () const |
PathSegment | pop () const |
PathSegment | popHead () const |
PathSegment | head (int nbComponents) const |
bool | operator== (const PathSegment &rhs) const |
Unfortunately no compiler-generated default equality operators. More... | |
bool | operator!= (const PathSegment &rhs) const |
Components::size_type | size () const |
bool | empty () const |
Components::const_iterator | cbegin () const |
Iteration interface on PathComponents. More... | |
Components::const_iterator | begin () const |
Components::const_iterator | cend () const |
Components::const_iterator | end () const |
Components::iterator | begin () |
Components::iterator | end () |
std::string | string () const |
Private Attributes | |
friend | Path |
Components | fComponents |
Rtid | fRunTimeId |
char | fSeparator |
A segment of a path within a single runtime.
A path segment is part of a path to an object (either containment or 3D hierarchy) where all objects on the path segment live in a single runtime.
By itself, a path segment cannot be considered relative or absolute. The result of concatenating one or more path segments into a path will result in an absolute or relative path.
The separator character can be '\0', which is interpreted as meaning no separator. This can be used to represent a path segment with a single component, where there is no hierarchy.
Definition at line 35 of file pathSegment.h.
typedef std::vector<PathComponent> Ufe::PathSegment::Components |
Definition at line 39 of file pathSegment.h.
Ufe::PathSegment::PathSegment | ( | const std::string & | segment, |
Rtid | runTimeId, | ||
char | separator | ||
) |
Creates a PathSegment for the argument runtime.
[in] | segment | String representation of segment, with separators. |
[in] | runTimeId | ID of runtime for this segment. |
[in] | separator | Separator character for segment string. |
Ufe::PathSegment::PathSegment | ( | const Components & | components, |
Rtid | runTimeId, | ||
char | separator | ||
) |
Creates a PathSegment for the argument runtime.
[in] | components | Vector of PathComponents. |
[in] | runTimeId | ID of runtime for this segment. |
[in] | separator | Separator character for segment string. |
|
noexcept |
Creates a PathSegment for the argument runtime [noexcept]. Move construction. Right hand side becomes empty.
[in] | components | Vector of path components. |
[in] | runTimeId | ID of runtime for this segment. |
[in] | separator | Separator character for segment string. |
Ufe::PathSegment::PathSegment | ( | const PathComponent & | component, |
Rtid | runTimeId, | ||
char | separator | ||
) |
Convenience for single-component path.
[in] | component | Single path components. |
[in] | runTimeId | ID of runtime for this segment. |
[in] | separator | Separator character for segment string. |
|
default |
Default copy constructor.
|
noexcept |
Move construction. Right hand side becomes empty.
Components::iterator Ufe::PathSegment::begin | ( | ) |
Components::const_iterator Ufe::PathSegment::begin | ( | ) | const |
Components::const_iterator Ufe::PathSegment::cbegin | ( | ) | const |
Iteration interface on PathComponents.
Components::const_iterator Ufe::PathSegment::cend | ( | ) | const |
const Components & Ufe::PathSegment::components | ( | ) | const |
bool Ufe::PathSegment::empty | ( | ) | const |
Components::iterator Ufe::PathSegment::end | ( | ) |
Components::const_iterator Ufe::PathSegment::end | ( | ) | const |
PathSegment Ufe::PathSegment::head | ( | int | nbComponents | ) | const |
nbComponents | The first n PathComponent to retrieve. |
InvalidOperationOnPathSegment | If argument is 0, > size(), <= -size(). |
bool Ufe::PathSegment::operator!= | ( | const PathSegment & | rhs | ) | const |
|
default |
Default assignment operator.
|
noexcept |
Move assignment. Right hand side becomes empty.
bool Ufe::PathSegment::operator== | ( | const PathSegment & | rhs | ) | const |
Unfortunately no compiler-generated default equality operators.
PathSegment Ufe::PathSegment::pop | ( | ) | const |
InvalidOperationOnPathSegment | If PathSegment is empty. |
PathSegment Ufe::PathSegment::popHead | ( | ) | const |
InvalidOperationOnPathSegment | If PathSegment is empty. |
Rtid Ufe::PathSegment::runTimeId | ( | ) | const |
char Ufe::PathSegment::separator | ( | ) | const |
Components::size_type Ufe::PathSegment::size | ( | ) | const |
std::string Ufe::PathSegment::string | ( | ) | const |
|
private |
Definition at line 154 of file pathSegment.h.
|
private |
Definition at line 155 of file pathSegment.h.
|
private |
Definition at line 156 of file pathSegment.h.
|
private |
Definition at line 153 of file pathSegment.h.