Skip to content

Commit

Permalink
merge with upstream/master #37
Browse files Browse the repository at this point in the history
  • Loading branch information
LamarMoore committed Mar 27, 2018
2 parents 3a05ea5 + 3401358 commit feb9025
Show file tree
Hide file tree
Showing 1,132 changed files with 12,752 additions and 16,936 deletions.
8 changes: 5 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -153,12 +153,13 @@ include_directories ( Framework/Kernel/inc )
include_directories ( Framework/HistogramData/inc )
include_directories ( Framework/Indexing/inc )
include_directories ( Framework/Parallel/inc )
include_directories ( Framework/Beamline/inc )
include_directories ( Framework/Geometry/inc )
include_directories ( Framework/API/inc )
include_directories ( Framework/Types/inc )
include_directories ( Framework/NexusGeometry/inc )

set ( CORE_MANTIDLIBS Kernel HistogramData Indexing Geometry API Types )
set ( CORE_MANTIDLIBS Kernel HistogramData Indexing Beamline Geometry API Types )

if ( ENABLE_MANTIDPLOT AND MAKE_VATES )

Expand Down Expand Up @@ -309,7 +310,7 @@ if ( ENABLE_CPACK )
set ( CPACK_RPM_PACKAGE_REQUIRES "${CPACK_RPM_PACKAGE_REQUIRES},scl-utils,mantidlibs34,mantidlibs34-runtime,mantidlibs34-qt,mantidlibs34-qt-x11,mantidlibs34-qt-webkit,mantidlibs34-qwt5-qt4" )
else()
# Require matplotlib >= 1.5 to fix bug in latex rendering
set ( CPACK_RPM_PACKAGE_REQUIRES "${CPACK_RPM_PACKAGE_REQUIRES} qscintilla,qwt5-qt4,python2-matplotlib-qt4 >= 1.5.2,boost >= 1.53.0" )
set ( CPACK_RPM_PACKAGE_REQUIRES "${CPACK_RPM_PACKAGE_REQUIRES} qscintilla,qwt5-qt4,python2-matplotlib-qt4 >= 1.5.2,python2-QtAwesome,boost >= 1.53.0" )
endif()

# Add software collections for RHEL
Expand Down Expand Up @@ -354,7 +355,8 @@ if ( ENABLE_CPACK )
"librdkafka++1,"
"libpocofoundation${POCO_SOLIB_VERSION},libpocoutil${POCO_SOLIB_VERSION},libpoconet${POCO_SOLIB_VERSION},libpoconetssl${POCO_SOLIB_VERSION},libpococrypto${POCO_SOLIB_VERSION},libpocoxml${POCO_SOLIB_VERSION},"
"python-pycifrw (>= 4.2.1),"
"python-yaml")
"python-yaml,"
"python-qtawesome")
set ( PERFTOOLS_DEB_PACKAGE "libgoogle-perftools4 (>= 1.7)" )
if( "${UNIX_CODENAME}" STREQUAL "xenial")
list ( APPEND DEPENDS_LIST ", libhdf5-cpp-11,libnexus0v5 (>= 4.3),libjsoncpp1,libqscintilla2-12v5, libmuparser2v5,libqwtplot3d-qt4-0v5,libgsl2,liboce-foundation10,liboce-modeling10")
Expand Down
4 changes: 2 additions & 2 deletions Framework/API/inc/MantidAPI/Algorithm.h
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ class MANTID_API_DLL Algorithm : public IAlgorithm,
/// parent object to fill.
void trackAlgorithmHistory(boost::shared_ptr<AlgorithmHistory> parentHist);

typedef std::vector<boost::shared_ptr<Workspace>> WorkspaceVector;
using WorkspaceVector = std::vector<boost::shared_ptr<Workspace>>;

