diff --git a/Code/Mantid/Framework/PythonInterface/mantid/api/src/Exports/Algorithm.cpp b/Code/Mantid/Framework/PythonInterface/mantid/api/src/Exports/Algorithm.cpp index 99e7e215f5d7f55b1d030bf42a7d644114cda969..eb372bd605fb8b9105477752da3b17c2e7238151 100644 --- a/Code/Mantid/Framework/PythonInterface/mantid/api/src/Exports/Algorithm.cpp +++ b/Code/Mantid/Framework/PythonInterface/mantid/api/src/Exports/Algorithm.cpp @@ -38,7 +38,9 @@ namespace BOOST_PYTHON_FUNCTION_OVERLOADS(declarePropertyType3_Overload, PythonAlgorithm::declarePyAlgProperty, 4, 5) } +// clang-format off void export_leaf_classes() +// clang-format on { register_ptr_to_python<boost::shared_ptr<Algorithm>>(); diff --git a/Code/Mantid/Framework/PythonInterface/mantid/api/src/Exports/AlgorithmFactory.cpp b/Code/Mantid/Framework/PythonInterface/mantid/api/src/Exports/AlgorithmFactory.cpp index 2b3feeae340e34a2b126db78d21cd6ccf23c61e0..374187c08e7bfe10fdaf042c32024e2607cf4e64 100644 --- a/Code/Mantid/Framework/PythonInterface/mantid/api/src/Exports/AlgorithmFactory.cpp +++ b/Code/Mantid/Framework/PythonInterface/mantid/api/src/Exports/AlgorithmFactory.cpp @@ -107,7 +107,9 @@ GCC_DIAG_OFF(cast-qual) GCC_DIAG_ON(cast-qual) // clang-format on +// clang-format off void export_AlgorithmFactory() +// clang-format on { class_<AlgorithmFactoryImpl,boost::noncopyable>("AlgorithmFactoryImpl", no_init) diff --git a/Code/Mantid/Framework/PythonInterface/mantid/api/src/Exports/AlgorithmHistory.cpp b/Code/Mantid/Framework/PythonInterface/mantid/api/src/Exports/AlgorithmHistory.cpp index 6ebd0b981e56720f1279d0eaab4b899b325bc37a..3febd8e0af53ba30f66692d3ceab7412e9e2eb42 100644 --- a/Code/Mantid/Framework/PythonInterface/mantid/api/src/Exports/AlgorithmHistory.cpp +++ b/Code/Mantid/Framework/PythonInterface/mantid/api/src/Exports/AlgorithmHistory.cpp @@ -54,7 +54,9 @@ boost::python::object getPropertiesAsList(AlgorithmHistory& self) return names; } +// clang-format off void export_AlgorithmHistory() +// clang-format on { register_ptr_to_python<Mantid::API::AlgorithmHistory_sptr >(); diff --git a/Code/Mantid/Framework/PythonInterface/mantid/api/src/Exports/AlgorithmManager.cpp b/Code/Mantid/Framework/PythonInterface/mantid/api/src/Exports/AlgorithmManager.cpp index 4296086b4f68f950c5e8326dd0de2d9bf6a57914..970a6999a46779c70435c40fef2ec94d03e90113 100644 --- a/Code/Mantid/Framework/PythonInterface/mantid/api/src/Exports/AlgorithmManager.cpp +++ b/Code/Mantid/Framework/PythonInterface/mantid/api/src/Exports/AlgorithmManager.cpp @@ -64,7 +64,9 @@ namespace ///@endcond } +// clang-format off void export_AlgorithmManager() +// clang-format on { typedef class_<AlgorithmManagerImpl,boost::noncopyable> PythonType; diff --git a/Code/Mantid/Framework/PythonInterface/mantid/api/src/Exports/AlgorithmProperty.cpp b/Code/Mantid/Framework/PythonInterface/mantid/api/src/Exports/AlgorithmProperty.cpp index 27eb76b69b3f9bf6f288f919c008fb3419d1b392..532266fc4308dd393775ccaf5c4fcfa628409e27 100644 --- a/Code/Mantid/Framework/PythonInterface/mantid/api/src/Exports/AlgorithmProperty.cpp +++ b/Code/Mantid/Framework/PythonInterface/mantid/api/src/Exports/AlgorithmProperty.cpp @@ -38,7 +38,9 @@ namespace } +// clang-format off void export_AlgorithmProperty() +// clang-format on { // AlgorithmProperty has base PropertyWithValue<boost::shared_ptr<IAlgorithm>> // which must be exported diff --git a/Code/Mantid/Framework/PythonInterface/mantid/api/src/Exports/AlgorithmProxy.cpp b/Code/Mantid/Framework/PythonInterface/mantid/api/src/Exports/AlgorithmProxy.cpp index 34b4053367b6abbee01a2921500e6147f65062d7..da3f99efa96710fa2931fb9d3685247f9e4c3448 100644 --- a/Code/Mantid/Framework/PythonInterface/mantid/api/src/Exports/AlgorithmProxy.cpp +++ b/Code/Mantid/Framework/PythonInterface/mantid/api/src/Exports/AlgorithmProxy.cpp @@ -9,7 +9,9 @@ using namespace Mantid::API; using namespace boost::python; +// clang-format off void export_algorithm_proxy() +// clang-format on { register_ptr_to_python<boost::shared_ptr<AlgorithmProxy>>(); diff --git a/Code/Mantid/Framework/PythonInterface/mantid/api/src/Exports/AnalysisDataService.cpp b/Code/Mantid/Framework/PythonInterface/mantid/api/src/Exports/AnalysisDataService.cpp index a2d181201d66ab805c617b728c041abe22102bc7..7723bf3eb02ed2287b729c41423ecd7c4e98a8e4 100644 --- a/Code/Mantid/Framework/PythonInterface/mantid/api/src/Exports/AnalysisDataService.cpp +++ b/Code/Mantid/Framework/PythonInterface/mantid/api/src/Exports/AnalysisDataService.cpp @@ -65,7 +65,9 @@ namespace } +// clang-format off void export_AnalysisDataService() +// clang-format on { typedef DataServiceExporter<AnalysisDataServiceImpl, Workspace_sptr> ADSExporter; auto pythonClass = ADSExporter::define("AnalysisDataServiceImpl"); diff --git a/Code/Mantid/Framework/PythonInterface/mantid/api/src/Exports/Axis.cpp b/Code/Mantid/Framework/PythonInterface/mantid/api/src/Exports/Axis.cpp index 4151bcbebf843e22591789803a3f9136041fc14e..7ab4b583a6f9f26dacb9f84aa7bfb244aaa58acd 100644 --- a/Code/Mantid/Framework/PythonInterface/mantid/api/src/Exports/Axis.cpp +++ b/Code/Mantid/Framework/PythonInterface/mantid/api/src/Exports/Axis.cpp @@ -78,7 +78,9 @@ namespace } +// clang-format off void export_Axis() +// clang-format on { register_ptr_to_python<Axis*>(); @@ -119,7 +121,9 @@ Axis* createNumericAxis(int length) return new Mantid::API::NumericAxis(length); } +// clang-format off void export_NumericAxis() +// clang-format on { /// Exported so that Boost.Python can give back a NumericAxis class when an Axis* is returned class_< NumericAxis, bases<Axis>, boost::noncopyable >("NumericAxis", no_init) @@ -143,7 +147,9 @@ Axis* createBinEdgeAxis(int length) return new Mantid::API::BinEdgeAxis(length); } +// clang-format off void export_BinEdgeAxis() +// clang-format on { /// Exported so that Boost.Python can give back a BinEdgeAxis class when an Axis* is returned class_< BinEdgeAxis, bases<NumericAxis>, boost::noncopyable >("BinEdgeAxis", no_init) @@ -168,7 +174,9 @@ Axis* createTextAxis(int length) } +// clang-format off void export_TextAxis() +// clang-format on { class_< TextAxis, bases<Axis>, boost::noncopyable >("TextAxis", no_init) .def("setLabel", & TextAxis::setLabel, "Set the label at the given entry") diff --git a/Code/Mantid/Framework/PythonInterface/mantid/api/src/Exports/BinaryOperations.cpp b/Code/Mantid/Framework/PythonInterface/mantid/api/src/Exports/BinaryOperations.cpp index e2f388a9d7bacd6dc7a4f3eaaeba4428c61e1206..ca1f13e79308f33a59e8634aba466d07cd0de475 100644 --- a/Code/Mantid/Framework/PythonInterface/mantid/api/src/Exports/BinaryOperations.cpp +++ b/Code/Mantid/Framework/PythonInterface/mantid/api/src/Exports/BinaryOperations.cpp @@ -14,7 +14,9 @@ namespace Policies = Mantid::PythonInterface::Policies; +// clang-format off void export_BinaryOperations() +// clang-format on { using namespace Mantid::API; using boost::python::return_value_policy; diff --git a/Code/Mantid/Framework/PythonInterface/mantid/api/src/Exports/BoxController.cpp b/Code/Mantid/Framework/PythonInterface/mantid/api/src/Exports/BoxController.cpp index a77e0b319adec044dedb1985a10001e6e63ea2a3..950a9cdb187ec280d364b45002db216548e61f29 100644 --- a/Code/Mantid/Framework/PythonInterface/mantid/api/src/Exports/BoxController.cpp +++ b/Code/Mantid/Framework/PythonInterface/mantid/api/src/Exports/BoxController.cpp @@ -7,7 +7,9 @@ using Mantid::API::BoxController; using namespace boost::python; +// clang-format off void export_BoxController() +// clang-format on { register_ptr_to_python<boost::shared_ptr<BoxController>>(); diff --git a/Code/Mantid/Framework/PythonInterface/mantid/api/src/Exports/CatalogManager.cpp b/Code/Mantid/Framework/PythonInterface/mantid/api/src/Exports/CatalogManager.cpp index 9104eead36962acfe797c73acf2267014e3c1187..46bedf92c58ef8240559cbc522c8d6a517770f57 100644 --- a/Code/Mantid/Framework/PythonInterface/mantid/api/src/Exports/CatalogManager.cpp +++ b/Code/Mantid/Framework/PythonInterface/mantid/api/src/Exports/CatalogManager.cpp @@ -19,7 +19,9 @@ boost::python::object getActiveSessionsAsList(CatalogManagerImpl& self) return sessions; } +// clang-format off void export_CatalogManager() +// clang-format on { register_ptr_to_python<CatalogManagerImpl*>(); diff --git a/Code/Mantid/Framework/PythonInterface/mantid/api/src/Exports/CatalogSession.cpp b/Code/Mantid/Framework/PythonInterface/mantid/api/src/Exports/CatalogSession.cpp index f888c6110c7d061eb15df4cab67aadcc41e17199..98532ffe0fa490db067baeffdaf34d75690a0a38 100644 --- a/Code/Mantid/Framework/PythonInterface/mantid/api/src/Exports/CatalogSession.cpp +++ b/Code/Mantid/Framework/PythonInterface/mantid/api/src/Exports/CatalogSession.cpp @@ -7,7 +7,9 @@ using Mantid::API::CatalogSession; using namespace boost::python; +// clang-format off void export_CatalogSession() +// clang-format on { register_ptr_to_python<boost::shared_ptr<CatalogSession> >(); diff --git a/Code/Mantid/Framework/PythonInterface/mantid/api/src/Exports/DataProcessorAlgorithm.cpp b/Code/Mantid/Framework/PythonInterface/mantid/api/src/Exports/DataProcessorAlgorithm.cpp index a8bcac9e082e16224c5b359de332183aebac4f40..08a1b34c686ed72cc19da2dc5d4842416ce012c4 100644 --- a/Code/Mantid/Framework/PythonInterface/mantid/api/src/Exports/DataProcessorAlgorithm.cpp +++ b/Code/Mantid/Framework/PythonInterface/mantid/api/src/Exports/DataProcessorAlgorithm.cpp @@ -14,7 +14,9 @@ namespace typedef Workspace_sptr(DataProcessorAdapter::*loadOverload2)(const std::string&, const bool); } +// clang-format off void export_DataProcessorAlgorithm() +// clang-format on { // for strings will actually create a list using Mantid::PythonInterface::Policies::VectorToNumpy; diff --git a/Code/Mantid/Framework/PythonInterface/mantid/api/src/Exports/DeprecatedAlgorithmChecker.cpp b/Code/Mantid/Framework/PythonInterface/mantid/api/src/Exports/DeprecatedAlgorithmChecker.cpp index 53f4cb6fa0ec04a05d505de3234b2e6c5a9622c3..821e324d7c9ebe331dbad8bc993f0a708514543a 100644 --- a/Code/Mantid/Framework/PythonInterface/mantid/api/src/Exports/DeprecatedAlgorithmChecker.cpp +++ b/Code/Mantid/Framework/PythonInterface/mantid/api/src/Exports/DeprecatedAlgorithmChecker.cpp @@ -50,7 +50,9 @@ namespace }; } +// clang-format off void export_DeprecatedAlgorithmChecker() +// clang-format on { class_<DeprecatedAlgorithmChecker>("DeprecatedAlgorithmChecker", no_init) .def(init<const std::string&,int>((arg("algName"),arg("version")),"Constructs a DeprecatedAlgorithmChecker for the given algorithm & version. (-1 indicates latest version)")) diff --git a/Code/Mantid/Framework/PythonInterface/mantid/api/src/Exports/ExperimentInfo.cpp b/Code/Mantid/Framework/PythonInterface/mantid/api/src/Exports/ExperimentInfo.cpp index b02c444f40f44c630a6a4e48363a50a87983f78d..e6dcc21ac75d002da3601af2b15958460a742b9a 100644 --- a/Code/Mantid/Framework/PythonInterface/mantid/api/src/Exports/ExperimentInfo.cpp +++ b/Code/Mantid/Framework/PythonInterface/mantid/api/src/Exports/ExperimentInfo.cpp @@ -13,7 +13,9 @@ using namespace boost::python; /// Overload generator for getInstrumentFilename BOOST_PYTHON_FUNCTION_OVERLOADS(getInstrumentFilename_Overload, ExperimentInfo::getInstrumentFilename, 1, 2) +// clang-format off void export_ExperimentInfo() +// clang-format on { register_ptr_to_python<boost::shared_ptr<ExperimentInfo>>(); diff --git a/Code/Mantid/Framework/PythonInterface/mantid/api/src/Exports/FileFinder.cpp b/Code/Mantid/Framework/PythonInterface/mantid/api/src/Exports/FileFinder.cpp index d4bec6851b00d0549be757ae4136600725e18278..12fdb1d5a8e59385d9d6ae82b2ac278fb183854c 100644 --- a/Code/Mantid/Framework/PythonInterface/mantid/api/src/Exports/FileFinder.cpp +++ b/Code/Mantid/Framework/PythonInterface/mantid/api/src/Exports/FileFinder.cpp @@ -11,7 +11,9 @@ namespace { BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(getFullPathOverloader, getFullPath, 1, 2) } +// clang-format off void export_FileFinder() +// clang-format on { class_<FileFinderImpl, boost::noncopyable>("FileFinderImpl", no_init) .def("getFullPath", &FileFinderImpl::getFullPath, diff --git a/Code/Mantid/Framework/PythonInterface/mantid/api/src/Exports/FileProperty.cpp b/Code/Mantid/Framework/PythonInterface/mantid/api/src/Exports/FileProperty.cpp index 02749eae5673b154ea72c906d1afbe0232015ecb..faa83923fff77927790faed5a863d4c837b6c5b5 100644 --- a/Code/Mantid/Framework/PythonInterface/mantid/api/src/Exports/FileProperty.cpp +++ b/Code/Mantid/Framework/PythonInterface/mantid/api/src/Exports/FileProperty.cpp @@ -17,7 +17,9 @@ using Mantid::Kernel::PropertyWithValue; using Mantid::PythonInterface::Converters::PySequenceToVector; namespace bpl = boost::python; +// clang-format off void export_ActionEnum() +// clang-format on { bpl::enum_<FileProperty::FileAction>("FileAction") .value("Save", FileProperty::Save) @@ -63,7 +65,9 @@ namespace } +// clang-format off void export_FileProperty() +// clang-format on { bpl::class_<FileProperty, bpl::bases<PropertyWithValue<std::string> >, boost::noncopyable>("FileProperty", bpl::no_init) .def("__init__", diff --git a/Code/Mantid/Framework/PythonInterface/mantid/api/src/Exports/FrameworkManager.cpp b/Code/Mantid/Framework/PythonInterface/mantid/api/src/Exports/FrameworkManager.cpp index b917c6637ebf73db88ba68ca884c107f80779366..f47580ff37f6863ceafcfe78e68657b8d6fe1aed 100644 --- a/Code/Mantid/Framework/PythonInterface/mantid/api/src/Exports/FrameworkManager.cpp +++ b/Code/Mantid/Framework/PythonInterface/mantid/api/src/Exports/FrameworkManager.cpp @@ -8,7 +8,9 @@ using Mantid::API::FrameworkManagerImpl; using Mantid::API::FrameworkManager; using namespace boost::python; +// clang-format off void export_FrameworkManager() +// clang-format on { class_<FrameworkManagerImpl,boost::noncopyable>("FrameworkManagerImpl", no_init) .def("setNumOMPThreadsToConfigValue", &FrameworkManagerImpl::setNumOMPThreadsToConfigValue, diff --git a/Code/Mantid/Framework/PythonInterface/mantid/api/src/Exports/FunctionFactory.cpp b/Code/Mantid/Framework/PythonInterface/mantid/api/src/Exports/FunctionFactory.cpp index d00e88e34f35bae68c595407f6268eb42d5b0f6c..e504e39e19e32a70cee33dee74b7696307bf4705 100644 --- a/Code/Mantid/Framework/PythonInterface/mantid/api/src/Exports/FunctionFactory.cpp +++ b/Code/Mantid/Framework/PythonInterface/mantid/api/src/Exports/FunctionFactory.cpp @@ -86,7 +86,9 @@ namespace ///@endcond } +// clang-format off void export_FunctionFactory() +// clang-format on { class_<FunctionFactoryImpl,boost::noncopyable>("FunctionFactoryImpl", no_init) diff --git a/Code/Mantid/Framework/PythonInterface/mantid/api/src/Exports/FunctionProperty.cpp b/Code/Mantid/Framework/PythonInterface/mantid/api/src/Exports/FunctionProperty.cpp index 1f042a31cf66298e55d5368e8628d0dbaa187495..ffbfbdb11b812874b7b0aec6d6f5f6a319a24b77 100644 --- a/Code/Mantid/Framework/PythonInterface/mantid/api/src/Exports/FunctionProperty.cpp +++ b/Code/Mantid/Framework/PythonInterface/mantid/api/src/Exports/FunctionProperty.cpp @@ -8,7 +8,9 @@ using Mantid::Kernel::PropertyWithValue; using Mantid::PythonInterface::PropertyWithValueExporter; using namespace boost::python; +// clang-format off void export_FunctionProperty() +// clang-format on { // FuncitonProperty has base PropertyWithValue<boost::shared_ptr<IFunction>> // which must be exported diff --git a/Code/Mantid/Framework/PythonInterface/mantid/api/src/Exports/IAlgorithm.cpp b/Code/Mantid/Framework/PythonInterface/mantid/api/src/Exports/IAlgorithm.cpp index 07ef49a108f54e31646f4fd7addfd8a80049b5de..2f5406854f326bc1e62a6721ec665fd6ea8c6e63 100644 --- a/Code/Mantid/Framework/PythonInterface/mantid/api/src/Exports/IAlgorithm.cpp +++ b/Code/Mantid/Framework/PythonInterface/mantid/api/src/Exports/IAlgorithm.cpp @@ -262,7 +262,9 @@ namespace } +// clang-format off void export_ialgorithm() +// clang-format on { class_<AlgorithmIDProxy>("AlgorithmID", no_init) .def(self == self) diff --git a/Code/Mantid/Framework/PythonInterface/mantid/api/src/Exports/IEventList.cpp b/Code/Mantid/Framework/PythonInterface/mantid/api/src/Exports/IEventList.cpp index 19fd218d92f4f0cc27bef83a3f34fe0d44d1caf6..7537d8f60f8182af7f2bf3ee499b7085e40e724e 100644 --- a/Code/Mantid/Framework/PythonInterface/mantid/api/src/Exports/IEventList.cpp +++ b/Code/Mantid/Framework/PythonInterface/mantid/api/src/Exports/IEventList.cpp @@ -20,7 +20,9 @@ using namespace boost::python; /// return_value_policy for copied numpy array typedef return_value_policy<Policies::VectorToNumpy> return_clone_numpy; +// clang-format off void export_IEventList() +// clang-format on { register_ptr_to_python<IEventList *>(); diff --git a/Code/Mantid/Framework/PythonInterface/mantid/api/src/Exports/IEventWorkspace.cpp b/Code/Mantid/Framework/PythonInterface/mantid/api/src/Exports/IEventWorkspace.cpp index 57bd6601a2403ca14c10b5933f3fdbd9cf703163..af2bfc0bea8f16c6bf73ef04b7cf1185931ca4a8 100644 --- a/Code/Mantid/Framework/PythonInterface/mantid/api/src/Exports/IEventWorkspace.cpp +++ b/Code/Mantid/Framework/PythonInterface/mantid/api/src/Exports/IEventWorkspace.cpp @@ -12,7 +12,9 @@ using namespace boost::python; /** * Python exports of the Mantid::API::IEventWorkspace class. */ +// clang-format off void export_IEventWorkspace() +// clang-format on { class_<IEventWorkspace, bases<Mantid::API::MatrixWorkspace>, boost::noncopyable>("IEventWorkspace", no_init) .def("getNumberEvents", &IEventWorkspace::getNumberEvents, args("self"), diff --git a/Code/Mantid/Framework/PythonInterface/mantid/api/src/Exports/IEventWorkspaceProperty.cpp b/Code/Mantid/Framework/PythonInterface/mantid/api/src/Exports/IEventWorkspaceProperty.cpp index 99afcf21875d9ee34985992a2243fabc90862135..241e1e9825ba96098d631c70b285b10906895916 100644 --- a/Code/Mantid/Framework/PythonInterface/mantid/api/src/Exports/IEventWorkspaceProperty.cpp +++ b/Code/Mantid/Framework/PythonInterface/mantid/api/src/Exports/IEventWorkspaceProperty.cpp @@ -1,7 +1,9 @@ #include "MantidPythonInterface/api/WorkspacePropertyExporter.h" #include "MantidAPI/IEventWorkspace.h" +// clang-format off void export_IEventWorkspaceProperty() +// clang-format on { using Mantid::API::IEventWorkspace; using Mantid::PythonInterface::WorkspacePropertyExporter; diff --git a/Code/Mantid/Framework/PythonInterface/mantid/api/src/Exports/IFunction.cpp b/Code/Mantid/Framework/PythonInterface/mantid/api/src/Exports/IFunction.cpp index d43ac0538b798e6bf3bf5978e8e9af36a0e3d391..292be1504f6da2dafb5ef300598075c263013749 100644 --- a/Code/Mantid/Framework/PythonInterface/mantid/api/src/Exports/IFunction.cpp +++ b/Code/Mantid/Framework/PythonInterface/mantid/api/src/Exports/IFunction.cpp @@ -44,7 +44,9 @@ namespace ///@endcond } +// clang-format off void export_IFunction() +// clang-format on { register_ptr_to_python<boost::shared_ptr<IFunction>>(); diff --git a/Code/Mantid/Framework/PythonInterface/mantid/api/src/Exports/IFunction1D.cpp b/Code/Mantid/Framework/PythonInterface/mantid/api/src/Exports/IFunction1D.cpp index 726caf7ea272f73a1e2e031bcecda66267089857..df88a040e9ffeb1ed55fb09513e7f2a0fd4fd953 100644 --- a/Code/Mantid/Framework/PythonInterface/mantid/api/src/Exports/IFunction1D.cpp +++ b/Code/Mantid/Framework/PythonInterface/mantid/api/src/Exports/IFunction1D.cpp @@ -8,7 +8,9 @@ using Mantid::PythonInterface::IFunction1DAdapter; using Mantid::PythonInterface::IFunctionAdapter; using namespace boost::python; +// clang-format off void export_IFunction1D() +// clang-format on { /** * The Python held type, boost::shared_ptr<IFunction1DAdapter>, allows diff --git a/Code/Mantid/Framework/PythonInterface/mantid/api/src/Exports/IMDEventWorkspace.cpp b/Code/Mantid/Framework/PythonInterface/mantid/api/src/Exports/IMDEventWorkspace.cpp index 436f05446246dd576646dcd0368d02370a4d59b3..8bc619371670f41c9fc99f1eead55e945b3c399d 100644 --- a/Code/Mantid/Framework/PythonInterface/mantid/api/src/Exports/IMDEventWorkspace.cpp +++ b/Code/Mantid/Framework/PythonInterface/mantid/api/src/Exports/IMDEventWorkspace.cpp @@ -15,7 +15,9 @@ namespace static const unsigned int NUM_EVENT_TYPES = 2; } +// clang-format off void export_IMDEventWorkspace() +// clang-format on { // MDEventWorkspace class class_< IMDEventWorkspace, bases<IMDWorkspace, MultipleExperimentInfos>, diff --git a/Code/Mantid/Framework/PythonInterface/mantid/api/src/Exports/IMDEventWorkspaceProperty.cpp b/Code/Mantid/Framework/PythonInterface/mantid/api/src/Exports/IMDEventWorkspaceProperty.cpp index c0169c29fc04ecf90e8a3ef7ed72fa9b5f3437a7..74795da8d32154a086418f3600fb5fbb3e583079 100644 --- a/Code/Mantid/Framework/PythonInterface/mantid/api/src/Exports/IMDEventWorkspaceProperty.cpp +++ b/Code/Mantid/Framework/PythonInterface/mantid/api/src/Exports/IMDEventWorkspaceProperty.cpp @@ -1,7 +1,9 @@ #include "MantidPythonInterface/api/WorkspacePropertyExporter.h" #include "MantidAPI/IMDEventWorkspace.h" +// clang-format off void export_IMDEventWorkspaceProperty() +// clang-format on { using Mantid::API::IMDEventWorkspace; using Mantid::PythonInterface::WorkspacePropertyExporter; diff --git a/Code/Mantid/Framework/PythonInterface/mantid/api/src/Exports/IMDHistoWorkspace.cpp b/Code/Mantid/Framework/PythonInterface/mantid/api/src/Exports/IMDHistoWorkspace.cpp index b33c0331041bff38ea8247bf94f16a96b0aa5c30..24ab708188feaed3c6f3592b3e5d0cb28277eb87 100644 --- a/Code/Mantid/Framework/PythonInterface/mantid/api/src/Exports/IMDHistoWorkspace.cpp +++ b/Code/Mantid/Framework/PythonInterface/mantid/api/src/Exports/IMDHistoWorkspace.cpp @@ -140,7 +140,9 @@ namespace } +// clang-format off void export_IMDHistoWorkspace() +// clang-format on { // IMDHistoWorkspace class class_< IMDHistoWorkspace, bases<IMDWorkspace,MultipleExperimentInfos>, boost::noncopyable >("IMDHistoWorkspace", no_init) diff --git a/Code/Mantid/Framework/PythonInterface/mantid/api/src/Exports/IMDHistoWorkspaceProperty.cpp b/Code/Mantid/Framework/PythonInterface/mantid/api/src/Exports/IMDHistoWorkspaceProperty.cpp index 7457356b21cde000c2b55c5d6f96abea84cfadb5..44e6346bf64a831fa210f1de05c976e9ffd7ae12 100644 --- a/Code/Mantid/Framework/PythonInterface/mantid/api/src/Exports/IMDHistoWorkspaceProperty.cpp +++ b/Code/Mantid/Framework/PythonInterface/mantid/api/src/Exports/IMDHistoWorkspaceProperty.cpp @@ -1,7 +1,9 @@ #include "MantidPythonInterface/api/WorkspacePropertyExporter.h" #include "MantidAPI/IMDHistoWorkspace.h" +// clang-format off void export_IMDHistoWorkspaceProperty() +// clang-format on { using Mantid::API::IMDHistoWorkspace; using Mantid::PythonInterface::WorkspacePropertyExporter; diff --git a/Code/Mantid/Framework/PythonInterface/mantid/api/src/Exports/IMDWorkspace.cpp b/Code/Mantid/Framework/PythonInterface/mantid/api/src/Exports/IMDWorkspace.cpp index 5c728e614f8305026ed6ff190ac6cbcd4aeba7ca..8b0931b83894190d4042dafbfcb9abb67d5d85a4 100644 --- a/Code/Mantid/Framework/PythonInterface/mantid/api/src/Exports/IMDWorkspace.cpp +++ b/Code/Mantid/Framework/PythonInterface/mantid/api/src/Exports/IMDWorkspace.cpp @@ -9,7 +9,9 @@ using namespace Mantid::API; using Mantid::PythonInterface::Registry::DataItemInterface; using namespace boost::python; +// clang-format off void export_IMDWorkspace() +// clang-format on { boost::python::enum_<Mantid::API::MDNormalization>("MDNormalization") .value("NoNormalization", Mantid::API::NoNormalization) diff --git a/Code/Mantid/Framework/PythonInterface/mantid/api/src/Exports/IMDWorkspaceProperty.cpp b/Code/Mantid/Framework/PythonInterface/mantid/api/src/Exports/IMDWorkspaceProperty.cpp index 23299662ed1e30997cd97be300a0622cd0dfcb32..6c90bfc8c30a579cbea25e106a5435538adfce06 100644 --- a/Code/Mantid/Framework/PythonInterface/mantid/api/src/Exports/IMDWorkspaceProperty.cpp +++ b/Code/Mantid/Framework/PythonInterface/mantid/api/src/Exports/IMDWorkspaceProperty.cpp @@ -1,7 +1,9 @@ #include "MantidPythonInterface/api/WorkspacePropertyExporter.h" #include "MantidAPI/IMDWorkspace.h" +// clang-format off void export_IMDWorkspaceProperty() +// clang-format on { using Mantid::API::IMDWorkspace; using Mantid::PythonInterface::WorkspacePropertyExporter; diff --git a/Code/Mantid/Framework/PythonInterface/mantid/api/src/Exports/IPeak.cpp b/Code/Mantid/Framework/PythonInterface/mantid/api/src/Exports/IPeak.cpp index e12912bc5a0a8b6419a16ea5e56ebfc4451ea248..223e88b9fced890464c52ac5f808630149d43e3f 100644 --- a/Code/Mantid/Framework/PythonInterface/mantid/api/src/Exports/IPeak.cpp +++ b/Code/Mantid/Framework/PythonInterface/mantid/api/src/Exports/IPeak.cpp @@ -31,7 +31,9 @@ void setQSampleFrame2(IPeak &peak, Mantid::Kernel::V3D qSampleFrame, double dist } +// clang-format off void export_IPeak() +// clang-format on { register_ptr_to_python<IPeak*>(); diff --git a/Code/Mantid/Framework/PythonInterface/mantid/api/src/Exports/IPeakFunction.cpp b/Code/Mantid/Framework/PythonInterface/mantid/api/src/Exports/IPeakFunction.cpp index c8589a927a7212d5937fe5b28674052c35e95a2c..ae238374b382d1d2ab854d265998d3c25a9c9991 100644 --- a/Code/Mantid/Framework/PythonInterface/mantid/api/src/Exports/IPeakFunction.cpp +++ b/Code/Mantid/Framework/PythonInterface/mantid/api/src/Exports/IPeakFunction.cpp @@ -7,7 +7,9 @@ using Mantid::API::IPeakFunction; using Mantid::PythonInterface::IPeakFunctionAdapter; using namespace boost::python; +// clang-format off void export_IPeakFunction() +// clang-format on { class_<IPeakFunction, bases<IFunction1D>, boost::shared_ptr<IPeakFunctionAdapter>, boost::noncopyable>("IPeakFunction") diff --git a/Code/Mantid/Framework/PythonInterface/mantid/api/src/Exports/IPeaksWorkspace.cpp b/Code/Mantid/Framework/PythonInterface/mantid/api/src/Exports/IPeaksWorkspace.cpp index 965bf50050c39cbd0ca1ad11fdad3282a429a1fc..9ea3e721fbc80ff44e299dfd57cc6baf5a8afed8 100644 --- a/Code/Mantid/Framework/PythonInterface/mantid/api/src/Exports/IPeaksWorkspace.cpp +++ b/Code/Mantid/Framework/PythonInterface/mantid/api/src/Exports/IPeaksWorkspace.cpp @@ -33,7 +33,9 @@ IPeak* createPeakQLabWithDistance(IPeaksWorkspace & self, const object& data, do } +// clang-format off void export_IPeaksWorkspace() +// clang-format on { // IPeaksWorkspace class class_< IPeaksWorkspace, bases<ITableWorkspace, ExperimentInfo>, boost::noncopyable >("IPeaksWorkspace", no_init) diff --git a/Code/Mantid/Framework/PythonInterface/mantid/api/src/Exports/IPeaksWorkspaceProperty.cpp b/Code/Mantid/Framework/PythonInterface/mantid/api/src/Exports/IPeaksWorkspaceProperty.cpp index f98cc9dec625582b0b3f9fbd8271b26c113cd8ae..c34674f7982ecc934d4430af194ba1d001cfb395 100644 --- a/Code/Mantid/Framework/PythonInterface/mantid/api/src/Exports/IPeaksWorkspaceProperty.cpp +++ b/Code/Mantid/Framework/PythonInterface/mantid/api/src/Exports/IPeaksWorkspaceProperty.cpp @@ -1,7 +1,9 @@ #include "MantidPythonInterface/api/WorkspacePropertyExporter.h" #include "MantidAPI/IPeaksWorkspace.h" +// clang-format off void export_IPeaksWorkspaceProperty() +// clang-format on { using Mantid::API::IPeaksWorkspace; using Mantid::PythonInterface::WorkspacePropertyExporter; diff --git a/Code/Mantid/Framework/PythonInterface/mantid/api/src/Exports/ISpectrum.cpp b/Code/Mantid/Framework/PythonInterface/mantid/api/src/Exports/ISpectrum.cpp index 364740c59131415b6c868974d2a888c850e82e26..615caeda892480beaef32c365f2e8aed8ccb0f18 100644 --- a/Code/Mantid/Framework/PythonInterface/mantid/api/src/Exports/ISpectrum.cpp +++ b/Code/Mantid/Framework/PythonInterface/mantid/api/src/Exports/ISpectrum.cpp @@ -7,7 +7,9 @@ using Mantid::API::ISpectrum; using Mantid::detid_t; using namespace boost::python; +// clang-format off void export_ISpectrum() +// clang-format on { register_ptr_to_python<ISpectrum*>(); diff --git a/Code/Mantid/Framework/PythonInterface/mantid/api/src/Exports/ISplittersWorkspace.cpp b/Code/Mantid/Framework/PythonInterface/mantid/api/src/Exports/ISplittersWorkspace.cpp index 0216ac789bd688dfec75cb501c2a63779276964b..6511a0fa0896e031919cfee94db29f92362ff24c 100644 --- a/Code/Mantid/Framework/PythonInterface/mantid/api/src/Exports/ISplittersWorkspace.cpp +++ b/Code/Mantid/Framework/PythonInterface/mantid/api/src/Exports/ISplittersWorkspace.cpp @@ -7,7 +7,9 @@ using namespace Mantid::API; using namespace boost::python; +// clang-format off void export_IPeaksWorkspace() +// clang-format on { register_ptr_to_python<boost::shared_ptr<ISplittersWorkspace>>(); diff --git a/Code/Mantid/Framework/PythonInterface/mantid/api/src/Exports/ITableWorkspace.cpp b/Code/Mantid/Framework/PythonInterface/mantid/api/src/Exports/ITableWorkspace.cpp index e892a1c8e4b5065e222418c58ab50eb88000abde..a614c7c8ae00098147013994f1a3098826d37136 100644 --- a/Code/Mantid/Framework/PythonInterface/mantid/api/src/Exports/ITableWorkspace.cpp +++ b/Code/Mantid/Framework/PythonInterface/mantid/api/src/Exports/ITableWorkspace.cpp @@ -338,7 +338,9 @@ namespace } } +// clang-format off void export_ITableWorkspace() +// clang-format on { using Mantid::PythonInterface::Policies::VectorToNumpy; diff --git a/Code/Mantid/Framework/PythonInterface/mantid/api/src/Exports/ITableWorkspaceProperty.cpp b/Code/Mantid/Framework/PythonInterface/mantid/api/src/Exports/ITableWorkspaceProperty.cpp index 28d6bc0abcf1b42e68bff6358a28424f8799c219..2eeaa76e02051f5dad234209326a0beccda408c4 100644 --- a/Code/Mantid/Framework/PythonInterface/mantid/api/src/Exports/ITableWorkspaceProperty.cpp +++ b/Code/Mantid/Framework/PythonInterface/mantid/api/src/Exports/ITableWorkspaceProperty.cpp @@ -1,7 +1,9 @@ #include "MantidPythonInterface/api/WorkspacePropertyExporter.h" #include "MantidAPI/ITableWorkspace.h" +// clang-format off void export_ITableWorkspaceProperty() +// clang-format on { using Mantid::API::ITableWorkspace; using Mantid::PythonInterface::WorkspacePropertyExporter; diff --git a/Code/Mantid/Framework/PythonInterface/mantid/api/src/Exports/IWorkspaceProperty.cpp b/Code/Mantid/Framework/PythonInterface/mantid/api/src/Exports/IWorkspaceProperty.cpp index 598d3d4ad74905b7a9a20de73edea734ac6ed542..ebff24c9de7b85b8af1f5fd448f2211aad5e09c5 100644 --- a/Code/Mantid/Framework/PythonInterface/mantid/api/src/Exports/IWorkspaceProperty.cpp +++ b/Code/Mantid/Framework/PythonInterface/mantid/api/src/Exports/IWorkspaceProperty.cpp @@ -1,7 +1,9 @@ #include "MantidAPI/IWorkspaceProperty.h" #include <boost/python/class.hpp> +// clang-format off void export_IWorkspaceProperty() +// clang-format on { using namespace boost::python; using Mantid::API::IWorkspaceProperty; diff --git a/Code/Mantid/Framework/PythonInterface/mantid/api/src/Exports/InstrumentValidator.cpp b/Code/Mantid/Framework/PythonInterface/mantid/api/src/Exports/InstrumentValidator.cpp index 45390cfe462a68cef75c73a56d81d48ad7f55500..fc49fcd67d1144f2d72b591a925e8d87c04c2483 100644 --- a/Code/Mantid/Framework/PythonInterface/mantid/api/src/Exports/InstrumentValidator.cpp +++ b/Code/Mantid/Framework/PythonInterface/mantid/api/src/Exports/InstrumentValidator.cpp @@ -8,7 +8,9 @@ using namespace boost::python; // This is typed on the ExperimentInfo class +// clang-format off void export_InstrumentValidator() +// clang-format on { TypedValidatorExporter<ExperimentInfo_sptr>::define("ExperimentInfoValidator"); diff --git a/Code/Mantid/Framework/PythonInterface/mantid/api/src/Exports/Jacobian.cpp b/Code/Mantid/Framework/PythonInterface/mantid/api/src/Exports/Jacobian.cpp index 690476a19300ee1e4be4b951e949e918288ec306..ccd3830fe274a90d0ee47ff3673367eea4e663b0 100644 --- a/Code/Mantid/Framework/PythonInterface/mantid/api/src/Exports/Jacobian.cpp +++ b/Code/Mantid/Framework/PythonInterface/mantid/api/src/Exports/Jacobian.cpp @@ -5,7 +5,9 @@ using Mantid::API::Jacobian; using namespace boost::python; +// clang-format off void export_Jacobian() +// clang-format on { register_ptr_to_python<Jacobian*>(); diff --git a/Code/Mantid/Framework/PythonInterface/mantid/api/src/Exports/MDGeometry.cpp b/Code/Mantid/Framework/PythonInterface/mantid/api/src/Exports/MDGeometry.cpp index da17825399bcdffc854733f86571a3ab1560ed62..815cf0cb23922f757dfd6c8e6bcafc00c33d5342 100644 --- a/Code/Mantid/Framework/PythonInterface/mantid/api/src/Exports/MDGeometry.cpp +++ b/Code/Mantid/Framework/PythonInterface/mantid/api/src/Exports/MDGeometry.cpp @@ -36,7 +36,9 @@ namespace } +// clang-format off void export_MDGeometry() +// clang-format on { class_<MDGeometry,boost::noncopyable>("MDGeometry", no_init) .def("getNumDims", &MDGeometry::getNumDims, "Returns the number of dimensions present") diff --git a/Code/Mantid/Framework/PythonInterface/mantid/api/src/Exports/MatrixWorkspace.cpp b/Code/Mantid/Framework/PythonInterface/mantid/api/src/Exports/MatrixWorkspace.cpp index c2ed44869bd1d08342011c2c7909e300ad451675..326886edf0d704e1889a86e3876197fa3977b7bb 100644 --- a/Code/Mantid/Framework/PythonInterface/mantid/api/src/Exports/MatrixWorkspace.cpp +++ b/Code/Mantid/Framework/PythonInterface/mantid/api/src/Exports/MatrixWorkspace.cpp @@ -127,7 +127,9 @@ namespace } /** Python exports of the Mantid::API::MatrixWorkspace class. */ +// clang-format off void export_MatrixWorkspace() +// clang-format on { /// Typedef to remove const qualifier on input detector shared_ptr. See Policies/RemoveConst.h for more details typedef double (MatrixWorkspace::*getDetectorSignature)(Mantid::Geometry::IDetector_sptr det) const; diff --git a/Code/Mantid/Framework/PythonInterface/mantid/api/src/Exports/MatrixWorkspaceProperty.cpp b/Code/Mantid/Framework/PythonInterface/mantid/api/src/Exports/MatrixWorkspaceProperty.cpp index 481f3c9a311f3a14130c9d8bfd6cd84153957e3c..1f7f763399716b2557ac7a61b2d26de238c34af5 100644 --- a/Code/Mantid/Framework/PythonInterface/mantid/api/src/Exports/MatrixWorkspaceProperty.cpp +++ b/Code/Mantid/Framework/PythonInterface/mantid/api/src/Exports/MatrixWorkspaceProperty.cpp @@ -1,7 +1,9 @@ #include "MantidPythonInterface/api/WorkspacePropertyExporter.h" #include "MantidAPI/MatrixWorkspace.h" +// clang-format off void export_MatrixWorkspaceProperty() +// clang-format on { using Mantid::API::MatrixWorkspace; using Mantid::PythonInterface::WorkspacePropertyExporter; diff --git a/Code/Mantid/Framework/PythonInterface/mantid/api/src/Exports/MultipleExperimentInfos.cpp b/Code/Mantid/Framework/PythonInterface/mantid/api/src/Exports/MultipleExperimentInfos.cpp index e84dca456990bcfc613c67d458614a9561416fa0..b0570359ba93669dc8b2662b2e6a9c3ca1d5872a 100644 --- a/Code/Mantid/Framework/PythonInterface/mantid/api/src/Exports/MultipleExperimentInfos.cpp +++ b/Code/Mantid/Framework/PythonInterface/mantid/api/src/Exports/MultipleExperimentInfos.cpp @@ -6,7 +6,9 @@ using Mantid::API::MultipleExperimentInfos; using Mantid::API::ExperimentInfo_sptr; using namespace boost::python; +// clang-format off void export_MultipleExperimentInfos() +// clang-format on { class_<MultipleExperimentInfos,boost::noncopyable>("MultipleExperimentInfos", no_init) .def("getExperimentInfo", (ExperimentInfo_sptr(MultipleExperimentInfos::*)(const uint16_t) ) &MultipleExperimentInfos::getExperimentInfo, diff --git a/Code/Mantid/Framework/PythonInterface/mantid/api/src/Exports/MultipleFileProperty.cpp b/Code/Mantid/Framework/PythonInterface/mantid/api/src/Exports/MultipleFileProperty.cpp index e121994dbc5bec86ba54e600e632b8b2ffb47e11..7c7e4196d73366cb1db7937699fb9b6dabbe673f 100644 --- a/Code/Mantid/Framework/PythonInterface/mantid/api/src/Exports/MultipleFileProperty.cpp +++ b/Code/Mantid/Framework/PythonInterface/mantid/api/src/Exports/MultipleFileProperty.cpp @@ -55,7 +55,9 @@ namespace } } +// clang-format off void export_MultipleFileProperty() +// clang-format on { typedef PropertyWithValue<HeldType> BaseClass; PropertyWithValueExporter<HeldType>::define("VectorVectorStringPropertyWithValue"); diff --git a/Code/Mantid/Framework/PythonInterface/mantid/api/src/Exports/Progress.cpp b/Code/Mantid/Framework/PythonInterface/mantid/api/src/Exports/Progress.cpp index 05da2bcef079c78b613cebcc9fcd8662e44d5cb5..5260c3d0099dc46de97a013d7c23654b9b5f0a31 100644 --- a/Code/Mantid/Framework/PythonInterface/mantid/api/src/Exports/Progress.cpp +++ b/Code/Mantid/Framework/PythonInterface/mantid/api/src/Exports/Progress.cpp @@ -9,7 +9,9 @@ using Mantid::API::Algorithm; using Mantid::Kernel::ProgressBase; using namespace boost::python; +// clang-format off void export_Progress() +// clang-format on { class_<Progress, bases<ProgressBase>, diff --git a/Code/Mantid/Framework/PythonInterface/mantid/api/src/Exports/Projection.cpp b/Code/Mantid/Framework/PythonInterface/mantid/api/src/Exports/Projection.cpp index b1045d4837f43fea3eabe08e620c7ac2f99be43b..3aef685af33a7457f8d9666e314c53b857477571 100644 --- a/Code/Mantid/Framework/PythonInterface/mantid/api/src/Exports/Projection.cpp +++ b/Code/Mantid/Framework/PythonInterface/mantid/api/src/Exports/Projection.cpp @@ -100,7 +100,9 @@ Projection_sptr projCtor3( } //anonymous namespace +// clang-format off void export_Projection() +// clang-format on { class_<Projection>( "Projection", diff --git a/Code/Mantid/Framework/PythonInterface/mantid/api/src/Exports/PropertyHistory.cpp b/Code/Mantid/Framework/PythonInterface/mantid/api/src/Exports/PropertyHistory.cpp index 3d1be876fd7c98198a2e9222266467e47c09c205..e1af05fc98df0a3fcadc805158851818dc738ded 100644 --- a/Code/Mantid/Framework/PythonInterface/mantid/api/src/Exports/PropertyHistory.cpp +++ b/Code/Mantid/Framework/PythonInterface/mantid/api/src/Exports/PropertyHistory.cpp @@ -10,7 +10,9 @@ using Mantid::Kernel::PropertyHistory; using Mantid::API::IAlgorithm; using namespace boost::python; +// clang-format off void export_PropertyHistory() +// clang-format on { register_ptr_to_python<PropertyHistory*>(); diff --git a/Code/Mantid/Framework/PythonInterface/mantid/api/src/Exports/PropertyManagerDataService.cpp b/Code/Mantid/Framework/PythonInterface/mantid/api/src/Exports/PropertyManagerDataService.cpp index 19b8cbb58a841b9b78b434a64e776aac53bcf060..157a454a24c6620a2a758ecb2342e87908d6daaa 100644 --- a/Code/Mantid/Framework/PythonInterface/mantid/api/src/Exports/PropertyManagerDataService.cpp +++ b/Code/Mantid/Framework/PythonInterface/mantid/api/src/Exports/PropertyManagerDataService.cpp @@ -15,7 +15,9 @@ using namespace boost::python; /// Weak pointer to DataItem typedef typedef boost::weak_ptr<PropertyManager> PropertyManager_wptr; +// clang-format off void export_PropertyManagerDataService() +// clang-format on { register_ptr_to_python<PropertyManager_wptr>(); diff --git a/Code/Mantid/Framework/PythonInterface/mantid/api/src/Exports/Run.cpp b/Code/Mantid/Framework/PythonInterface/mantid/api/src/Exports/Run.cpp index e83d7784d1637ca26703772a885baf173c8d07ba..dc253da4b81322b35a7d21a1a979eaa96a165cb0 100644 --- a/Code/Mantid/Framework/PythonInterface/mantid/api/src/Exports/Run.cpp +++ b/Code/Mantid/Framework/PythonInterface/mantid/api/src/Exports/Run.cpp @@ -111,7 +111,9 @@ namespace } +// clang-format off void export_Run() +// clang-format on { //Pointer register_ptr_to_python<Run*>(); diff --git a/Code/Mantid/Framework/PythonInterface/mantid/api/src/Exports/Sample.cpp b/Code/Mantid/Framework/PythonInterface/mantid/api/src/Exports/Sample.cpp index 232dda2f067990704186c3c4c444a0e721cfeb9c..1da621ce987bdc73a6c07d6f1e9ee6f69bb09766 100644 --- a/Code/Mantid/Framework/PythonInterface/mantid/api/src/Exports/Sample.cpp +++ b/Code/Mantid/Framework/PythonInterface/mantid/api/src/Exports/Sample.cpp @@ -10,7 +10,9 @@ using Mantid::Geometry::OrientedLattice; using Mantid::Kernel::Material; using namespace boost::python; +// clang-format off void export_Sample() +// clang-format on { register_ptr_to_python<Sample*>(); register_ptr_to_python<boost::shared_ptr<Sample> >(); diff --git a/Code/Mantid/Framework/PythonInterface/mantid/api/src/Exports/ScriptRepository.cpp b/Code/Mantid/Framework/PythonInterface/mantid/api/src/Exports/ScriptRepository.cpp index 206afe3f75c315f537f02790eff372a6a227057f..b655a853a5592bc2de99d03bef24aaa82be7c755 100644 --- a/Code/Mantid/Framework/PythonInterface/mantid/api/src/Exports/ScriptRepository.cpp +++ b/Code/Mantid/Framework/PythonInterface/mantid/api/src/Exports/ScriptRepository.cpp @@ -77,7 +77,9 @@ namespace /** @endcond */ } +// clang-format off void export_ScriptRepository() +// clang-format on { register_ptr_to_python<boost::shared_ptr<ScriptRepository>>(); diff --git a/Code/Mantid/Framework/PythonInterface/mantid/api/src/Exports/ScriptRepositoryFactory.cpp b/Code/Mantid/Framework/PythonInterface/mantid/api/src/Exports/ScriptRepositoryFactory.cpp index 6b7d223e588ebbff50198031704f2af69107d179..ec3af278f39b1027094b04c809f7690beb47e2d2 100644 --- a/Code/Mantid/Framework/PythonInterface/mantid/api/src/Exports/ScriptRepositoryFactory.cpp +++ b/Code/Mantid/Framework/PythonInterface/mantid/api/src/Exports/ScriptRepositoryFactory.cpp @@ -16,7 +16,9 @@ namespace ///@endcond } +// clang-format off void export_ScriptRepositoryFactory() +// clang-format on { class_<ScriptRepositoryFactoryImpl,boost::noncopyable>("ScriptRepositoryFactory", no_init) .def("create", &ScriptRepositoryFactoryImpl::create, diff --git a/Code/Mantid/Framework/PythonInterface/mantid/api/src/Exports/Workspace.cpp b/Code/Mantid/Framework/PythonInterface/mantid/api/src/Exports/Workspace.cpp index 11dd4f9b8bff6891cb963f523178ba945c98c2b5..20da316f1509f7fbf87c5bddb5f804dce74d152a 100644 --- a/Code/Mantid/Framework/PythonInterface/mantid/api/src/Exports/Workspace.cpp +++ b/Code/Mantid/Framework/PythonInterface/mantid/api/src/Exports/Workspace.cpp @@ -17,7 +17,9 @@ namespace ///@endcond } +// clang-format off void export_Workspace() +// clang-format on { class_<Workspace, bases<DataItem>, boost::noncopyable>("Workspace", no_init) .def("getName", &Workspace::getName, return_value_policy<copy_const_reference>(), diff --git a/Code/Mantid/Framework/PythonInterface/mantid/api/src/Exports/WorkspaceFactory.cpp b/Code/Mantid/Framework/PythonInterface/mantid/api/src/Exports/WorkspaceFactory.cpp index e7cc6802b0fa5033923d65d5a65afe00c161053b..775bcaa2dcf6df2b8fa9b2cecff70e83343f8eee 100644 --- a/Code/Mantid/Framework/PythonInterface/mantid/api/src/Exports/WorkspaceFactory.cpp +++ b/Code/Mantid/Framework/PythonInterface/mantid/api/src/Exports/WorkspaceFactory.cpp @@ -39,7 +39,9 @@ namespace BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(createPeaks_Overload, createPeaks, 0, 1) } +// clang-format off void export_WorkspaceFactory() +// clang-format on { const char * createFromParentDoc = "Create a workspace based on the given one. The meta-data, instrument etc are copied from the input" "If the size parameters are passed then the workspace will be a different size."; diff --git a/Code/Mantid/Framework/PythonInterface/mantid/api/src/Exports/WorkspaceGroup.cpp b/Code/Mantid/Framework/PythonInterface/mantid/api/src/Exports/WorkspaceGroup.cpp index 494562d45640225ba8d4c1da5f4180d0fc88b672..67de0e52e7fc165ba27630dac6563117f31a8a97 100644 --- a/Code/Mantid/Framework/PythonInterface/mantid/api/src/Exports/WorkspaceGroup.cpp +++ b/Code/Mantid/Framework/PythonInterface/mantid/api/src/Exports/WorkspaceGroup.cpp @@ -10,7 +10,9 @@ using Mantid::PythonInterface::Registry::DataItemInterface; using namespace boost::python; namespace Policies = Mantid::PythonInterface::Policies; +// clang-format off void export_WorkspaceGroup() +// clang-format on { class_< WorkspaceGroup, bases<Workspace>, boost::noncopyable >("WorkspaceGroup", no_init) .def("getNumberOfEntries", &WorkspaceGroup::getNumberOfEntries, "Returns the number of entries in the group") diff --git a/Code/Mantid/Framework/PythonInterface/mantid/api/src/Exports/WorkspaceGroupProperty.cpp b/Code/Mantid/Framework/PythonInterface/mantid/api/src/Exports/WorkspaceGroupProperty.cpp index 5fc61cf55e6d5ef9ff56d02eb691171da75751f4..ef7cfb1a90509a53ebd28288658da9b33d72a490 100644 --- a/Code/Mantid/Framework/PythonInterface/mantid/api/src/Exports/WorkspaceGroupProperty.cpp +++ b/Code/Mantid/Framework/PythonInterface/mantid/api/src/Exports/WorkspaceGroupProperty.cpp @@ -1,7 +1,9 @@ #include "MantidPythonInterface/api/WorkspacePropertyExporter.h" #include "MantidAPI/WorkspaceGroup.h" +// clang-format off void export_WorkspaceGroupProperty() +// clang-format on { using Mantid::API::WorkspaceGroup; using Mantid::PythonInterface::WorkspacePropertyExporter; diff --git a/Code/Mantid/Framework/PythonInterface/mantid/api/src/Exports/WorkspaceHistory.cpp b/Code/Mantid/Framework/PythonInterface/mantid/api/src/Exports/WorkspaceHistory.cpp index 7875df880363daf65a7fc1f643301725d768e381..175af51dc422327dc9d51d4fda21e06e4c570518 100644 --- a/Code/Mantid/Framework/PythonInterface/mantid/api/src/Exports/WorkspaceHistory.cpp +++ b/Code/Mantid/Framework/PythonInterface/mantid/api/src/Exports/WorkspaceHistory.cpp @@ -35,7 +35,9 @@ boost::python::object getHistoriesAsList(WorkspaceHistory& self) return names; } +// clang-format off void export_WorkspaceHistory() +// clang-format on { register_ptr_to_python<WorkspaceHistory*>(); diff --git a/Code/Mantid/Framework/PythonInterface/mantid/api/src/Exports/WorkspaceProperty.cpp b/Code/Mantid/Framework/PythonInterface/mantid/api/src/Exports/WorkspaceProperty.cpp index d147a1402cbd64d414579545d12b12a21a3aa92d..a6ba97642d7bb2a9c77a1b79f0c43231ba5977d7 100644 --- a/Code/Mantid/Framework/PythonInterface/mantid/api/src/Exports/WorkspaceProperty.cpp +++ b/Code/Mantid/Framework/PythonInterface/mantid/api/src/Exports/WorkspaceProperty.cpp @@ -2,7 +2,9 @@ #include "MantidAPI/Workspace.h" #include <boost/python/enum.hpp> +// clang-format off void export_WorkspaceProperty() +// clang-format on { using Mantid::API::PropertyMode; // Property and Lock mode enums diff --git a/Code/Mantid/Framework/PythonInterface/mantid/api/src/Exports/WorkspaceValidators.cpp b/Code/Mantid/Framework/PythonInterface/mantid/api/src/Exports/WorkspaceValidators.cpp index 593da16e88aa676c4cc5b741e21662d37c5aafa6..9ff38ace9cc06638c63bfda837174e032aadcd36 100644 --- a/Code/Mantid/Framework/PythonInterface/mantid/api/src/Exports/WorkspaceValidators.cpp +++ b/Code/Mantid/Framework/PythonInterface/mantid/api/src/Exports/WorkspaceValidators.cpp @@ -7,7 +7,9 @@ using Mantid::PythonInterface::TypedValidatorExporter; using namespace boost::python; /// This is the base TypedValidator for most of the WorkspaceValidators +// clang-format off void export_MatrixWorkspaceValidator() +// clang-format on { using Mantid::API::MatrixWorkspace_sptr; using Mantid::API::MatrixWorkspaceValidator; @@ -44,7 +46,9 @@ void export_MatrixWorkspaceValidator() init<ArgType>(arg(ArgName)=DefaultValue, DocString))\ ; +// clang-format off void export_WorkspaceValidators() +// clang-format on { using namespace Mantid::API; diff --git a/Code/Mantid/Framework/PythonInterface/mantid/geometry/src/Exports/BoundingBox.cpp b/Code/Mantid/Framework/PythonInterface/mantid/geometry/src/Exports/BoundingBox.cpp index 015dc563df249d7974ae9224243e2f1a84323a06..207c55d8ba35fa14e9c23d502070fd2a1b8757f5 100644 --- a/Code/Mantid/Framework/PythonInterface/mantid/geometry/src/Exports/BoundingBox.cpp +++ b/Code/Mantid/Framework/PythonInterface/mantid/geometry/src/Exports/BoundingBox.cpp @@ -6,7 +6,9 @@ using Mantid::Geometry::BoundingBox; using Mantid::Kernel::V3D; using namespace boost::python; +// clang-format off void export_BoundingBox() +// clang-format on { class_<BoundingBox>("BoundingBox", "Constructs a zero-sized box") .def(init<double, double, double, double, double, double>( diff --git a/Code/Mantid/Framework/PythonInterface/mantid/geometry/src/Exports/CompAssembly.cpp b/Code/Mantid/Framework/PythonInterface/mantid/geometry/src/Exports/CompAssembly.cpp index 9ae85503981ddd09730d8b2066f8af4b8b1e0016..1362f10ebc751cfc656c00b9fb7e7a970e4a0143 100644 --- a/Code/Mantid/Framework/PythonInterface/mantid/geometry/src/Exports/CompAssembly.cpp +++ b/Code/Mantid/Framework/PythonInterface/mantid/geometry/src/Exports/CompAssembly.cpp @@ -10,7 +10,9 @@ using namespace boost::python; * Enables boost.python to automatically "cast" an object up to the * appropriate CompAssembly leaf type */ +// clang-format off void export_CompAssembly() +// clang-format on { class_<CompAssembly, bases<ICompAssembly, Component>, boost::noncopyable>("CompAssembly", no_init) ; diff --git a/Code/Mantid/Framework/PythonInterface/mantid/geometry/src/Exports/Component.cpp b/Code/Mantid/Framework/PythonInterface/mantid/geometry/src/Exports/Component.cpp index 02856d5765b992fc759ed31b96ea8768567ed06d..a83a0c9cb79257bce0a9f18b749c998e1ab53a5e 100644 --- a/Code/Mantid/Framework/PythonInterface/mantid/geometry/src/Exports/Component.cpp +++ b/Code/Mantid/Framework/PythonInterface/mantid/geometry/src/Exports/Component.cpp @@ -22,7 +22,9 @@ namespace } +// clang-format off void export_Component() +// clang-format on { class_<Component, bases<IComponent>, boost::noncopyable>("Component", no_init) .def("getParameterNames", &Component::getParameterNames, Component_getParameterNames()) diff --git a/Code/Mantid/Framework/PythonInterface/mantid/geometry/src/Exports/Detector.cpp b/Code/Mantid/Framework/PythonInterface/mantid/geometry/src/Exports/Detector.cpp index 33711dd7582bfb383e1a9fa90d0356226a9e5192..091bb7c5a0c1120ae66fb633489b8354062b5995 100644 --- a/Code/Mantid/Framework/PythonInterface/mantid/geometry/src/Exports/Detector.cpp +++ b/Code/Mantid/Framework/PythonInterface/mantid/geometry/src/Exports/Detector.cpp @@ -10,7 +10,9 @@ using namespace boost::python; * Enables boost.python to automatically "cast" an object up to the * appropriate Detector leaf type */ +// clang-format off void export_Detector() +// clang-format on { class_<Detector, bases<IDetector, ObjComponent>, boost::noncopyable>("Detector", no_init) ; diff --git a/Code/Mantid/Framework/PythonInterface/mantid/geometry/src/Exports/DetectorGroup.cpp b/Code/Mantid/Framework/PythonInterface/mantid/geometry/src/Exports/DetectorGroup.cpp index f83aaef0afac5286c8ff083aeeb0ef77e1416941..c32cc8784000c2b170a2a163be2acc006acfd47c 100644 --- a/Code/Mantid/Framework/PythonInterface/mantid/geometry/src/Exports/DetectorGroup.cpp +++ b/Code/Mantid/Framework/PythonInterface/mantid/geometry/src/Exports/DetectorGroup.cpp @@ -5,7 +5,9 @@ using Mantid::Geometry::DetectorGroup; using Mantid::Geometry::IDetector; using namespace boost::python; +// clang-format off void export_DetectorGroup() +// clang-format on { class_<DetectorGroup, bases<IDetector>, boost::noncopyable>("DetectorGroup", no_init) .def("getDetectorIDs", &DetectorGroup::getDetectorIDs, "Returns the list of detector IDs within this group") diff --git a/Code/Mantid/Framework/PythonInterface/mantid/geometry/src/Exports/Goniometer.cpp b/Code/Mantid/Framework/PythonInterface/mantid/geometry/src/Exports/Goniometer.cpp index 74b37cfebead2690565ab953180431d4bc3ec39c..b3e268583f4980986d21ed355b499a1fae71c2b3 100644 --- a/Code/Mantid/Framework/PythonInterface/mantid/geometry/src/Exports/Goniometer.cpp +++ b/Code/Mantid/Framework/PythonInterface/mantid/geometry/src/Exports/Goniometer.cpp @@ -24,7 +24,9 @@ namespace //<unnamed> } } +// clang-format off void export_Goniometer() +// clang-format on { // return_value_policy for read-only numpy array diff --git a/Code/Mantid/Framework/PythonInterface/mantid/geometry/src/Exports/Group.cpp b/Code/Mantid/Framework/PythonInterface/mantid/geometry/src/Exports/Group.cpp index 1c12be9b7f0860221c5099dc084c30f5df556215..0eab2da92d51ab3cfb7c9cec589a649649e079cd 100644 --- a/Code/Mantid/Framework/PythonInterface/mantid/geometry/src/Exports/Group.cpp +++ b/Code/Mantid/Framework/PythonInterface/mantid/geometry/src/Exports/Group.cpp @@ -23,7 +23,9 @@ namespace { } } +// clang-format off void export_Group() +// clang-format on { enum_<Group::CoordinateSystem>("CoordinateSystem") .value("Orthogonal", Group::Orthogonal) diff --git a/Code/Mantid/Framework/PythonInterface/mantid/geometry/src/Exports/ICompAssembly.cpp b/Code/Mantid/Framework/PythonInterface/mantid/geometry/src/Exports/ICompAssembly.cpp index 5e034c71bcff67c35eaf7188f287d5e6136c53e3..5b1a3e9e44685155532b3faaa4679f2f1914f499 100644 --- a/Code/Mantid/Framework/PythonInterface/mantid/geometry/src/Exports/ICompAssembly.cpp +++ b/Code/Mantid/Framework/PythonInterface/mantid/geometry/src/Exports/ICompAssembly.cpp @@ -6,7 +6,9 @@ using Mantid::Geometry::ICompAssembly; using Mantid::Geometry::IComponent; using namespace boost::python; +// clang-format off void export_ICompAssembly() +// clang-format on { register_ptr_to_python<boost::shared_ptr<ICompAssembly>>(); diff --git a/Code/Mantid/Framework/PythonInterface/mantid/geometry/src/Exports/IComponent.cpp b/Code/Mantid/Framework/PythonInterface/mantid/geometry/src/Exports/IComponent.cpp index 46161d9e0f0d48c8c150bec7be8f2ddffb4e0b05..c1e2e2c80d740c342a99a14dba223ec2c9bd1815 100644 --- a/Code/Mantid/Framework/PythonInterface/mantid/geometry/src/Exports/IComponent.cpp +++ b/Code/Mantid/Framework/PythonInterface/mantid/geometry/src/Exports/IComponent.cpp @@ -25,7 +25,9 @@ namespace } +// clang-format off void export_IComponent() +// clang-format on { register_ptr_to_python<boost::shared_ptr<IComponent>>(); diff --git a/Code/Mantid/Framework/PythonInterface/mantid/geometry/src/Exports/IDetector.cpp b/Code/Mantid/Framework/PythonInterface/mantid/geometry/src/Exports/IDetector.cpp index 69bb41f1898ec1cb205d1dcc4d0add8af8f18704..ce251b6f7c48e005362c01d184354b9078cc3eee 100644 --- a/Code/Mantid/Framework/PythonInterface/mantid/geometry/src/Exports/IDetector.cpp +++ b/Code/Mantid/Framework/PythonInterface/mantid/geometry/src/Exports/IDetector.cpp @@ -6,7 +6,9 @@ using Mantid::Geometry::IDetector; using Mantid::Geometry::IObjComponent; using namespace boost::python; +// clang-format off void export_IDetector() +// clang-format on { register_ptr_to_python<boost::shared_ptr<IDetector>>(); diff --git a/Code/Mantid/Framework/PythonInterface/mantid/geometry/src/Exports/IMDDimension.cpp b/Code/Mantid/Framework/PythonInterface/mantid/geometry/src/Exports/IMDDimension.cpp index 53d53027bb19cf863e6ab272ad312ce1ea06ab9c..122dbe8a72883871ac73f563b5b5dcacfecb4a18 100644 --- a/Code/Mantid/Framework/PythonInterface/mantid/geometry/src/Exports/IMDDimension.cpp +++ b/Code/Mantid/Framework/PythonInterface/mantid/geometry/src/Exports/IMDDimension.cpp @@ -20,7 +20,9 @@ namespace } } +// clang-format off void export_IMDDimension() +// clang-format on { register_ptr_to_python<boost::shared_ptr<IMDDimension>>(); diff --git a/Code/Mantid/Framework/PythonInterface/mantid/geometry/src/Exports/IObjComponent.cpp b/Code/Mantid/Framework/PythonInterface/mantid/geometry/src/Exports/IObjComponent.cpp index c893ff5ba0b27f86a901ce2c3bdf3370beb75381..1586524e18e949d09eb294f3e8852f5ffcf0cfb1 100644 --- a/Code/Mantid/Framework/PythonInterface/mantid/geometry/src/Exports/IObjComponent.cpp +++ b/Code/Mantid/Framework/PythonInterface/mantid/geometry/src/Exports/IObjComponent.cpp @@ -20,7 +20,9 @@ namespace } } +// clang-format off void export_IObjComponent() +// clang-format on { register_ptr_to_python<boost::shared_ptr<IObjComponent>>(); diff --git a/Code/Mantid/Framework/PythonInterface/mantid/geometry/src/Exports/Instrument.cpp b/Code/Mantid/Framework/PythonInterface/mantid/geometry/src/Exports/Instrument.cpp index b1d3ba2f116d275d92fc168de9aebc1737220faa..52c46fc5873966405dbf58b0edd72e326af0a1a6 100644 --- a/Code/Mantid/Framework/PythonInterface/mantid/geometry/src/Exports/Instrument.cpp +++ b/Code/Mantid/Framework/PythonInterface/mantid/geometry/src/Exports/Instrument.cpp @@ -10,7 +10,9 @@ using Mantid::detid_t; using namespace boost::python; using Mantid::PythonInterface::Policies::RemoveConstSharedPtr; +// clang-format off void export_Instrument() +// clang-format on { register_ptr_to_python<boost::shared_ptr<Instrument>>(); diff --git a/Code/Mantid/Framework/PythonInterface/mantid/geometry/src/Exports/ObjCompAssembly.cpp b/Code/Mantid/Framework/PythonInterface/mantid/geometry/src/Exports/ObjCompAssembly.cpp index 2c239635a51f8ee3b3a3bd4803778e44471a19bc..bd3f6fbee5fa02fafd634173bcc9787e83f47e7a 100644 --- a/Code/Mantid/Framework/PythonInterface/mantid/geometry/src/Exports/ObjCompAssembly.cpp +++ b/Code/Mantid/Framework/PythonInterface/mantid/geometry/src/Exports/ObjCompAssembly.cpp @@ -8,7 +8,9 @@ using Mantid::Geometry::ICompAssembly; using Mantid::Geometry::ObjComponent; using namespace boost::python; +// clang-format off void export_ObjCompAssembly() +// clang-format on { register_ptr_to_python<boost::shared_ptr<ObjCompAssembly>>(); diff --git a/Code/Mantid/Framework/PythonInterface/mantid/geometry/src/Exports/ObjComponent.cpp b/Code/Mantid/Framework/PythonInterface/mantid/geometry/src/Exports/ObjComponent.cpp index eaa0c2e310cf24d131f403909066e373f3a8ad13..61f7b9adad51698b8e40056795faa25ac6aa09ee 100644 --- a/Code/Mantid/Framework/PythonInterface/mantid/geometry/src/Exports/ObjComponent.cpp +++ b/Code/Mantid/Framework/PythonInterface/mantid/geometry/src/Exports/ObjComponent.cpp @@ -6,7 +6,9 @@ using Mantid::Geometry::IObjComponent; using Mantid::Geometry::Component; using namespace boost::python; +// clang-format off void export_ObjComponent() +// clang-format on { class_<ObjComponent, boost::python::bases<IObjComponent, Component>, boost::noncopyable>("ObjComponent", no_init) ; diff --git a/Code/Mantid/Framework/PythonInterface/mantid/geometry/src/Exports/Object.cpp b/Code/Mantid/Framework/PythonInterface/mantid/geometry/src/Exports/Object.cpp index af1c7ac73763247c9e7cf1c8209c1d6185e91176..bd5810cec00f2a517e017ebce6e48b0fdd8d1b6f 100644 --- a/Code/Mantid/Framework/PythonInterface/mantid/geometry/src/Exports/Object.cpp +++ b/Code/Mantid/Framework/PythonInterface/mantid/geometry/src/Exports/Object.cpp @@ -7,7 +7,9 @@ using Mantid::Geometry::Object; using Mantid::Geometry::BoundingBox; using namespace boost::python; +// clang-format off void export_Object() +// clang-format on { register_ptr_to_python<boost::shared_ptr<Object>>(); diff --git a/Code/Mantid/Framework/PythonInterface/mantid/geometry/src/Exports/OrientedLattice.cpp b/Code/Mantid/Framework/PythonInterface/mantid/geometry/src/Exports/OrientedLattice.cpp index 6204d5f4c8ec05ad0d65395f67605c0bf7f43930..c64c2e35ed453ded719b33dc3b4fdd11265ffc60 100644 --- a/Code/Mantid/Framework/PythonInterface/mantid/geometry/src/Exports/OrientedLattice.cpp +++ b/Code/Mantid/Framework/PythonInterface/mantid/geometry/src/Exports/OrientedLattice.cpp @@ -46,7 +46,9 @@ namespace //<unnamed> } +// clang-format off void export_OrientedLattice() +// clang-format on { /// return_value_policy for read-only numpy array typedef return_value_policy<Policies::MatrixToNumpy<Converters::WrapReadOnly> > return_readonly_numpy; diff --git a/Code/Mantid/Framework/PythonInterface/mantid/geometry/src/Exports/PeakShape.cpp b/Code/Mantid/Framework/PythonInterface/mantid/geometry/src/Exports/PeakShape.cpp index d73179460a2c683dc74921c6311d9b907a601755..095c373388c87daee6a25c7e5a9b4195469d8dba 100644 --- a/Code/Mantid/Framework/PythonInterface/mantid/geometry/src/Exports/PeakShape.cpp +++ b/Code/Mantid/Framework/PythonInterface/mantid/geometry/src/Exports/PeakShape.cpp @@ -6,7 +6,9 @@ using Mantid::Geometry::PeakShape; using namespace boost::python; +// clang-format off void export_PeakShape() +// clang-format on { register_ptr_to_python<Mantid::Geometry::PeakShape_sptr>(); diff --git a/Code/Mantid/Framework/PythonInterface/mantid/geometry/src/Exports/PointGroup.cpp b/Code/Mantid/Framework/PythonInterface/mantid/geometry/src/Exports/PointGroup.cpp index ded37c8fca9067066849990fb059517312f1aa46..b1410156a0846f474233ac1e01781d2170249870 100644 --- a/Code/Mantid/Framework/PythonInterface/mantid/geometry/src/Exports/PointGroup.cpp +++ b/Code/Mantid/Framework/PythonInterface/mantid/geometry/src/Exports/PointGroup.cpp @@ -40,7 +40,9 @@ namespace //<unnamed> } } +// clang-format off void export_PointGroup() +// clang-format on { register_ptr_to_python<boost::shared_ptr<PointGroup> >(); diff --git a/Code/Mantid/Framework/PythonInterface/mantid/geometry/src/Exports/PointGroupFactory.cpp b/Code/Mantid/Framework/PythonInterface/mantid/geometry/src/Exports/PointGroupFactory.cpp index 17097ab43f2e4de31f0efacd06bde5818b7a0ebf..82ba14acbe930712ccfaeed364f05fa0f84595f4 100644 --- a/Code/Mantid/Framework/PythonInterface/mantid/geometry/src/Exports/PointGroupFactory.cpp +++ b/Code/Mantid/Framework/PythonInterface/mantid/geometry/src/Exports/PointGroupFactory.cpp @@ -19,7 +19,9 @@ namespace { } } +// clang-format off void export_PointGroupFactory() +// clang-format on { class_<PointGroupFactoryImpl,boost::noncopyable>("PointGroupFactoryImpl", no_init) diff --git a/Code/Mantid/Framework/PythonInterface/mantid/geometry/src/Exports/RectangularDetector.cpp b/Code/Mantid/Framework/PythonInterface/mantid/geometry/src/Exports/RectangularDetector.cpp index 53b01d504d092106dee969ac4ce0e5c6d2f6a5a6..7131f5f2b4706129a6cb1b7cf6a0defde4b59ed1 100644 --- a/Code/Mantid/Framework/PythonInterface/mantid/geometry/src/Exports/RectangularDetector.cpp +++ b/Code/Mantid/Framework/PythonInterface/mantid/geometry/src/Exports/RectangularDetector.cpp @@ -11,7 +11,9 @@ using namespace boost::python; * Enables boost.python to automatically "cast" an object up to the * appropriate Detector leaf type */ +// clang-format off void export_RectangularDetector() +// clang-format on { register_ptr_to_python<boost::shared_ptr<RectangularDetector>>(); @@ -33,7 +35,9 @@ void export_RectangularDetector() ; } +// clang-format off void export_RectangularDetectorPixel() +// clang-format on { class_<RectangularDetectorPixel, bases<Detector>, boost::noncopyable>("RectangularDetectorPixel", no_init) ; diff --git a/Code/Mantid/Framework/PythonInterface/mantid/geometry/src/Exports/ReferenceFrame.cpp b/Code/Mantid/Framework/PythonInterface/mantid/geometry/src/Exports/ReferenceFrame.cpp index d5e1a4500d5c3b92c0de2fddee18089cd13c63b6..78ecba343f03d19c40ab6080d0bacd761ac57055 100644 --- a/Code/Mantid/Framework/PythonInterface/mantid/geometry/src/Exports/ReferenceFrame.cpp +++ b/Code/Mantid/Framework/PythonInterface/mantid/geometry/src/Exports/ReferenceFrame.cpp @@ -9,7 +9,9 @@ using Mantid::Geometry::ReferenceFrame; using Mantid::Kernel::V3D; using namespace boost::python; +// clang-format off void export_ReferenceFrame() +// clang-format on { using namespace Mantid::Geometry; diff --git a/Code/Mantid/Framework/PythonInterface/mantid/geometry/src/Exports/SpaceGroup.cpp b/Code/Mantid/Framework/PythonInterface/mantid/geometry/src/Exports/SpaceGroup.cpp index ba7a58c1575649ee82b1da7ffd4db39926f54df5..82fcc26a38d97ea7f062e541431d1aa0e58b903a 100644 --- a/Code/Mantid/Framework/PythonInterface/mantid/geometry/src/Exports/SpaceGroup.cpp +++ b/Code/Mantid/Framework/PythonInterface/mantid/geometry/src/Exports/SpaceGroup.cpp @@ -33,7 +33,9 @@ namespace //<unnamed> } +// clang-format off void export_SpaceGroup() +// clang-format on { register_ptr_to_python<boost::shared_ptr<SpaceGroup> >(); diff --git a/Code/Mantid/Framework/PythonInterface/mantid/geometry/src/Exports/SpaceGroupFactory.cpp b/Code/Mantid/Framework/PythonInterface/mantid/geometry/src/Exports/SpaceGroupFactory.cpp index 52fa370c732bb545b6e2a748b09d82211b66eec0..a7f266ace3983dc1fc17cb93f4989423986e9d4b 100644 --- a/Code/Mantid/Framework/PythonInterface/mantid/geometry/src/Exports/SpaceGroupFactory.cpp +++ b/Code/Mantid/Framework/PythonInterface/mantid/geometry/src/Exports/SpaceGroupFactory.cpp @@ -38,7 +38,9 @@ namespace } +// clang-format off void export_SpaceGroupFactory() +// clang-format on { class_<SpaceGroupFactoryImpl,boost::noncopyable>("SpaceGroupFactoryImpl", no_init) diff --git a/Code/Mantid/Framework/PythonInterface/mantid/geometry/src/Exports/SymmetryElement.cpp b/Code/Mantid/Framework/PythonInterface/mantid/geometry/src/Exports/SymmetryElement.cpp index b32232a7c01866bedabbe3ea396a3f88e9ecf81e..497380d38fbbc1682f3567e80aa850581bc75f4b 100644 --- a/Code/Mantid/Framework/PythonInterface/mantid/geometry/src/Exports/SymmetryElement.cpp +++ b/Code/Mantid/Framework/PythonInterface/mantid/geometry/src/Exports/SymmetryElement.cpp @@ -19,7 +19,9 @@ namespace { } } +// clang-format off void export_SymmetryElement() +// clang-format on { register_ptr_to_python<boost::shared_ptr<SymmetryElement> >(); scope symmetryElementScope = class_<SymmetryElement, boost::noncopyable>("SymmetryElement", no_init); diff --git a/Code/Mantid/Framework/PythonInterface/mantid/geometry/src/Exports/SymmetryElementFactory.cpp b/Code/Mantid/Framework/PythonInterface/mantid/geometry/src/Exports/SymmetryElementFactory.cpp index e9b8fbce249e81ace70b3bcab0fc9b544baeda4d..d35fb43969ff09d8d99b242d9f0937dd95329faf 100644 --- a/Code/Mantid/Framework/PythonInterface/mantid/geometry/src/Exports/SymmetryElementFactory.cpp +++ b/Code/Mantid/Framework/PythonInterface/mantid/geometry/src/Exports/SymmetryElementFactory.cpp @@ -5,7 +5,9 @@ using namespace Mantid::Geometry; using namespace boost::python; +// clang-format off void export_SymmetryElementFactory() +// clang-format on { class_<SymmetryElementFactoryImpl,boost::noncopyable>("SymmetryElementFactoryImpl", no_init) .def("createSymElement", &SymmetryElementFactoryImpl::createSymElement, "Creates the symmetry element that corresponds to the supplied symmetry operation.") diff --git a/Code/Mantid/Framework/PythonInterface/mantid/geometry/src/Exports/SymmetryOperation.cpp b/Code/Mantid/Framework/PythonInterface/mantid/geometry/src/Exports/SymmetryOperation.cpp index 59d759176210a16b552ab252dac6957fd97e6553..05a248a351113df6623a402aa315f6c240e5e10e 100644 --- a/Code/Mantid/Framework/PythonInterface/mantid/geometry/src/Exports/SymmetryOperation.cpp +++ b/Code/Mantid/Framework/PythonInterface/mantid/geometry/src/Exports/SymmetryOperation.cpp @@ -28,7 +28,9 @@ namespace //<unnamed> } } +// clang-format off void export_SymmetryOperation() +// clang-format on { register_ptr_to_python<boost::shared_ptr<SymmetryOperation> >(); diff --git a/Code/Mantid/Framework/PythonInterface/mantid/geometry/src/Exports/SymmetryOperationFactory.cpp b/Code/Mantid/Framework/PythonInterface/mantid/geometry/src/Exports/SymmetryOperationFactory.cpp index 436815a0ae22a737785ec0dad16d97b16b714684..1d3a7a9258361eacc7421ef4354f3acfc80b3b71 100644 --- a/Code/Mantid/Framework/PythonInterface/mantid/geometry/src/Exports/SymmetryOperationFactory.cpp +++ b/Code/Mantid/Framework/PythonInterface/mantid/geometry/src/Exports/SymmetryOperationFactory.cpp @@ -21,7 +21,9 @@ namespace { } +// clang-format off void export_SymmetryOperationFactory() +// clang-format on { class_<SymmetryOperationFactoryImpl,boost::noncopyable>("SymmetryOperationFactoryImpl", no_init) .def("exists", &SymmetryOperationFactoryImpl::isSubscribed, "Returns true if the symmetry operation is supplied.") diff --git a/Code/Mantid/Framework/PythonInterface/mantid/geometry/src/Exports/UnitCell.cpp b/Code/Mantid/Framework/PythonInterface/mantid/geometry/src/Exports/UnitCell.cpp index 471f301bbaea56353375c5d632768df11daf54c1..fc71b88a46f1d8188587b38bfa6e33b32878b50d 100644 --- a/Code/Mantid/Framework/PythonInterface/mantid/geometry/src/Exports/UnitCell.cpp +++ b/Code/Mantid/Framework/PythonInterface/mantid/geometry/src/Exports/UnitCell.cpp @@ -28,7 +28,9 @@ namespace //<unnamed> } } +// clang-format off void export_UnitCell() +// clang-format on { enum_<AngleUnits>("AngleUnits") .value("Degrees", angDegrees) diff --git a/Code/Mantid/Framework/PythonInterface/mantid/kernel/src/Exports/ArrayBoundedValidator.cpp b/Code/Mantid/Framework/PythonInterface/mantid/kernel/src/Exports/ArrayBoundedValidator.cpp index b255501eef42a0e4a12e6ce760166312cb5abfe3..93c36da8c2882966d8a1acda41e62f25fa431206 100644 --- a/Code/Mantid/Framework/PythonInterface/mantid/kernel/src/Exports/ArrayBoundedValidator.cpp +++ b/Code/Mantid/Framework/PythonInterface/mantid/kernel/src/Exports/ArrayBoundedValidator.cpp @@ -27,7 +27,9 @@ namespace } +// clang-format off void export_ArrayBoundedValidator() +// clang-format on { EXPORT_ARRAYBOUNDEDVALIDATOR(double, Float); EXPORT_ARRAYBOUNDEDVALIDATOR(long, Int); diff --git a/Code/Mantid/Framework/PythonInterface/mantid/kernel/src/Exports/ArrayLengthValidator.cpp b/Code/Mantid/Framework/PythonInterface/mantid/kernel/src/Exports/ArrayLengthValidator.cpp index 6504f388889714b4e368f15379b381d0914bf9c1..58fed5853cab313c7ac63412a5905929b96de789 100644 --- a/Code/Mantid/Framework/PythonInterface/mantid/kernel/src/Exports/ArrayLengthValidator.cpp +++ b/Code/Mantid/Framework/PythonInterface/mantid/kernel/src/Exports/ArrayLengthValidator.cpp @@ -34,7 +34,9 @@ namespace ; } +// clang-format off void export_ArrayLengthValidator() +// clang-format on { EXPORT_LENGTHVALIDATOR(double, Float); EXPORT_LENGTHVALIDATOR(long, Int); diff --git a/Code/Mantid/Framework/PythonInterface/mantid/kernel/src/Exports/ArrayProperty.cpp b/Code/Mantid/Framework/PythonInterface/mantid/kernel/src/Exports/ArrayProperty.cpp index b1087288d278fb23f50136df67b6d63331058fa7..80fb6fce0037c06995cae82568a616a14321ef38 100644 --- a/Code/Mantid/Framework/PythonInterface/mantid/kernel/src/Exports/ArrayProperty.cpp +++ b/Code/Mantid/Framework/PythonInterface/mantid/kernel/src/Exports/ArrayProperty.cpp @@ -88,7 +88,9 @@ namespace } +// clang-format off void export_ArrayProperty() +// clang-format on { // Match the python names to their C types EXPORT_ARRAY_PROP(double,Float); diff --git a/Code/Mantid/Framework/PythonInterface/mantid/kernel/src/Exports/BoundedValidator.cpp b/Code/Mantid/Framework/PythonInterface/mantid/kernel/src/Exports/BoundedValidator.cpp index e0129e22ab5462fbf347107107827772d41ae074..725aa11e9ec19a08d1bb4b381e466e96c0aeb3f7 100644 --- a/Code/Mantid/Framework/PythonInterface/mantid/kernel/src/Exports/BoundedValidator.cpp +++ b/Code/Mantid/Framework/PythonInterface/mantid/kernel/src/Exports/BoundedValidator.cpp @@ -83,7 +83,9 @@ namespace ; } +// clang-format off void export_BoundedValidator() +// clang-format on { EXPORT_BOUNDEDVALIDATOR(double, Float); EXPORT_BOUNDEDVALIDATOR(long, Int); diff --git a/Code/Mantid/Framework/PythonInterface/mantid/kernel/src/Exports/CompositeValidator.cpp b/Code/Mantid/Framework/PythonInterface/mantid/kernel/src/Exports/CompositeValidator.cpp index 3222a68833a6174b172604f9b84c377f65918abc..64c202f1b2d9ace9ed69d56bb5c5b462b49adfec 100644 --- a/Code/Mantid/Framework/PythonInterface/mantid/kernel/src/Exports/CompositeValidator.cpp +++ b/Code/Mantid/Framework/PythonInterface/mantid/kernel/src/Exports/CompositeValidator.cpp @@ -36,7 +36,9 @@ namespace } } +// clang-format off void export_CompositeValidator() +// clang-format on { class_<CompositeValidator, bases<IValidator>, boost::noncopyable>("CompositeValidator") .def("__init__", make_constructor(&createCompositeValidator, default_call_policies(), diff --git a/Code/Mantid/Framework/PythonInterface/mantid/kernel/src/Exports/ConfigService.cpp b/Code/Mantid/Framework/PythonInterface/mantid/kernel/src/Exports/ConfigService.cpp index 8d6d56263ed0e9dccac7257fa2a35f91ad4fe464..1cb3e06dce681706daa835b50a4fa2f3a7f160a8 100644 --- a/Code/Mantid/Framework/PythonInterface/mantid/kernel/src/Exports/ConfigService.cpp +++ b/Code/Mantid/Framework/PythonInterface/mantid/kernel/src/Exports/ConfigService.cpp @@ -36,7 +36,9 @@ namespace BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(getString_Overload, getString, 1, 2) } +// clang-format off void export_ConfigService() +// clang-format on { using Mantid::PythonInterface::std_vector_exporter; diff --git a/Code/Mantid/Framework/PythonInterface/mantid/kernel/src/Exports/DataItem.cpp b/Code/Mantid/Framework/PythonInterface/mantid/kernel/src/Exports/DataItem.cpp index e90ce011f8e91a4bbade11987a96ebfe3f71e254..ddcfd758bfc1e9162cba7d86aeb9af9e7fe21e6c 100644 --- a/Code/Mantid/Framework/PythonInterface/mantid/kernel/src/Exports/DataItem.cpp +++ b/Code/Mantid/Framework/PythonInterface/mantid/kernel/src/Exports/DataItem.cpp @@ -6,7 +6,9 @@ using Mantid::Kernel::DataItem; using namespace boost::python; +// clang-format off void export_DataItem() +// clang-format on { register_ptr_to_python<boost::shared_ptr<DataItem>>(); diff --git a/Code/Mantid/Framework/PythonInterface/mantid/kernel/src/Exports/DateAndTime.cpp b/Code/Mantid/Framework/PythonInterface/mantid/kernel/src/Exports/DateAndTime.cpp index a7c64fc927716e381c1bdd3d246bc5de4284039f..8c567746bd667815407025cbd35a2ef49cd8f30d 100644 --- a/Code/Mantid/Framework/PythonInterface/mantid/kernel/src/Exports/DateAndTime.cpp +++ b/Code/Mantid/Framework/PythonInterface/mantid/kernel/src/Exports/DateAndTime.cpp @@ -15,7 +15,9 @@ std::string ISO8601StringPlusSpace(DateAndTime & self) return self.toISO8601String()+" "; } +// clang-format off void export_DateAndTime() +// clang-format on { class_<DateAndTime>("DateAndTime", no_init) // Constructors @@ -39,7 +41,9 @@ void export_DateAndTime() ; } +// clang-format off void export_time_duration() +// clang-format on { class_<time_duration>("time_duration", no_init) .def("hours", &time_duration::hours, "Returns the normalized number of hours") diff --git a/Code/Mantid/Framework/PythonInterface/mantid/kernel/src/Exports/DeltaEMode.cpp b/Code/Mantid/Framework/PythonInterface/mantid/kernel/src/Exports/DeltaEMode.cpp index 325e1683c9baf7b515099314241d75c01b7a0834..95805dd2073af47fc3923601d62c40a6ab9f50d6 100644 --- a/Code/Mantid/Framework/PythonInterface/mantid/kernel/src/Exports/DeltaEMode.cpp +++ b/Code/Mantid/Framework/PythonInterface/mantid/kernel/src/Exports/DeltaEMode.cpp @@ -9,7 +9,9 @@ using Mantid::Kernel::DeltaEMode; namespace Policies = Mantid::PythonInterface::Policies; using namespace boost::python; +// clang-format off void export_DeltaEMode() +// clang-format on { enum_<Mantid::Kernel::DeltaEMode::Type>("DeltaEModeType") .value("Elastic", DeltaEMode::Elastic) diff --git a/Code/Mantid/Framework/PythonInterface/mantid/kernel/src/Exports/EnabledWhenProperty.cpp b/Code/Mantid/Framework/PythonInterface/mantid/kernel/src/Exports/EnabledWhenProperty.cpp index d2b8a15ee8e58097a693694248fba549b3025dcd..37a4485452ba6cec86f9687a1ee815dcd597bb83 100644 --- a/Code/Mantid/Framework/PythonInterface/mantid/kernel/src/Exports/EnabledWhenProperty.cpp +++ b/Code/Mantid/Framework/PythonInterface/mantid/kernel/src/Exports/EnabledWhenProperty.cpp @@ -5,7 +5,9 @@ using namespace Mantid::Kernel; using namespace boost::python; +// clang-format off void export_EnabledWhenProperty() +// clang-format on { // State enumeration enum_<ePropertyCriterion>("PropertyCriterion") diff --git a/Code/Mantid/Framework/PythonInterface/mantid/kernel/src/Exports/FacilityInfo.cpp b/Code/Mantid/Framework/PythonInterface/mantid/kernel/src/Exports/FacilityInfo.cpp index 7d8144fb52e36e07453f5b71bc8024e573aafc27..05cadb4de7b2b4d17f9596a35b29df721395825b 100644 --- a/Code/Mantid/Framework/PythonInterface/mantid/kernel/src/Exports/FacilityInfo.cpp +++ b/Code/Mantid/Framework/PythonInterface/mantid/kernel/src/Exports/FacilityInfo.cpp @@ -7,7 +7,9 @@ using Mantid::Kernel::FacilityInfo; using Mantid::Kernel::InstrumentInfo; using namespace boost::python; +// clang-format off void export_FacilityInfo() +// clang-format on { register_ptr_to_python<FacilityInfo*>(); diff --git a/Code/Mantid/Framework/PythonInterface/mantid/kernel/src/Exports/FilteredTimeSeriesProperty.cpp b/Code/Mantid/Framework/PythonInterface/mantid/kernel/src/Exports/FilteredTimeSeriesProperty.cpp index 9d29696e5f7c2082b71519371daaf6eba12dcfcb..49b3e1adfc50e5801c3d3db185f7cce7ed49da8f 100644 --- a/Code/Mantid/Framework/PythonInterface/mantid/kernel/src/Exports/FilteredTimeSeriesProperty.cpp +++ b/Code/Mantid/Framework/PythonInterface/mantid/kernel/src/Exports/FilteredTimeSeriesProperty.cpp @@ -24,7 +24,9 @@ namespace ; } +// clang-format off void export_FilteredTimeSeriesProperty() +// clang-format on { EXPORT_FILTEREDTIMESERIES_PROP(double, Float); EXPORT_FILTEREDTIMESERIES_PROP(bool, Bool); diff --git a/Code/Mantid/Framework/PythonInterface/mantid/kernel/src/Exports/IPropertyManager.cpp b/Code/Mantid/Framework/PythonInterface/mantid/kernel/src/Exports/IPropertyManager.cpp index d40c6cb68a6f4ec08d71d1da0ecae80cd8595cfa..4e686b53126341c74a59e6ff4b04a8f0b1a34723 100644 --- a/Code/Mantid/Framework/PythonInterface/mantid/kernel/src/Exports/IPropertyManager.cpp +++ b/Code/Mantid/Framework/PythonInterface/mantid/kernel/src/Exports/IPropertyManager.cpp @@ -120,7 +120,9 @@ namespace } +// clang-format off void export_IPropertyManager() +// clang-format on { register_ptr_to_python<IPropertyManager*>(); diff --git a/Code/Mantid/Framework/PythonInterface/mantid/kernel/src/Exports/IPropertySettings.cpp b/Code/Mantid/Framework/PythonInterface/mantid/kernel/src/Exports/IPropertySettings.cpp index 5e8d17528bef7ccebdaae9642862a55afd0cdaae..426df48a16b92f5b4fcdd843918861eca3cb2e0d 100644 --- a/Code/Mantid/Framework/PythonInterface/mantid/kernel/src/Exports/IPropertySettings.cpp +++ b/Code/Mantid/Framework/PythonInterface/mantid/kernel/src/Exports/IPropertySettings.cpp @@ -6,7 +6,9 @@ using Mantid::Kernel::IPropertySettings; using namespace boost::python; +// clang-format off void export_IPropertySettings() +// clang-format on { register_ptr_to_python<IPropertySettings*>(); diff --git a/Code/Mantid/Framework/PythonInterface/mantid/kernel/src/Exports/IValidator.cpp b/Code/Mantid/Framework/PythonInterface/mantid/kernel/src/Exports/IValidator.cpp index 44f793b69fcb65fca0a2d93f46c38ad3cf9b7a54..995e528b72cd562179af200d88319491464894ad 100644 --- a/Code/Mantid/Framework/PythonInterface/mantid/kernel/src/Exports/IValidator.cpp +++ b/Code/Mantid/Framework/PythonInterface/mantid/kernel/src/Exports/IValidator.cpp @@ -5,7 +5,9 @@ using Mantid::Kernel::IValidator; using namespace boost::python; +// clang-format off void export_IValidator() +// clang-format on { register_ptr_to_python<boost::shared_ptr<IValidator>>(); diff --git a/Code/Mantid/Framework/PythonInterface/mantid/kernel/src/Exports/InstrumentInfo.cpp b/Code/Mantid/Framework/PythonInterface/mantid/kernel/src/Exports/InstrumentInfo.cpp index 6ec736305bd78d85971bdae24258ef48cbbc7be2..361bfa76ec3dd08da1cf0421d35357914d66099c 100644 --- a/Code/Mantid/Framework/PythonInterface/mantid/kernel/src/Exports/InstrumentInfo.cpp +++ b/Code/Mantid/Framework/PythonInterface/mantid/kernel/src/Exports/InstrumentInfo.cpp @@ -7,7 +7,9 @@ using Mantid::Kernel::InstrumentInfo; using namespace boost::python; +// clang-format off void export_InstrumentInfo() +// clang-format on { using namespace Mantid::PythonInterface; std_vector_exporter<InstrumentInfo>::wrap("std_vector_InstrumentInfo"); diff --git a/Code/Mantid/Framework/PythonInterface/mantid/kernel/src/Exports/ListValidator.cpp b/Code/Mantid/Framework/PythonInterface/mantid/kernel/src/Exports/ListValidator.cpp index be87143732b20dbd5866c3bdb4b649701b76e572..e1f5c4b15836d448ad089c2c49ef5946a38da51c 100644 --- a/Code/Mantid/Framework/PythonInterface/mantid/kernel/src/Exports/ListValidator.cpp +++ b/Code/Mantid/Framework/PythonInterface/mantid/kernel/src/Exports/ListValidator.cpp @@ -39,7 +39,9 @@ namespace } +// clang-format off void export_ListValidator() +// clang-format on { EXPORT_LISTVALIDATOR(std::string, String); EXPORT_LISTVALIDATOR(long, Int); diff --git a/Code/Mantid/Framework/PythonInterface/mantid/kernel/src/Exports/LogFilter.cpp b/Code/Mantid/Framework/PythonInterface/mantid/kernel/src/Exports/LogFilter.cpp index 6647cea511699746221a8f47472a9934f5fb09d9..f837a84358855404b120f1468e1485562947f044 100644 --- a/Code/Mantid/Framework/PythonInterface/mantid/kernel/src/Exports/LogFilter.cpp +++ b/Code/Mantid/Framework/PythonInterface/mantid/kernel/src/Exports/LogFilter.cpp @@ -8,7 +8,9 @@ using Mantid::Kernel::Property; using namespace boost::python; +// clang-format off void export_LogFilter() +// clang-format on { class_<LogFilter,boost::noncopyable>("LogFilter", init<const Property*>("Creates a log filter using the log to be filtered")) diff --git a/Code/Mantid/Framework/PythonInterface/mantid/kernel/src/Exports/Logger.cpp b/Code/Mantid/Framework/PythonInterface/mantid/kernel/src/Exports/Logger.cpp index abf45b7d820aeb2e61d42c7728793c971b38277a..ccd697878b9b6c9414f48792d532c91ec219cd18 100644 --- a/Code/Mantid/Framework/PythonInterface/mantid/kernel/src/Exports/Logger.cpp +++ b/Code/Mantid/Framework/PythonInterface/mantid/kernel/src/Exports/Logger.cpp @@ -20,7 +20,9 @@ namespace } } +// clang-format off void export_Logger() +// clang-format on { register_ptr_to_python<boost::shared_ptr<Logger>>(); diff --git a/Code/Mantid/Framework/PythonInterface/mantid/kernel/src/Exports/MandatoryValidator.cpp b/Code/Mantid/Framework/PythonInterface/mantid/kernel/src/Exports/MandatoryValidator.cpp index 98a389f0f2fe7c710b081e4775beb661688b2b3e..debfe9081c2ae4d2381c062051d7df569583f2bc 100644 --- a/Code/Mantid/Framework/PythonInterface/mantid/kernel/src/Exports/MandatoryValidator.cpp +++ b/Code/Mantid/Framework/PythonInterface/mantid/kernel/src/Exports/MandatoryValidator.cpp @@ -15,7 +15,9 @@ namespace ; } +// clang-format off void export_MandatoryValidator() +// clang-format on { EXPORT_MANDATORYVALIDATOR(double, Float); EXPORT_MANDATORYVALIDATOR(long, Int); diff --git a/Code/Mantid/Framework/PythonInterface/mantid/kernel/src/Exports/Material.cpp b/Code/Mantid/Framework/PythonInterface/mantid/kernel/src/Exports/Material.cpp index 9de29e96cd4d8b0f4e585a2b2d79e6bdd502b5a3..37436b0ff2abddbc8c1202f6298792897c031c5d 100644 --- a/Code/Mantid/Framework/PythonInterface/mantid/kernel/src/Exports/Material.cpp +++ b/Code/Mantid/Framework/PythonInterface/mantid/kernel/src/Exports/Material.cpp @@ -9,7 +9,9 @@ using Mantid::Kernel::Material; using Mantid::PhysicalConstants::NeutronAtom; using namespace boost::python; +// clang-format off void export_Material() +// clang-format on { register_ptr_to_python<Material*>(); register_ptr_to_python<boost::shared_ptr<Material> >(); diff --git a/Code/Mantid/Framework/PythonInterface/mantid/kernel/src/Exports/Memory.cpp b/Code/Mantid/Framework/PythonInterface/mantid/kernel/src/Exports/Memory.cpp index 46e6432c8ee5014d0ecb86e2e702a4c82479d56f..4707cf36f216efcbd33447c793b3f63ff6f70d8a 100644 --- a/Code/Mantid/Framework/PythonInterface/mantid/kernel/src/Exports/Memory.cpp +++ b/Code/Mantid/Framework/PythonInterface/mantid/kernel/src/Exports/Memory.cpp @@ -4,7 +4,9 @@ using Mantid::Kernel::MemoryStats; using namespace boost::python; +// clang-format off void export_MemoryStats() +// clang-format on { class_< MemoryStats>("MemoryStats", init<>("Construct MemoryStats object.")) diff --git a/Code/Mantid/Framework/PythonInterface/mantid/kernel/src/Exports/NullValidator.cpp b/Code/Mantid/Framework/PythonInterface/mantid/kernel/src/Exports/NullValidator.cpp index 39418a1cbbc8357e92ccac808b3bc2a51c9d12a3..0cf927b618dafe009ef1f5c7ffd8436bb22ed667 100644 --- a/Code/Mantid/Framework/PythonInterface/mantid/kernel/src/Exports/NullValidator.cpp +++ b/Code/Mantid/Framework/PythonInterface/mantid/kernel/src/Exports/NullValidator.cpp @@ -7,7 +7,9 @@ using Mantid::Kernel::NullValidator; using Mantid::Kernel::IValidator; using namespace boost::python; +// clang-format off void export_NullValidator() +// clang-format on { register_ptr_to_python<boost::shared_ptr<NullValidator>>(); diff --git a/Code/Mantid/Framework/PythonInterface/mantid/kernel/src/Exports/ProgressBase.cpp b/Code/Mantid/Framework/PythonInterface/mantid/kernel/src/Exports/ProgressBase.cpp index 6943676f17cb2c3c6393e2bf9295e2352ee250a4..9fb35344e360a2ba2abb1413c1c6c3ea31205fae 100644 --- a/Code/Mantid/Framework/PythonInterface/mantid/kernel/src/Exports/ProgressBase.cpp +++ b/Code/Mantid/Framework/PythonInterface/mantid/kernel/src/Exports/ProgressBase.cpp @@ -4,7 +4,9 @@ using Mantid::Kernel::ProgressBase; using namespace boost::python; +// clang-format off void export_ProgressBase() +// clang-format on { class_<ProgressBase,boost::noncopyable>("ProgressBase", no_init) .def("report", (void (ProgressBase::*)())&ProgressBase::report, "Increment the progress by 1 and report with no message") diff --git a/Code/Mantid/Framework/PythonInterface/mantid/kernel/src/Exports/Property.cpp b/Code/Mantid/Framework/PythonInterface/mantid/kernel/src/Exports/Property.cpp index 1b85f6db92a2f2fbffc4f1dd9508290d5880b4a2..5ecd1107e1242497589fdd6cb63c476da684ed2d 100644 --- a/Code/Mantid/Framework/PythonInterface/mantid/kernel/src/Exports/Property.cpp +++ b/Code/Mantid/Framework/PythonInterface/mantid/kernel/src/Exports/Property.cpp @@ -16,7 +16,9 @@ using Mantid::PythonInterface::std_vector_exporter; using namespace boost::python; +// clang-format off void export_Property() +// clang-format on { register_ptr_to_python<Property*>(); diff --git a/Code/Mantid/Framework/PythonInterface/mantid/kernel/src/Exports/PropertyHistory.cpp b/Code/Mantid/Framework/PythonInterface/mantid/kernel/src/Exports/PropertyHistory.cpp index 78f829ce76b1fe97fd9094a6b731761e6be0cbd1..5915f2910f98bb1f876132aa0b5a754938a1ca0d 100644 --- a/Code/Mantid/Framework/PythonInterface/mantid/kernel/src/Exports/PropertyHistory.cpp +++ b/Code/Mantid/Framework/PythonInterface/mantid/kernel/src/Exports/PropertyHistory.cpp @@ -9,7 +9,9 @@ using Mantid::Kernel::PropertyHistory; using namespace boost::python; +// clang-format off void export_PropertyHistory() +// clang-format on { register_ptr_to_python<Mantid::Kernel::PropertyHistory_sptr>(); diff --git a/Code/Mantid/Framework/PythonInterface/mantid/kernel/src/Exports/PropertyManager.cpp b/Code/Mantid/Framework/PythonInterface/mantid/kernel/src/Exports/PropertyManager.cpp index f958225431e252a21a0e8b595a1e540374485840..c7b6b16f0354cb52423aedf38bb4450f90ebd1da 100644 --- a/Code/Mantid/Framework/PythonInterface/mantid/kernel/src/Exports/PropertyManager.cpp +++ b/Code/Mantid/Framework/PythonInterface/mantid/kernel/src/Exports/PropertyManager.cpp @@ -26,7 +26,9 @@ namespace } +// clang-format off void export_PropertyManager() +// clang-format on { register_ptr_to_python<boost::shared_ptr<PropertyManager>>(); class_<PropertyManager, bases<IPropertyManager>, boost::noncopyable>("PropertyManager") diff --git a/Code/Mantid/Framework/PythonInterface/mantid/kernel/src/Exports/PropertyWithValue.cpp b/Code/Mantid/Framework/PythonInterface/mantid/kernel/src/Exports/PropertyWithValue.cpp index 7560ad24547012d7368d32e53ef55959ed031a04..a7eb9bd5f20f23d20b5d6ac2253fc1e920ec759f 100644 --- a/Code/Mantid/Framework/PythonInterface/mantid/kernel/src/Exports/PropertyWithValue.cpp +++ b/Code/Mantid/Framework/PythonInterface/mantid/kernel/src/Exports/PropertyWithValue.cpp @@ -2,7 +2,9 @@ using Mantid::PythonInterface::PropertyWithValueExporter; +// clang-format off void export_BasicPropertyWithValueTypes() +// clang-format on { // cut down copy-and-paste code #define EXPORT_PROP(CType, ExportName) \ diff --git a/Code/Mantid/Framework/PythonInterface/mantid/kernel/src/Exports/Quat.cpp b/Code/Mantid/Framework/PythonInterface/mantid/kernel/src/Exports/Quat.cpp index 94f32da09029f92434058341bbd9930bb97a6e49..0c34adcab3322472aa68838908d103cd24efcbf8 100644 --- a/Code/Mantid/Framework/PythonInterface/mantid/kernel/src/Exports/Quat.cpp +++ b/Code/Mantid/Framework/PythonInterface/mantid/kernel/src/Exports/Quat.cpp @@ -18,7 +18,9 @@ using boost::python::return_value_policy; /** * Python exports of the Mantid::Kernel::Quat class. */ +// clang-format off void export_Quat() +// clang-format on { //Quat class class_< Quat >("Quat", "Quaternions are the 3D generalization of complex numbers. " diff --git a/Code/Mantid/Framework/PythonInterface/mantid/kernel/src/Exports/Statistics.cpp b/Code/Mantid/Framework/PythonInterface/mantid/kernel/src/Exports/Statistics.cpp index 3bfa9244083a18adb81d5a276d1f037ac23bf52d..94a0138cb1bd38f67152bce54e0f6d1f7326a834 100644 --- a/Code/Mantid/Framework/PythonInterface/mantid/kernel/src/Exports/Statistics.cpp +++ b/Code/Mantid/Framework/PythonInterface/mantid/kernel/src/Exports/Statistics.cpp @@ -213,7 +213,9 @@ namespace // -------------------------------------- Exports start here -------------------------------------- +// clang-format off void export_Statistics() +// clang-format on { // typedef std::vector --> numpy array result converter typedef return_value_policy<Policies::VectorToNumpy> ReturnNumpyArray; diff --git a/Code/Mantid/Framework/PythonInterface/mantid/kernel/src/Exports/StlContainers.cpp b/Code/Mantid/Framework/PythonInterface/mantid/kernel/src/Exports/StlContainers.cpp index 42853b3c4854ace8edf3299dd8d8569e8bc27d96..95251d4eeee72902059909cb71f4ac5e140f2fdd 100644 --- a/Code/Mantid/Framework/PythonInterface/mantid/kernel/src/Exports/StlContainers.cpp +++ b/Code/Mantid/Framework/PythonInterface/mantid/kernel/src/Exports/StlContainers.cpp @@ -5,7 +5,9 @@ using Mantid::PythonInterface::std_vector_exporter; using Mantid::PythonInterface::std_set_exporter; +// clang-format off void exportStlContainers() +// clang-format on { // Export some frequently used stl containers // std::vector diff --git a/Code/Mantid/Framework/PythonInterface/mantid/kernel/src/Exports/TimeSeriesProperty.cpp b/Code/Mantid/Framework/PythonInterface/mantid/kernel/src/Exports/TimeSeriesProperty.cpp index 2f9bf530009231a934726719b8dbaad4acd44bf5..e40411537a4181ba4ee0e4349e52f84a1b2af5c1 100644 --- a/Code/Mantid/Framework/PythonInterface/mantid/kernel/src/Exports/TimeSeriesProperty.cpp +++ b/Code/Mantid/Framework/PythonInterface/mantid/kernel/src/Exports/TimeSeriesProperty.cpp @@ -40,33 +40,45 @@ namespace ; } +// clang-format off void export_TimeSeriesProperty_Double() +// clang-format on { EXPORT_TIMESERIES_PROP(double, Float); } +// clang-format off void export_TimeSeriesProperty_Bool() +// clang-format on { EXPORT_TIMESERIES_PROP(bool, Bool); } +// clang-format off void export_TimeSeriesProperty_Int32() +// clang-format on { EXPORT_TIMESERIES_PROP(int32_t, Int32); } +// clang-format off void export_TimeSeriesProperty_Int64() +// clang-format on { EXPORT_TIMESERIES_PROP(int64_t, Int64); } +// clang-format off void export_TimeSeriesProperty_String() +// clang-format on { EXPORT_TIMESERIES_PROP(std::string, String); } +// clang-format off void export_TimeSeriesPropertyStatistics() +// clang-format on { class_<Mantid::Kernel::TimeSeriesPropertyStatistics>("TimeSeriesPropertyStatistics", no_init) .add_property("minimum", &Mantid::Kernel::TimeSeriesPropertyStatistics::minimum) diff --git a/Code/Mantid/Framework/PythonInterface/mantid/kernel/src/Exports/Unit.cpp b/Code/Mantid/Framework/PythonInterface/mantid/kernel/src/Exports/Unit.cpp index 479d4a2b295eb23b2be1a0cf2367470c1293efeb..53635677a213bc73544621bba5d719b8106e1109 100644 --- a/Code/Mantid/Framework/PythonInterface/mantid/kernel/src/Exports/Unit.cpp +++ b/Code/Mantid/Framework/PythonInterface/mantid/kernel/src/Exports/Unit.cpp @@ -31,7 +31,9 @@ namespace } +// clang-format off void export_Unit() +// clang-format on { register_ptr_to_python<boost::shared_ptr<Unit>>(); diff --git a/Code/Mantid/Framework/PythonInterface/mantid/kernel/src/Exports/UnitConversion.cpp b/Code/Mantid/Framework/PythonInterface/mantid/kernel/src/Exports/UnitConversion.cpp index 65de0e2ff577fc81205e6cca268ab33378dcd3e6..2710396f41e1eb754f7a2dd2437d4d7a70e0b8ba 100644 --- a/Code/Mantid/Framework/PythonInterface/mantid/kernel/src/Exports/UnitConversion.cpp +++ b/Code/Mantid/Framework/PythonInterface/mantid/kernel/src/Exports/UnitConversion.cpp @@ -6,7 +6,9 @@ using Mantid::Kernel::UnitConversion; using Mantid::Kernel::DeltaEMode; using namespace boost::python; +// clang-format off void export_UnitConversion() +// clang-format on { // Function pointer typedef typedef double (*StringVersion)(const std::string & src, const std::string & dest, diff --git a/Code/Mantid/Framework/PythonInterface/mantid/kernel/src/Exports/UnitFactory.cpp b/Code/Mantid/Framework/PythonInterface/mantid/kernel/src/Exports/UnitFactory.cpp index bd0850258e48776cbdd8b281d18e539e14a6debf..47afdf578fcb77cfcaa6d33e0db52f8f13b838e1 100644 --- a/Code/Mantid/Framework/PythonInterface/mantid/kernel/src/Exports/UnitFactory.cpp +++ b/Code/Mantid/Framework/PythonInterface/mantid/kernel/src/Exports/UnitFactory.cpp @@ -12,7 +12,9 @@ namespace Policies = Mantid::PythonInterface::Policies; namespace Converters = Mantid::PythonInterface::Converters; using namespace boost::python; +// clang-format off void export_UnitFactory() +// clang-format on { class_<UnitFactoryImpl, boost::noncopyable>("UnitFactoryImpl", no_init) .def("create", &UnitFactoryImpl::create, "Creates a named unit if it exists in the factory") diff --git a/Code/Mantid/Framework/PythonInterface/mantid/kernel/src/Exports/UnitLabel.cpp b/Code/Mantid/Framework/PythonInterface/mantid/kernel/src/Exports/UnitLabel.cpp index 661eb18e8f104716d671b0e8b28a2e0f748e4c44..241a50504f13d4942096bdd9140feb3fedff6407 100644 --- a/Code/Mantid/Framework/PythonInterface/mantid/kernel/src/Exports/UnitLabel.cpp +++ b/Code/Mantid/Framework/PythonInterface/mantid/kernel/src/Exports/UnitLabel.cpp @@ -46,7 +46,9 @@ namespace } +// clang-format off void export_UnitLabel() +// clang-format on { class_<UnitLabel>("UnitLabel", no_init) .def("__init__", diff --git a/Code/Mantid/Framework/PythonInterface/mantid/kernel/src/Exports/Units.cpp b/Code/Mantid/Framework/PythonInterface/mantid/kernel/src/Exports/Units.cpp index 0c60a6796839c0bd1b43ee42bd2ff645e42c6085..602cfa128083942ab292895c85eb6322364cb945 100644 --- a/Code/Mantid/Framework/PythonInterface/mantid/kernel/src/Exports/Units.cpp +++ b/Code/Mantid/Framework/PythonInterface/mantid/kernel/src/Exports/Units.cpp @@ -24,7 +24,9 @@ namespace // We only export the concrete unit classes that // have additional functionality over the base class +// clang-format off void export_Label() +// clang-format on { class_<Label, bases<Unit>, boost::noncopyable>("Label", no_init) .def("setLabel", &setLabelFromStdString, diff --git a/Code/Mantid/Framework/PythonInterface/mantid/kernel/src/Exports/V3D.cpp b/Code/Mantid/Framework/PythonInterface/mantid/kernel/src/Exports/V3D.cpp index 845ecc46f1b0f41034a3d0d4e2512ee5340bb13d..0c725af643ff4645e87bddc8b6be24e5b9703d54 100644 --- a/Code/Mantid/Framework/PythonInterface/mantid/kernel/src/Exports/V3D.cpp +++ b/Code/Mantid/Framework/PythonInterface/mantid/kernel/src/Exports/V3D.cpp @@ -29,7 +29,9 @@ namespace } +// clang-format off void export_V3D() +// clang-format on { //V3D class class_< V3D >("V3D",init<>("Construct a V3D at the origin")) diff --git a/Code/Mantid/Framework/PythonInterface/mantid/kernel/src/Exports/VMD.cpp b/Code/Mantid/Framework/PythonInterface/mantid/kernel/src/Exports/VMD.cpp index 42ec793e917ce3389ad062e0e95c4cd0c70a6633..d6831df4826beaaf10869d18f6ef0bfc3e0f2791 100644 --- a/Code/Mantid/Framework/PythonInterface/mantid/kernel/src/Exports/VMD.cpp +++ b/Code/Mantid/Framework/PythonInterface/mantid/kernel/src/Exports/VMD.cpp @@ -47,7 +47,9 @@ namespace } } +// clang-format off void export_VMD() +// clang-format on { class_<VMD>("VMD", init<>("Default constructor gives an object with 1 dimension")) .def(init<VMD_t,VMD_t>("Constructs a 2 dimensional vector at the point given", args(("val0"),("val1")))) diff --git a/Code/Mantid/Framework/PythonInterface/mantid/kernel/src/Exports/VisibleWhenProperty.cpp b/Code/Mantid/Framework/PythonInterface/mantid/kernel/src/Exports/VisibleWhenProperty.cpp index 59ded113a4daf7b2c7b9af02374dfec1b025466c..5b9166a6e264d2097da97b3c2dcf9f8058120bf9 100644 --- a/Code/Mantid/Framework/PythonInterface/mantid/kernel/src/Exports/VisibleWhenProperty.cpp +++ b/Code/Mantid/Framework/PythonInterface/mantid/kernel/src/Exports/VisibleWhenProperty.cpp @@ -4,7 +4,9 @@ using namespace Mantid::Kernel; using namespace boost::python; +// clang-format off void export_VisibleWhenProperty() +// clang-format on { class_<VisibleWhenProperty, bases<EnabledWhenProperty>, boost::noncopyable>("VisibleWhenProperty", no_init)