Mantid
|
#include <RowLocation.h>
Public Member Functions | |
RowLocation | child (int n) const |
int | depth () const |
bool | isChildOf (RowLocation const &other) const |
bool | isChildOrSiblingOf (RowLocation const &other) const |
bool | isDescendantOf (RowLocation const &other) const |
bool | isRoot () const |
bool | isSiblingOf (RowLocation const &other) const |
bool | operator!= (RowLocation const &other) const |
bool | operator< (RowLocation const &other) const |
bool | operator<= (RowLocation const &other) const |
bool | operator== (RowLocation const &other) const |
bool | operator> (RowLocation const &other) const |
bool | operator>= (RowLocation const &other) const |
RowLocation | parent () const |
RowPath const & | path () const |
RowLocation | relativeTo (RowLocation const &ancestor) const |
RowLocation ()=default | |
RowLocation (RowPath path) | |
int | rowRelativeToParent () const |
Private Attributes | |
RowPath | m_path |
Definition at line 22 of file RowLocation.h.
|
default |
Referenced by child(), parent(), and relativeTo().
MantidQt::MantidWidgets::Batch::RowLocation::RowLocation | ( | RowPath | path | ) |
Definition at line 20 of file RowLocation.cpp.
RowLocation MantidQt::MantidWidgets::Batch::RowLocation::child | ( | int | n | ) | const |
Definition at line 45 of file RowLocation.cpp.
References m_path, n, and RowLocation().
int MantidQt::MantidWidgets::Batch::RowLocation::depth | ( | ) | const |
Definition at line 51 of file RowLocation.cpp.
References m_path.
Referenced by MantidQt::MantidWidgets::Batch::hasSubtreeRootDeeperThanFirstRoot(), MantidQt::MantidWidgets::Batch::hasSubtreeRootShallowerThanFirstRoot(), isChildOf(), isDescendantOf(), isSiblingOf(), MantidQt::MantidWidgets::Batch::maximumIncreaseInDepthIsOne(), MantidQt::MantidWidgets::Batch::ExtractSubtrees::operator()(), MantidQt::MantidWidgets::Batch::pathsSameUntilDepth(), and relativeTo().
bool MantidQt::MantidWidgets::Batch::RowLocation::isChildOf | ( | RowLocation const & | other | ) | const |
Definition at line 24 of file RowLocation.cpp.
References depth(), boost::algorithm::equal(), isRoot(), and m_path.
Referenced by isChildOrSiblingOf().
bool MantidQt::MantidWidgets::Batch::RowLocation::isChildOrSiblingOf | ( | RowLocation const & | other | ) | const |
Definition at line 98 of file RowLocation.cpp.
References isChildOf(), and isSiblingOf().
bool MantidQt::MantidWidgets::Batch::RowLocation::isDescendantOf | ( | RowLocation const & | other | ) | const |
Definition at line 100 of file RowLocation.cpp.
References depth(), boost::algorithm::equal(), isRoot(), m_path, and path().
Referenced by MantidQt::MantidWidgets::Batch::allNodesDescendedFromParentOfFirstRoot(), and relativeTo().
bool MantidQt::MantidWidgets::Batch::RowLocation::isRoot | ( | ) | const |
Definition at line 23 of file RowLocation.cpp.
References m_path.
Referenced by MantidQt::MantidWidgets::Batch::RowLocationAdapter::indexIfExistsAt(), isChildOf(), isDescendantOf(), isSiblingOf(), and parent().
bool MantidQt::MantidWidgets::Batch::RowLocation::isSiblingOf | ( | RowLocation const & | other | ) | const |
Definition at line 89 of file RowLocation.cpp.
References depth(), boost::algorithm::equal(), isRoot(), and m_path.
Referenced by isChildOrSiblingOf().
bool MantidQt::MantidWidgets::Batch::RowLocation::operator!= | ( | RowLocation const & | other | ) | const |
Definition at line 68 of file RowLocation.cpp.
bool MantidQt::MantidWidgets::Batch::RowLocation::operator< | ( | RowLocation const & | other | ) | const |
Definition at line 70 of file RowLocation.cpp.
References path().
bool MantidQt::MantidWidgets::Batch::RowLocation::operator<= | ( | RowLocation const & | other | ) | const |
Definition at line 76 of file RowLocation.cpp.
bool MantidQt::MantidWidgets::Batch::RowLocation::operator== | ( | RowLocation const & | other | ) | const |
Definition at line 66 of file RowLocation.cpp.
References path().
bool MantidQt::MantidWidgets::Batch::RowLocation::operator> | ( | RowLocation const & | other | ) | const |
Definition at line 80 of file RowLocation.cpp.
bool MantidQt::MantidWidgets::Batch::RowLocation::operator>= | ( | RowLocation const & | other | ) | const |
Definition at line 78 of file RowLocation.cpp.
RowLocation MantidQt::MantidWidgets::Batch::RowLocation::parent | ( | ) | const |
Definition at line 40 of file RowLocation.cpp.
References assertOrThrow(), isRoot(), m_path, and RowLocation().
Referenced by MantidQt::MantidWidgets::Batch::JobTreeView::replaceSubtreeAt().
RowPath const & MantidQt::MantidWidgets::Batch::RowLocation::path | ( | ) | const |
Definition at line 21 of file RowLocation.cpp.
References m_path.
Referenced by isDescendantOf(), operator<(), MantidQt::MantidWidgets::Batch::operator<<(), operator==(), MantidQt::MantidWidgets::Batch::pathsSameUntilDepth(), and MantidQt::MantidWidgets::Batch::RowLocationAdapter::walkFromRootToParentIndexOf().
RowLocation MantidQt::MantidWidgets::Batch::RowLocation::relativeTo | ( | RowLocation const & | ancestor | ) | const |
Definition at line 82 of file RowLocation.cpp.
References assertOrThrow(), depth(), isDescendantOf(), m_path, and RowLocation().
Referenced by MantidQt::MantidWidgets::Batch::ExtractSubtrees::makeSubtreeFromRows().
int MantidQt::MantidWidgets::Batch::RowLocation::rowRelativeToParent | ( | ) | const |
Definition at line 22 of file RowLocation.cpp.
References m_path.
Referenced by MantidQt::MantidWidgets::Batch::RowLocationAdapter::indexIfExistsAt(), and MantidQt::MantidWidgets::Batch::JobTreeView::replaceSubtreeAt().
|
private |
Definition at line 45 of file RowLocation.h.
Referenced by child(), depth(), isChildOf(), isDescendantOf(), isRoot(), isSiblingOf(), parent(), path(), relativeTo(), and rowRelativeToParent().