19 m_historyItems = std::vector<HistoryItem>(algorithms.begin(), algorithms.end());
36 throw std::out_of_range(
"HistoryView::unroll() - Index out of range");
41 std::advance(it,
index);
57 const auto history = it->getAlgorithmHistory();
58 const auto childHistories =
history->getChildHistories();
60 if (!it->isUnrolled() && !childHistories.empty()) {
65 std::vector<HistoryItem> tmpHistory(childHistories.cbegin(), childHistories.cend());
68 it =
m_historyItems.insert(it, tmpHistory.begin(), tmpHistory.end());
122 throw std::out_of_range(
"HistoryView::roll() - Index out of range");
127 std::advance(it,
index);
137 const size_t numChildren = it->numberOfChildren();
139 for (
size_t i = 0; i < numChildren; ++i) {
140 if (it->isUnrolled())
164 const size_t numChildren = it->numberOfChildren();
165 if (it->isUnrolled() && numChildren > 0) {
185 Mantid::Types::Core::DateAndTime algExecutionDate = item.getAlgorithmHistory()->executionDate();
186 return algExecutionDate < start || algExecutionDate > end;
std::map< DeltaEMode::Type, std::string > index
std::vector< history_type > history
history information
void rollChildren(std::vector< HistoryItem >::iterator it)
Check if our children are unrolled and if so roll them back up.
HistoryView(const WorkspaceHistory &wsHist)
std::vector< HistoryItem > m_historyItems
void roll(size_t index)
Roll an unrolled algorithm history item and remove its children from the view.
void rollAll()
Roll the entire algorithm history back up.
void filterBetweenExecDate(Mantid::Types::Core::DateAndTime start, Mantid::Types::Core::DateAndTime end=Mantid::Types::Core::DateAndTime::getCurrentTime())
Filter the list of history items to remove any anlgorithms whos start time is outside of the given ra...
void unrollAll()
Unroll the entire algorithm history.
void unroll(size_t index)
Unroll an algorithm history to export its child algorithms.
This class stores information about the Workspace History used by algorithms on a workspace and the e...
const AlgorithmHistories & getAlgorithmHistories() const
Retrieve the algorithm history list.