Mantid
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Private Member Functions | List of all members
MantidQt::MantidWidgets::Batch::ExtractSubtrees Class Reference

#include <ExtractSubtrees.h>

Public Types

using RandomAccessConstRowIterator = std::vector< Row >::const_iterator
 
using RandomAccessRowIterator = std::vector< Row >::iterator
 

Public Member Functions

boost::optional< std::vector< Subtree > > operator() (std::vector< Row > region) const
 

Private Member Functions

RandomAccessConstRowIterator findEndOfSubtree (RandomAccessConstRowIterator subtreeBegin, RandomAccessConstRowIterator regionEnd, int subtreeRootDepth) const
 
Subtree makeSubtreeFromRows (RowLocation subtreeRootLocation, RandomAccessConstRowIterator subtreeBegin, RandomAccessConstRowIterator subtreeEnd) const
 
std::vector< SubtreemakeSubtreesFromRows (std::vector< Row > const &rows, int subtreeRootDepth) const
 

Detailed Description

Definition at line 24 of file ExtractSubtrees.h.

Member Typedef Documentation

◆ RandomAccessConstRowIterator

Definition at line 27 of file ExtractSubtrees.h.

◆ RandomAccessRowIterator

Definition at line 26 of file ExtractSubtrees.h.

Member Function Documentation

◆ findEndOfSubtree()

auto MantidQt::MantidWidgets::Batch::ExtractSubtrees::findEndOfSubtree ( RandomAccessConstRowIterator  subtreeBegin,
RandomAccessConstRowIterator  regionEnd,
int  subtreeRootDepth 
) const
private

Definition at line 14 of file ExtractSubtrees.cpp.

References MantidQt::MantidWidgets::Batch::Row::location().

Referenced by makeSubtreesFromRows().

◆ makeSubtreeFromRows()

Subtree MantidQt::MantidWidgets::Batch::ExtractSubtrees::makeSubtreeFromRows ( RowLocation  subtreeRootLocation,
RandomAccessConstRowIterator  subtreeBegin,
RandomAccessConstRowIterator  subtreeEnd 
) const
private

◆ makeSubtreesFromRows()

std::vector< Subtree > MantidQt::MantidWidgets::Batch::ExtractSubtrees::makeSubtreesFromRows ( std::vector< Row > const &  rows,
int  subtreeRootDepth 
) const
private

Definition at line 32 of file ExtractSubtrees.cpp.

References findEndOfSubtree(), and makeSubtreeFromRows().

◆ operator()()

auto MantidQt::MantidWidgets::Batch::ExtractSubtrees::operator() ( std::vector< Row region) const

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