Mantid
Loading...
Searching...
No Matches
SymmetryElementFactory.cpp
Go to the documentation of this file.
1// Mantid Repository : https://github.com/mantidproject/mantid
2//
3// Copyright © 2018 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 +
9
10#include <boost/python/class.hpp>
11
12using namespace Mantid::Geometry;
13using namespace boost::python;
14
16
18 class_<SymmetryElementFactoryImpl, boost::noncopyable>("SymmetryElementFactoryImpl", no_init)
19 .def("createSymElement", &SymmetryElementFactoryImpl::createSymElement, (arg("self"), arg("operation")),
20 "Creates the symmetry element that corresponds to the supplied "
21 "symmetry operation.")
22 .def("Instance", &SymmetryElementFactory::Instance, return_value_policy<reference_existing_object>(),
23 "Returns a reference to the SymmetryElementFactory singleton")
24 .staticmethod("Instance");
25}
#define GET_POINTER_SPECIALIZATION(TYPE)
Definition: GetPointer.h:17
void export_SymmetryElementFactory()
This factory takes a SymmetryOperation and generates the corresponding SymmetryElement.
SymmetryElement_sptr createSymElement(const SymmetryOperation &operation)
Creates a SymmetryElement from a SymmetryOperation.
static T & Instance()
Return a reference to the Singleton instance, creating it if it does not already exist Creation is do...