15namespace DataObjects {
25 std::unique_ptr<MaskWorkspace>
clone()
const {
return std::unique_ptr<MaskWorkspace>(doClone()); }
27 std::unique_ptr<MaskWorkspace>
cloneEmpty()
const {
return std::unique_ptr<MaskWorkspace>(doCloneEmpty()); }
29 bool isMasked(
const detid_t detectorID)
const override;
30 bool isMasked(
const std::set<detid_t> &detectorIDs)
const override;
31 bool isMaskedIndex(
const std::size_t wkspIndex)
const;
32 void setMasked(
const detid_t detectorID,
const bool mask =
true)
override;
33 void setMasked(
const std::set<detid_t> &detectorIDs,
const bool mask =
true)
override;
34 void setMaskedIndex(
const std::size_t wkspIndex,
const bool mask =
true);
35 std::size_t getNumberMasked()
const override;
36 std::set<detid_t> getMaskedDetectors()
const;
37 std::set<std::size_t> getMaskedWkspIndices()
const;
39 const std::string id()
const override;
42 void copyFrom(std::shared_ptr<const SpecialWorkspace2D> sourcews)
override;
49 const std::string toString()
const override;
60 bool hasInstrument()
const;
This class provides an interface to a MaskWorkspace.
std::unique_ptr< MaskWorkspace > cloneEmpty() const
Returns a default-initialized clone of the workspace.
MaskWorkspace & operator=(const MaskWorkspace &other)=delete
MaskWorkspace * doClone() const override
Virtual clone method. Not implemented to force implementation in children.
MaskWorkspace(const MaskWorkspace &)=default
Protected copy constructor. May be used by childs for cloning.
std::unique_ptr< MaskWorkspace > clone() const
Returns a clone of the workspace.
MaskWorkspace * doCloneEmpty() const override
Virtual cloneEmpty method.
IMaskWorkspace * doInterfaceClone() const override
returns a clone of the workspace as the interface
std::shared_ptr< const MatrixWorkspace > MatrixWorkspace_const_sptr
shared pointer to the matrix workspace base class (const version)
std::shared_ptr< const MaskWorkspace > MaskWorkspace_const_sptr
shared pointer to a const MaskWorkspace
std::shared_ptr< MaskWorkspace > MaskWorkspace_sptr
shared pointer to the MaskWorkspace class
std::shared_ptr< const Instrument > Instrument_const_sptr
Shared pointer to an const instrument object.
Helper class which provides the Collimation Length for SANS instruments.