Skip to content
Snippets Groups Projects
  • Edward Brown's avatar
    dc31fb7d
    Added RowLocation class. · dc31fb7d
    Edward Brown authored
    - Added RowLocation class for storing paths to nodes in the BatchWidget.
    - Added description as a concept in new dev-docs page for BatchWidget.
    
    Re #22263
    dc31fb7d
    History
    Added RowLocation class.
    Edward Brown authored
    - Added RowLocation class for storing paths to nodes in the BatchWidget.
    - Added description as a concept in new dev-docs page for BatchWidget.
    
    Re #22263
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
RowLocation.cpp 386 B
#include "MantidQtWidgets/Common/Batch/RowLocation.h"
namespace MantidQt {
namespace MantidWidgets {
namespace Batch {

RowLocation::RowLocation(RowPath path) : m_path(std::move(path)) {}
RowPath const &RowLocation::path() const { return m_path; }
int RowLocation::rowRelativeToParent() const { return m_path.back(); }
bool RowLocation::isRoot() const { return m_path.empty(); }

}
}
}