void findWorkspaceProperties(WorkspaceVector &inputWorkspaces,
WorkspaceVector &outputWorkspaces) const;
Expand Down Expand Up @@ -502,7 +502,7 @@ class MANTID_API_DLL Algorithm : public IAlgorithm,
};

/// Typedef for a shared pointer to an Algorithm
typedef boost::shared_ptr<Algorithm> Algorithm_sptr;
using Algorithm_sptr = boost::shared_ptr<Algorithm>;

} // namespace API
} // namespace Mantid
Expand Down
12 changes: 6 additions & 6 deletions Framework/API/inc/MantidAPI/AlgorithmFactory.h
Original file line number Diff line number Diff line change
Expand Up @@ -163,18 +163,18 @@ class MANTID_API_DLL AlgorithmFactoryImpl final
void fillHiddenCategories(std::unordered_set<std::string> *categorySet) const;

/// A typedef for the map of algorithm versions
typedef std::map<std::string, int> VersionMap;
using VersionMap = std::map<std::string, int>;
/// The map holding the registered class names and their highest versions
VersionMap m_vmap;
};

typedef Mantid::Kernel::SingletonHolder<AlgorithmFactoryImpl> AlgorithmFactory;
using AlgorithmFactory = Mantid::Kernel::SingletonHolder<AlgorithmFactoryImpl>;

/// Convenient typedef for an UpdateNotification
typedef Mantid::Kernel::DynamicFactory<Algorithm>::UpdateNotification
AlgorithmFactoryUpdateNotification;
typedef const Poco::AutoPtr<Mantid::Kernel::DynamicFactory<
Algorithm>::UpdateNotification> &AlgorithmFactoryUpdateNotification_ptr;
using AlgorithmFactoryUpdateNotification =
Mantid::Kernel::DynamicFactory<Algorithm>::UpdateNotification;
using AlgorithmFactoryUpdateNotification_ptr = const Poco::AutoPtr<
Mantid::Kernel::DynamicFactory<Algorithm>::UpdateNotification> &;

} // namespace API
} // namespace Mantid
Expand Down
8 changes: 4 additions & 4 deletions Framework/API/inc/MantidAPI/AlgorithmHistory.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,10 @@ template <class T> struct CompareHistory {
}

// typedefs for algorithm history pointers
typedef boost::shared_ptr<AlgorithmHistory> AlgorithmHistory_sptr;
typedef boost::shared_ptr<const AlgorithmHistory> AlgorithmHistory_const_sptr;
typedef std::set<AlgorithmHistory_sptr,
Detail::CompareHistory<AlgorithmHistory>> AlgorithmHistories;
using AlgorithmHistory_sptr = boost::shared_ptr<AlgorithmHistory>;
using AlgorithmHistory_const_sptr = boost::shared_ptr<const AlgorithmHistory>;
using AlgorithmHistories =
std::set<AlgorithmHistory_sptr, Detail::CompareHistory<AlgorithmHistory>>;

