Mantid
Loading...
Searching...
No Matches
HistoWorkspace.h
Go to the documentation of this file.
1// Mantid Repository : https://github.com/mantidproject/mantid
2//
3// Copyright © 2016 ISIS Rutherford Appleton Laboratory UKRI,
4// NScD Oak Ridge National Laboratory, European Spallation Source,
5// Institut Laue - Langevin & CSNS, Institute of High Energy Physics, CAS
6// SPDX - License - Identifier: GPL - 3.0 +
7#pragma once
8
9#include "MantidAPI/DllConfig.h"
11
12namespace Mantid {
13namespace API {
14
22class MANTID_API_DLL HistoWorkspace : public MatrixWorkspace {
23public:
25
27 std::unique_ptr<HistoWorkspace> clone() const { return std::unique_ptr<HistoWorkspace>(doClone()); }
28
30 std::unique_ptr<HistoWorkspace> cloneEmpty() const { return std::unique_ptr<HistoWorkspace>(doCloneEmpty()); }
31
32private:
33 HistoWorkspace *doClone() const override = 0;
34 HistoWorkspace *doCloneEmpty() const override = 0;
35};
36
37} // namespace API
38} // namespace Mantid
HistoWorkspace is an abstract base class for MatrixWorkspace types that are NOT event workspaces.
HistoWorkspace * doCloneEmpty() const override=0
Virtual cloneEmpty method.
std::unique_ptr< HistoWorkspace > cloneEmpty() const
Returns a default-initialized clone of the workspace.
HistoWorkspace * doClone() const override=0
Virtual clone method. Not implemented to force implementation in children.
std::unique_ptr< HistoWorkspace > clone() const
Returns a clone of the workspace.
Base MatrixWorkspace Abstract Class.
Helper class which provides the Collimation Length for SANS instruments.