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:
24 HistoWorkspace(const Parallel::StorageMode storageMode = Parallel::StorageMode::Cloned)
25 : MatrixWorkspace(storageMode) {}
26
28 std::unique_ptr<HistoWorkspace> clone() const { return std::unique_ptr<HistoWorkspace>(doClone()); }
29
31 std::unique_ptr<HistoWorkspace> cloneEmpty() const { return std::unique_ptr<HistoWorkspace>(doCloneEmpty()); }
32
33private:
34 HistoWorkspace *doClone() const override = 0;
35 HistoWorkspace *doCloneEmpty() const override = 0;
36};
37
38} // namespace API
39} // 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.
HistoWorkspace(const Parallel::StorageMode storageMode=Parallel::StorageMode::Cloned)
Base MatrixWorkspace Abstract Class.
Helper class which provides the Collimation Length for SANS instruments.