/** @class AlgorithmHistory AlgorithmHistory.h API/MAntidAPI/AlgorithmHistory.h
Expand Down
2 changes: 1 addition & 1 deletion Framework/API/inc/MantidAPI/AlgorithmManager.h
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ class MANTID_API_DLL AlgorithmManagerImpl {
mutable std::mutex m_managedMutex;
};

typedef Mantid::Kernel::SingletonHolder<AlgorithmManagerImpl> AlgorithmManager;
using AlgorithmManager = Mantid::Kernel::SingletonHolder<AlgorithmManagerImpl>;

} // namespace API
} // Namespace Mantid
Expand Down
2 changes: 1 addition & 1 deletion Framework/API/inc/MantidAPI/AlgorithmProperty.h
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ class DLLExport AlgorithmProperty
: public Kernel::PropertyWithValue<boost::shared_ptr<IAlgorithm>> {
public:
/// Typedef the held type
typedef boost::shared_ptr<IAlgorithm> HeldType;
using HeldType = boost::shared_ptr<IAlgorithm>;

/// Constructor
AlgorithmProperty(const std::string &propName,
Expand Down
2 changes: 1 addition & 1 deletion Framework/API/inc/MantidAPI/AlgorithmProxy.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class Void;
namespace Mantid {
namespace API {
class Algorithm;
typedef boost::shared_ptr<Algorithm> Algorithm_sptr;
using Algorithm_sptr = boost::shared_ptr<Algorithm>;

/**
Expand Down
115 changes: 56 additions & 59 deletions Framework/API/inc/MantidAPI/AnalysisDataService.h
Original file line number Diff line number Diff line change
Expand Up @@ -178,65 +178,62 @@ class DLLExport AnalysisDataServiceImpl final
std::string m_illegalChars;
};

typedef Mantid::Kernel::SingletonHolder<AnalysisDataServiceImpl>
AnalysisDataService;

typedef Mantid::Kernel::DataService<Mantid::API::Workspace>::AddNotification
WorkspaceAddNotification;
typedef const Poco::AutoPtr<Mantid::Kernel::DataService<
Mantid::API::Workspace>::AddNotification> &WorkspaceAddNotification_ptr;

typedef Mantid::Kernel::DataService<Mantid::API::Workspace>::
BeforeReplaceNotification WorkspaceBeforeReplaceNotification;
typedef const Poco::AutoPtr<Mantid::Kernel::DataService<
Mantid::API::Workspace>::BeforeReplaceNotification> &
WorkspaceBeforeReplaceNotification_ptr;

typedef Mantid::Kernel::DataService<Mantid::API::Workspace>::
AfterReplaceNotification WorkspaceAfterReplaceNotification;
typedef const Poco::AutoPtr<Mantid::Kernel::DataService<
Mantid::API::Workspace>::AfterReplaceNotification> &
WorkspaceAfterReplaceNotification_ptr;

typedef Mantid::Kernel::DataService<Mantid::API::Workspace>::
PreDeleteNotification WorkspacePreDeleteNotification;
typedef const Poco::AutoPtr<Mantid::Kernel::DataService<
Mantid::API::Workspace>::PreDeleteNotification> &
WorkspacePreDeleteNotification_ptr;

typedef Mantid::Kernel::DataService<Mantid::API::Workspace>::
PostDeleteNotification WorkspacePostDeleteNotification;
typedef const Poco::AutoPtr<Mantid::Kernel::DataService<
Mantid::API::Workspace>::PostDeleteNotification> &
WorkspacePostDeleteNotification_ptr;

typedef Mantid::Kernel::DataService<Mantid::API::Workspace>::ClearNotification
ClearADSNotification;
typedef const Poco::AutoPtr<Mantid::Kernel::DataService<
Mantid::API::Workspace>::ClearNotification> &ClearADSNotification_ptr;

typedef Mantid::Kernel::DataService<Mantid::API::Workspace>::RenameNotification
WorkspaceRenameNotification;
typedef const Poco::AutoPtr<
Mantid::Kernel::DataService<Mantid::API::Workspace>::RenameNotification> &
WorkspaceRenameNotification_ptr;

typedef AnalysisDataServiceImpl::GroupWorkspacesNotification
WorkspacesGroupedNotification;
typedef const Poco::AutoPtr<
AnalysisDataServiceImpl::GroupWorkspacesNotification> &
WorkspacesGroupedNotification_ptr;

typedef AnalysisDataServiceImpl::UnGroupingWorkspaceNotification
WorkspaceUnGroupingNotification;
typedef const Poco::AutoPtr<
AnalysisDataServiceImpl::UnGroupingWorkspaceNotification> &
WorkspaceUnGroupingNotification_ptr;

typedef AnalysisDataServiceImpl::GroupUpdatedNotification
GroupUpdatedNotification;
typedef const Poco::AutoPtr<AnalysisDataServiceImpl::GroupUpdatedNotification> &
GroupUpdatedNotification_ptr;
using AnalysisDataService =
Mantid::Kernel::SingletonHolder<AnalysisDataServiceImpl>;

using WorkspaceAddNotification =
Mantid::Kernel::DataService<Mantid::API::Workspace>::AddNotification;
using WorkspaceAddNotification_ptr = const Poco::AutoPtr<
Mantid::Kernel::DataService<Mantid::API::Workspace>::AddNotification> &;

using WorkspaceBeforeReplaceNotification = Mantid::Kernel::DataService<
Mantid::API::Workspace>::BeforeReplaceNotification;
using WorkspaceBeforeReplaceNotification_ptr =
const Poco::AutoPtr<Mantid::Kernel::DataService<
Mantid::API::Workspace>::BeforeReplaceNotification> &;

using WorkspaceAfterReplaceNotification = Mantid::Kernel::DataService<
Mantid::API::Workspace>::AfterReplaceNotification;
using WorkspaceAfterReplaceNotification_ptr =
const Poco::AutoPtr<Mantid::Kernel::DataService<
Mantid::API::Workspace>::AfterReplaceNotification> &;

using WorkspacePreDeleteNotification =
Mantid::Kernel::DataService<Mantid::API::Workspace>::PreDeleteNotification;
using WorkspacePreDeleteNotification_ptr =
const Poco::AutoPtr<Mantid::Kernel::DataService<
Mantid::API::Workspace>::PreDeleteNotification> &;

using WorkspacePostDeleteNotification =
Mantid::Kernel::DataService<Mantid::API::Workspace>::PostDeleteNotification;
using WorkspacePostDeleteNotification_ptr =
const Poco::AutoPtr<Mantid::Kernel::DataService<
Mantid::API::Workspace>::PostDeleteNotification> &;

using ClearADSNotification =
Mantid::Kernel::DataService<Mantid::API::Workspace>::ClearNotification;
using ClearADSNotification_ptr = const Poco::AutoPtr<
Mantid::Kernel::DataService<Mantid::API::Workspace>::ClearNotification> &;

using WorkspaceRenameNotification =
Mantid::Kernel::DataService<Mantid::API::Workspace>::RenameNotification;
using WorkspaceRenameNotification_ptr = const Poco::AutoPtr<
Mantid::Kernel::DataService<Mantid::API::Workspace>::RenameNotification> &;

using WorkspacesGroupedNotification =
AnalysisDataServiceImpl::GroupWorkspacesNotification;
using WorkspacesGroupedNotification_ptr =
const Poco::AutoPtr<AnalysisDataServiceImpl::GroupWorkspacesNotification> &;

using WorkspaceUnGroupingNotification =
AnalysisDataServiceImpl::UnGroupingWorkspaceNotification;
using WorkspaceUnGroupingNotification_ptr = const Poco::AutoPtr<
AnalysisDataServiceImpl::UnGroupingWorkspaceNotification> &;

using GroupUpdatedNotification =
AnalysisDataServiceImpl::GroupUpdatedNotification;
using GroupUpdatedNotification_ptr =
const Poco::AutoPtr<AnalysisDataServiceImpl::GroupUpdatedNotification> &;

} // Namespace API
} // Namespace Mantid
Expand Down
4 changes: 2 additions & 2 deletions Framework/API/inc/MantidAPI/ArchiveSearchFactory.h
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ class MANTID_API_DLL ArchiveSearchFactoryImpl
~ArchiveSearchFactoryImpl() override = default;
};

typedef Mantid::Kernel::SingletonHolder<ArchiveSearchFactoryImpl>
ArchiveSearchFactory;
using ArchiveSearchFactory =
Mantid::Kernel::SingletonHolder<ArchiveSearchFactoryImpl>;
}
}

Expand Down
4 changes: 2 additions & 2 deletions Framework/API/inc/MantidAPI/BoxController.h
Original file line number Diff line number Diff line change
Expand Up @@ -505,10 +505,10 @@ class DLLExport BoxController {
};

/// Shared ptr to BoxController
typedef boost::shared_ptr<BoxController> BoxController_sptr;
using BoxController_sptr = boost::shared_ptr<BoxController>;

/// Shared ptr to a const BoxController
typedef boost::shared_ptr<const BoxController> BoxController_const_sptr;
using BoxController_const_sptr = boost::shared_ptr<const BoxController>;

} // namespace API

Expand Down
2 changes: 1 addition & 1 deletion Framework/API/inc/MantidAPI/CatalogFactory.h
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ class MANTID_API_DLL CatalogFactoryImpl

/// The specialisation of the SingletonHolder class that holds the
/// CatalogFactory
typedef Mantid::Kernel::SingletonHolder<CatalogFactoryImpl> CatalogFactory;
using CatalogFactory = Mantid::Kernel::SingletonHolder<CatalogFactoryImpl>;

} // namespace API
} // namespace Mantid
Expand Down
2 changes: 1 addition & 1 deletion Framework/API/inc/MantidAPI/CatalogManager.h
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ class MANTID_API_DLL CatalogManagerImpl {
std::map<CatalogSession_sptr, ICatalog_sptr> m_activeCatalogs;
};

typedef Kernel::SingletonHolder<CatalogManagerImpl> CatalogManager;
using CatalogManager = Kernel::SingletonHolder<CatalogManagerImpl>;
}
}

Expand Down
4 changes: 2 additions & 2 deletions Framework/API/inc/MantidAPI/CatalogSession.h
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ class MANTID_API_DLL CatalogSession {
std::string m_endpoint;
};

typedef boost::shared_ptr<CatalogSession> CatalogSession_sptr;
typedef boost::shared_ptr<const CatalogSession> CatalogSession_const_sptr;
using CatalogSession_sptr = boost::shared_ptr<CatalogSession>;
using CatalogSession_const_sptr = boost::shared_ptr<const CatalogSession>;
}
}

Expand Down
4 changes: 2 additions & 2 deletions Framework/API/inc/MantidAPI/Column.h
Original file line number Diff line number Diff line change
Expand Up @@ -227,8 +227,8 @@ MANTID_API_DLL std::ostream &operator<<(std::ostream &, const API::Boolean &);
/// Redaing a Boolean from an input stream
MANTID_API_DLL std::istream &operator>>(std::istream &istr, API::Boolean &);

typedef boost::shared_ptr<Column> Column_sptr;
typedef boost::shared_ptr<const Column> Column_const_sptr;
using Column_sptr = boost::shared_ptr<Column>;
using Column_const_sptr = boost::shared_ptr<const Column>;

} // namespace API
} // Namespace Mantid
Expand Down
2 changes: 1 addition & 1 deletion Framework/API/inc/MantidAPI/ColumnFactory.h
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ class MANTID_API_DLL ColumnFactoryImpl : public Kernel::DynamicFactory<Column> {
~ColumnFactoryImpl() override = default;
};

typedef Mantid::Kernel::SingletonHolder<ColumnFactoryImpl> ColumnFactory;
using ColumnFactory = Mantid::Kernel::SingletonHolder<ColumnFactoryImpl>;

} // namespace API
} // namespace Mantid
Expand Down
4 changes: 2 additions & 2 deletions Framework/API/inc/MantidAPI/CompositeFunction.h
Original file line number Diff line number Diff line change
Expand Up @@ -247,9 +247,9 @@ class MANTID_API_DLL CompositeFunction : public virtual IFunction {
};

/// shared pointer to the composite function base class
typedef boost::shared_ptr<CompositeFunction> CompositeFunction_sptr;
using CompositeFunction_sptr = boost::shared_ptr<CompositeFunction>;
/// shared pointer to the composite function base class (const version)
typedef boost::shared_ptr<const CompositeFunction> CompositeFunction_const_sptr;
using CompositeFunction_const_sptr = boost::shared_ptr<const CompositeFunction>;

/** A Jacobian for individual functions
*/
Expand Down
4 changes: 2 additions & 2 deletions Framework/API/inc/MantidAPI/ConstraintFactory.h
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@ class MANTID_API_DLL ConstraintFactoryImpl final
~ConstraintFactoryImpl() override = default;
};

