18namespace MantidWidgets {
19namespace WorkspaceUtils {
31 std::pair<double, double> &res);
36 double precision = 0.000001);
44template <
typename T = Mant
id::API::MatrixWorkspace>
46 return Mantid::API::AnalysisDataService::Instance().retrieveWS<T>(workspaceName);
56template <
typename Iterator,
typename Functor>
57std::vector<std::string>
transformElements(Iterator
const fromIter, Iterator
const toIter, Functor
const &functor) {
58 std::vector<std::string> newVector;
59 newVector.reserve(toIter - fromIter);
60 std::transform(fromIter, toIter, std::back_inserter(newVector), functor);
64template <
typename T,
typename Predicate>
void removeElementsIf(std::vector<T> &vector, Predicate
const &filter) {
65 auto const iter = std::remove_if(vector.begin(), vector.end(), filter);
66 if (iter != vector.end())
67 vector.erase(iter, vector.end());
71 std::string
const &prefix);
#define EXPORT_OPT_MANTIDQT_COMMON
IPeaksWorkspace_sptr workspace
The AlgorithmProgressDialogPresenter keeps track of the running algorithms and displays a progress ba...
std::shared_ptr< const MatrixWorkspace > MatrixWorkspace_const_sptr
shared pointer to the matrix workspace base class (const version)
std::shared_ptr< MatrixWorkspace > MatrixWorkspace_sptr
shared pointer to the matrix workspace base class