Skip to content

Commit 0f69d9a

Browse files
Merge remote-tracking branch 'origin/template_extension' into ornl-next
2 parents 7f99029 + 7305ed6 commit 0f69d9a

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

50 files changed

+72
-71
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ compile_commands.json
1616
# Ignore CMakeUserPresets
1717
CMakeUserPresets.json
1818

19+
# prefer hxx for template definition files
20+
*.tcc
1921

2022
# Compiled Object files
2123
*.slo

Framework/API/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ set(SRC_FILES
164164
set(INC_FILES
165165
inc/MantidAPI/ADSValidator.h
166166
inc/MantidAPI/Algorithm.h
167-
inc/MantidAPI/Algorithm.tcc
167+
inc/MantidAPI/Algorithm.hxx
168168
inc/MantidAPI/AlgorithmFactory.h
169169
inc/MantidAPI/AlgorithmFactoryObserver.h
170170
inc/MantidAPI/AlgorithmHasProperty.h
@@ -361,7 +361,7 @@ set(INC_FILES
361361
inc/MantidAPI/WorkspaceNearestNeighbours.h
362362
inc/MantidAPI/WorkspaceOpOverloads.h
363363
inc/MantidAPI/WorkspaceProperty.h
364-
inc/MantidAPI/WorkspaceProperty.tcc
364+
inc/MantidAPI/WorkspaceProperty.hxx
365365
inc/MantidAPI/WorkspacePropertyUtils.h
366366
inc/MantidAPI/WorkspaceUnitValidator.h
367367
inc/MantidAPI/Workspace_fwd.h

Framework/API/inc/MantidAPI/Algorithm.tcc renamed to Framework/API/inc/MantidAPI/Algorithm.hxx

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -29,15 +29,15 @@ void setWorkspaceProperty(Mantid::API::WorkspaceProperty<T1> *wsProp, const T2 &
2929
namespace Mantid {
3030
namespace API {
3131
/** Declare a property which defines the workspace and allowed index types, as
32-
* well as a property for capturing the indices all at once. This method is
33-
* only enabled if T is convertible to MatrixWorkspace.
34-
@param propertyName Name of property which will be reserved
35-
@param allowedIndexTypes combination of allowed index types. Default
36-
IndexType::WorkspaceIndex
37-
@param wsPropArgs a parameter pack of arguments forwarded to WorkspaceProperty.
38-
Can contain PropertyMode, LockMode, and validators.
39-
@param doc Property documentation string.
40-
*/
32+
* well as a property for capturing the indices all at once. This method is
33+
* only enabled if T is convertible to MatrixWorkspace.
34+
* The AllowedIndexTypes combination of allowed index types. Default IndexType::WorkspaceIndex
35+
*
36+
* @param propertyName Name of property which will be reserved
37+
* @param wsPropArgs a parameter pack of arguments forwarded to WorkspaceProperty.
38+
* Can contain PropertyMode, LockMode, and validators.
39+
* @param doc Property documentation string.
40+
*/
4141
template <typename T, const int AllowedIndexTypes, typename... WSPropArgs, typename>
4242
void Algorithm::declareWorkspaceInputProperties(const std::string &propertyName, const std::string &doc,
4343
WSPropArgs &&...wsPropArgs) {
File renamed without changes.
File renamed without changes.

Framework/API/src/Algorithm.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
#include <utility>
4444

4545
// Index property handling template definitions
46-
#include "MantidAPI/Algorithm.tcc"
46+
#include "MantidAPI/Algorithm.hxx"
4747

4848
using namespace Mantid::Kernel;
4949

Framework/API/src/IFunction1D.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
#include "MantidAPI/ConstraintFactory.h"
1414
#include "MantidAPI/Expression.h"
1515
#include "MantidAPI/IConstraint.h"
16-
#include "MantidAPI/IFunction1D.tcc"
16+
#include "MantidAPI/IFunction1D.hxx"
1717
#include "MantidAPI/IFunctionWithLocation.h"
1818
#include "MantidAPI/Jacobian.h"
1919
#include "MantidAPI/MatrixWorkspace.h"

Framework/API/src/IPeakFunction.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
#include "MantidAPI/IPeakFunction.h"
1111
#include "MantidAPI/FunctionFactory.h"
1212
#include "MantidAPI/FunctionParameterDecorator.h"
13-
#include "MantidAPI/IFunction1D.tcc"
13+
#include "MantidAPI/IFunction1D.hxx"
1414
#include "MantidAPI/Jacobian.h"
1515
#include "MantidAPI/PeakFunctionIntegrator.h"
1616
#include "MantidKernel/Exception.h"

Framework/API/src/PropertyWithValue.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
#include "MantidAPI/WorkspaceGroup.h"
2323

2424
// PropertyWithValue implementation
25-
#include "MantidKernel/PropertyWithValue.tcc"
25+
#include "MantidKernel/PropertyWithValue.hxx"
2626

2727
namespace Mantid::Kernel {
2828

Framework/API/src/WorkspaceProperty.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
#include "MantidAPI/WorkspaceGroup.h"
1616

1717
// WorkspaceProperty implementation
18-
#include "MantidAPI/WorkspaceProperty.tcc"
18+
#include "MantidAPI/WorkspaceProperty.hxx"
1919

2020
namespace Mantid::API {
2121
///@cond TEMPLATE

0 commit comments

Comments
 (0)