typedef Mantid::Kernel::SingletonHolder<ConstraintFactoryImpl>
ConstraintFactory;
using ConstraintFactory =
Mantid::Kernel::SingletonHolder<ConstraintFactoryImpl>;

} // namespace API
} // namespace Mantid
Expand Down
4 changes: 2 additions & 2 deletions Framework/API/inc/MantidAPI/CoordTransform.h
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,10 @@ class DLLExport CoordTransform {
};

// Helper typedef for a shared pointer of this type.
typedef boost::shared_ptr<CoordTransform> CoordTransform_sptr;
using CoordTransform_sptr = boost::shared_ptr<CoordTransform>;

// Helper typdef for a const shared pointer of this type.
typedef boost::shared_ptr<const CoordTransform> CoordTransform_const_sptr;
using CoordTransform_const_sptr = boost::shared_ptr<const CoordTransform>;

} // namespace Mantid
} // namespace API
Expand Down
4 changes: 2 additions & 2 deletions Framework/API/inc/MantidAPI/CostFunctionFactory.h
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@ class MANTID_API_DLL CostFunctionFactoryImpl
CostFunctionFactoryImpl();
};

typedef Mantid::Kernel::SingletonHolder<CostFunctionFactoryImpl>
CostFunctionFactory;
using CostFunctionFactory =
Mantid::Kernel::SingletonHolder<CostFunctionFactoryImpl>;

} // namespace API
} // namespace Mantid
Expand Down
2 changes: 1 addition & 1 deletion Framework/API/inc/MantidAPI/DetectorSearcher.h
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ class MANTID_API_DLL DetectorSearcher {
public:
/// Search result type representing whether a detector was found and if so
/// which detector index it was.
typedef std::tuple<bool, size_t> DetectorSearchResult;
using DetectorSearchResult = std::tuple<bool, size_t>;

/// Create a new DetectorSearcher with the given instrument & detectors
DetectorSearcher(Geometry::Instrument_const_sptr instrument,
Expand Down
4 changes: 2 additions & 2 deletions Framework/API/inc/MantidAPI/DomainCreatorFactory.h
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,8 @@ class MANTID_API_DLL DomainCreatorFactoryImpl
using Kernel::DynamicFactory<IDomainCreator>::createUnwrapped;
};

typedef Mantid::Kernel::SingletonHolder<DomainCreatorFactoryImpl>
DomainCreatorFactory;
using DomainCreatorFactory =
Mantid::Kernel::SingletonHolder<DomainCreatorFactoryImpl>;

} // namespace API
} // namespace Mantid
Expand Down
4 changes: 2 additions & 2 deletions Framework/API/inc/MantidAPI/ExperimentInfo.h
Original file line number Diff line number Diff line change
Expand Up @@ -237,10 +237,10 @@ class MANTID_API_DLL ExperimentInfo {
};

/// Shared pointer to ExperimentInfo
typedef boost::shared_ptr<ExperimentInfo> ExperimentInfo_sptr;
using ExperimentInfo_sptr = boost::shared_ptr<ExperimentInfo>;

/// Shared pointer to const ExperimentInfo
typedef boost::shared_ptr<const ExperimentInfo> ExperimentInfo_const_sptr;
using ExperimentInfo_const_sptr = boost::shared_ptr<const ExperimentInfo>;

} // namespace Mantid
} // namespace API
Expand Down
Loading

0 comments on commit feb9025

Please sign in to comment.