Mantid
Loading...
Searching...
No Matches
BooleanBinaryOperationMD.h
Go to the documentation of this file.
1// Mantid Repository : https://github.com/mantidproject/mantid
2//
3// Copyright © 2011 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
11
12namespace Mantid {
13namespace MDAlgorithms {
14
20class MANTID_MDALGORITHMS_DLL BooleanBinaryOperationMD : public BinaryOperationMD {
21public:
22 const std::string name() const override;
24 const std::string summary() const override;
25
26 int version() const override;
27
28protected:
30
32 virtual bool acceptScalar() const { return true; }
33 bool commutative() const override;
34 void checkInputs() override;
35 void execEvent() override;
36 void execHistoScalar(Mantid::DataObjects::MDHistoWorkspace_sptr out,
38
42};
43
44} // namespace MDAlgorithms
45} // namespace Mantid
Abstract base class for binary operations on IMDWorkspaces, e.g.
BooleanBinaryOperationMD : base class for boolean-type operations on MDHistoWorkspaces.
void execHistoHisto(Mantid::DataObjects::MDHistoWorkspace_sptr out, Mantid::DataObjects::MDHistoWorkspace_const_sptr operand) override=0
Run the algorithm with a MDHisotWorkspace as output and operand.
virtual bool acceptScalar() const
Return true if the algorithm can operate on a scalar.
std::shared_ptr< const WorkspaceSingleValue > WorkspaceSingleValue_const_sptr
std::shared_ptr< MDHistoWorkspace > MDHistoWorkspace_sptr
A shared pointer to a MDHistoWorkspace.
std::shared_ptr< const MDHistoWorkspace > MDHistoWorkspace_const_sptr
A shared pointer to a const MDHistoWorkspace.
Helper class which provides the Collimation Length for SANS instruments.