Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
mantidproject
mantid
Commits
896d376b
Commit
896d376b
authored
Mar 06, 2020
by
Harriet Brown
Browse files
Replace header guards in Parallel with pragma once
This commit replaces all header guards in Parallel with #pragma once
parent
16a65d2f
Changes
33
Hide whitespace changes
Inline
Side-by-side
Framework/Parallel/inc/MantidParallel/Collectives.h
View file @
896d376b
...
...
@@ -4,8 +4,7 @@
// NScD Oak Ridge National Laboratory, European Spallation Source
// & Institut Laue - Langevin
// SPDX - License - Identifier: GPL - 3.0 +
#ifndef MANTID_PARALLEL_COLLECTIVES_H_
#define MANTID_PARALLEL_COLLECTIVES_H_
#pragma once
#include
"MantidParallel/Communicator.h"
#include
"MantidParallel/DllConfig.h"
...
...
@@ -103,5 +102,3 @@ void all_to_all(const Communicator &comm, T &&... args) {
}
// namespace Parallel
}
// namespace Mantid
#endif
/* MANTID_PARALLEL_COLLECTIVES_H_ */
Framework/Parallel/inc/MantidParallel/Communicator.h
View file @
896d376b
...
...
@@ -4,8 +4,7 @@
// NScD Oak Ridge National Laboratory, European Spallation Source
// & Institut Laue - Langevin
// SPDX - License - Identifier: GPL - 3.0 +
#ifndef MANTID_PARALLEL_COMMUNICATOR_H_
#define MANTID_PARALLEL_COMMUNICATOR_H_
#pragma once
#include
"MantidParallel/DllConfig.h"
#include
"MantidParallel/Request.h"
...
...
@@ -107,5 +106,3 @@ template <typename... T> Request Communicator::irecv(T &&... args) const {
}
// namespace Parallel
}
// namespace Mantid
#endif
/* MANTID_PARALLEL_COMMUNICATOR_H_ */
Framework/Parallel/inc/MantidParallel/DllConfig.h
View file @
896d376b
...
...
@@ -4,8 +4,7 @@
// NScD Oak Ridge National Laboratory, European Spallation Source
// & Institut Laue - Langevin
// SPDX - License - Identifier: GPL - 3.0 +
#ifndef MANTID_PARALLEL_DLLCONFIG_H_
#define MANTID_PARALLEL_DLLCONFIG_H_
#pragma once
/*
This file contains the DLLExport/DLLImport linkage configuration for the
...
...
@@ -18,5 +17,3 @@
#else
#define MANTID_PARALLEL_DLL DLLImport
#endif // IN_MANTID_PARALLEL
#endif // MANTID_PARALLEL_DLLCONFIG_H_
Framework/Parallel/inc/MantidParallel/ExecutionMode.h
View file @
896d376b
...
...
@@ -4,8 +4,7 @@
// NScD Oak Ridge National Laboratory, European Spallation Source
// & Institut Laue - Langevin
// SPDX - License - Identifier: GPL - 3.0 +
#ifndef MANTID_PARALLEL_EXECUTIONMODE_H_
#define MANTID_PARALLEL_EXECUTIONMODE_H_
#pragma once
#include
"MantidParallel/DllConfig.h"
#include
"MantidParallel/StorageMode.h"
...
...
@@ -41,5 +40,3 @@ MANTID_PARALLEL_DLL std::string toString(ExecutionMode mode);
}
// namespace Parallel
}
// namespace Mantid
#endif
/* MANTID_PARALLEL_EXECUTIONMODE_H_ */
Framework/Parallel/inc/MantidParallel/IO/Chunker.h
View file @
896d376b
...
...
@@ -4,8 +4,7 @@
// NScD Oak Ridge National Laboratory, European Spallation Source
// & Institut Laue - Langevin
// SPDX - License - Identifier: GPL - 3.0 +
#ifndef MANTID_PARALLEL_CHUNKER_H_
#define MANTID_PARALLEL_CHUNKER_H_
#pragma once
#include
<vector>
...
...
@@ -50,5 +49,3 @@ private:
}
// namespace IO
}
// namespace Parallel
}
// namespace Mantid
#endif
/* MANTID_PARALLEL_CHUNKER_H_ */
Framework/Parallel/inc/MantidParallel/IO/EventDataPartitioner.h
View file @
896d376b
...
...
@@ -4,8 +4,7 @@
// NScD Oak Ridge National Laboratory, European Spallation Source
// & Institut Laue - Langevin
// SPDX - License - Identifier: GPL - 3.0 +
#ifndef MANTID_PARALLEL_EVENTDATAPARTITIONER_H_
#define MANTID_PARALLEL_EVENTDATAPARTITIONER_H_
#pragma once
#include
"MantidParallel/DllConfig.h"
#include
"MantidParallel/IO/Chunker.h"
...
...
@@ -107,5 +106,3 @@ void EventDataPartitioner<IndexType, TimeZeroType, TimeOffsetType>::partition(
}
// namespace IO
}
// namespace Parallel
}
// namespace Mantid
#endif
/* MANTID_PARALLEL_EVENTDATAPARTITIONER_H_ */
Framework/Parallel/inc/MantidParallel/IO/EventLoader.h
View file @
896d376b
...
...
@@ -4,8 +4,7 @@
// NScD Oak Ridge National Laboratory, European Spallation Source
// & Institut Laue - Langevin
// SPDX - License - Identifier: GPL - 3.0 +
#ifndef MANTID_PARALLEL_EVENTLOADER_H_
#define MANTID_PARALLEL_EVENTLOADER_H_
#pragma once
#include
<string>
#include
<unordered_map>
...
...
@@ -52,5 +51,3 @@ load(const std::string &filename, const std::string &groupName,
}
// namespace IO
}
// namespace Parallel
}
// namespace Mantid
#endif
/* MANTID_PARALLEL_EVENTLOADER_H_ */
Framework/Parallel/inc/MantidParallel/IO/EventLoaderHelpers.h
View file @
896d376b
...
...
@@ -4,8 +4,7 @@
// NScD Oak Ridge National Laboratory, European Spallation Source
// & Institut Laue - Langevin
// SPDX - License - Identifier: GPL - 3.0 +
#ifndef MANTID_PARALLEL_EVENTLOADERHELPERS_H_
#define MANTID_PARALLEL_EVENTLOADERHELPERS_H_
#pragma once
#include
"MantidParallel/Communicator.h"
#include
"MantidParallel/DllConfig.h"
...
...
@@ -119,5 +118,3 @@ template <class... T> void load(const H5::DataType &type, T &&... args) {
}
// namespace IO
}
// namespace Parallel
}
// namespace Mantid
#endif
/* MANTID_PARALLEL_EVENTLOADERHELPERS_H_ */
Framework/Parallel/inc/MantidParallel/IO/EventParser.h
View file @
896d376b
...
...
@@ -4,8 +4,7 @@
// NScD Oak Ridge National Laboratory, European Spallation Source
// & Institut Laue - Langevin
// SPDX - License - Identifier: GPL - 3.0 +
#ifndef MANTID_PARALLEL_IO_EVENT_PARSER_H
#define MANTID_PARALLEL_IO_EVENT_PARSER_H
#pragma once
#include
"MantidParallel/Collectives.h"
#include
"MantidParallel/Communicator.h"
...
...
@@ -246,5 +245,4 @@ template <class TimeOffsetType> void EventParser<TimeOffsetType>::wait() {
}
// namespace IO
}
// namespace Parallel
}
// namespace Mantid
#endif // MANTID_PARALLEL_IO_EVENT_PARSER_H
}
// namespace Mantid
\ No newline at end of file
Framework/Parallel/inc/MantidParallel/IO/EventsListsShmemManager.h
View file @
896d376b
...
...
@@ -4,8 +4,7 @@
// NScD Oak Ridge National Laboratory, European Spallation Source
// & Institut Laue - Langevin
// SPDX - License - Identifier: GPL - 3.0 +
#ifndef MANTID_PARALLEL_EVENTSLISTSSHMEMMANAGER_H_
#define MANTID_PARALLEL_EVENTSLISTSSHMEMMANAGER_H_
#pragma once
#include
"boost/interprocess/containers/vector.hpp"
#include
"boost/interprocess/managed_shared_memory.hpp"
...
...
@@ -117,5 +116,3 @@ void EventsListsShmemManager::appendEvent(std::size_t chunkN, std::size_t listN,
}
// namespace IO
}
// namespace Parallel
}
// namespace Mantid
#endif
/* MANTID_PARALLEL_EVENTSLISTSSHMEMMANAGER_H_ */
\ No newline at end of file
Framework/Parallel/inc/MantidParallel/IO/EventsListsShmemStorage.h
View file @
896d376b
...
...
@@ -4,8 +4,7 @@
// NScD Oak Ridge National Laboratory, European Spallation Source
// & Institut Laue - Langevin
// SPDX - License - Identifier: GPL - 3.0 +
#ifndef MANTID_PARALLEL_EVENTSLISTSSHMEMSTORAGE_H_
#define MANTID_PARALLEL_EVENTSLISTSSHMEMSTORAGE_H_
#pragma once
#include
"MantidParallel/DllConfig.h"
#include
"MantidParallel/IO/EventsListsShmemManager.h"
...
...
@@ -43,5 +42,3 @@ public:
}
// namespace IO
}
// namespace Parallel
}
// namespace Mantid
#endif
/* MANTID_PARALLEL_EVENTSLISTSSHMEMSTORAGE_H_ */
\ No newline at end of file
Framework/Parallel/inc/MantidParallel/IO/MultiProcessEventLoader.h
View file @
896d376b
...
...
@@ -4,8 +4,7 @@
// NScD Oak Ridge National Laboratory, European Spallation Source
// & Institut Laue - Langevin
// SPDX - License - Identifier: GPL - 3.0 +
#ifndef MANTID_PARALLEL_MULTIPROCESSEVENTLOADER_H_
#define MANTID_PARALLEL_MULTIPROCESSEVENTLOADER_H_
#pragma once
#include
<atomic>
#include
<boost/numeric/conversion/cast.hpp>
...
...
@@ -373,5 +372,3 @@ void MultiProcessEventLoader::GroupLoader<
}
// namespace IO
}
// namespace Parallel
}
// namespace Mantid
#endif
/* MANTID_PARALLEL_MULTIPROCESSEVENTLOADER_H_ */
\ No newline at end of file
Framework/Parallel/inc/MantidParallel/IO/NXEventDataLoader.h
View file @
896d376b
...
...
@@ -4,8 +4,7 @@
// NScD Oak Ridge National Laboratory, European Spallation Source
// & Institut Laue - Langevin
// SPDX - License - Identifier: GPL - 3.0 +
#ifndef MANTID_PARALLEL_IO_NXEVENTDATALOADER_H_
#define MANTID_PARALLEL_IO_NXEVENTDATALOADER_H_
#pragma once
#include
"MantidKernel/System.h"
#include
<H5Cpp.h>
...
...
@@ -213,5 +212,3 @@ std::string NXEventDataLoader<TimeOffsetType>::readEventTimeOffsetUnit() const {
}
// namespace IO
}
// namespace Parallel
}
// namespace Mantid
#endif
/* MANTID_PARALLEL_IO_NXEVENTDATALOADER_H_ */
Framework/Parallel/inc/MantidParallel/IO/NXEventDataSource.h
View file @
896d376b
...
...
@@ -4,8 +4,7 @@
// NScD Oak Ridge National Laboratory, European Spallation Source
// & Institut Laue - Langevin
// SPDX - License - Identifier: GPL - 3.0 +
#ifndef MANTID_PARALLEL_NXEVENTDATASOURCE_H_
#define MANTID_PARALLEL_NXEVENTDATASOURCE_H_
#pragma once
#include
<vector>
...
...
@@ -40,5 +39,3 @@ public:
}
// namespace IO
}
// namespace Parallel
}
// namespace Mantid
#endif
/* MANTID_PARALLEL_NXEVENTDATASOURCE_H_ */
Framework/Parallel/inc/MantidParallel/IO/PulseTimeGenerator.h
View file @
896d376b
...
...
@@ -4,8 +4,7 @@
// NScD Oak Ridge National Laboratory, European Spallation Source
// & Institut Laue - Langevin
// SPDX - License - Identifier: GPL - 3.0 +
#ifndef MANTID_PARALLEL_PULSETIMEGENERATOR_H_
#define MANTID_PARALLEL_PULSETIMEGENERATOR_H_
#pragma once
#include
"MantidParallel/DllConfig.h"
#include
"MantidTypes/Core/DateAndTime.h"
...
...
@@ -123,5 +122,3 @@ private:
}
// namespace IO
}
// namespace Parallel
}
// namespace Mantid
#endif
/* MANTID_PARALLEL_PULSETIMEGENERATOR_H_ */
Framework/Parallel/inc/MantidParallel/Nonblocking.h
View file @
896d376b
...
...
@@ -4,8 +4,7 @@
// NScD Oak Ridge National Laboratory, European Spallation Source
// & Institut Laue - Langevin
// SPDX - License - Identifier: GPL - 3.0 +
#ifndef MANTID_PARALLEL_NONBLOCKING_H_
#define MANTID_PARALLEL_NONBLOCKING_H_
#pragma once
#include
"MantidParallel/DllConfig.h"
#include
"MantidParallel/Request.h"
...
...
@@ -44,5 +43,3 @@ void wait_all(ForwardIterator begin, ForwardIterator end) {
}
// namespace Parallel
}
// namespace Mantid
#endif
/* MANTID_PARALLEL_NONBLOCKING_H_ */
Framework/Parallel/inc/MantidParallel/Request.h
View file @
896d376b
...
...
@@ -4,8 +4,7 @@
// NScD Oak Ridge National Laboratory, European Spallation Source
// & Institut Laue - Langevin
// SPDX - License - Identifier: GPL - 3.0 +
#ifndef MANTID_PARALLEL_REQUEST_H_
#define MANTID_PARALLEL_REQUEST_H_
#pragma once
#include
"MantidParallel/DllConfig.h"
...
...
@@ -58,5 +57,3 @@ Request::Request(Function &&f)
}
// namespace Parallel
}
// namespace Mantid
#endif
/* MANTID_PARALLEL_REQUEST_H_ */
Framework/Parallel/inc/MantidParallel/Status.h
View file @
896d376b
...
...
@@ -4,8 +4,7 @@
// NScD Oak Ridge National Laboratory, European Spallation Source
// & Institut Laue - Langevin
// SPDX - License - Identifier: GPL - 3.0 +
#ifndef MANTID_PARALLEL_STATUS_H_
#define MANTID_PARALLEL_STATUS_H_
#pragma once
#include
"MantidParallel/DllConfig.h"
...
...
@@ -56,5 +55,3 @@ private:
}
// namespace Parallel
}
// namespace Mantid
#endif
/* MANTID_PARALLEL_STATUS_H_ */
Framework/Parallel/inc/MantidParallel/StorageMode.h
View file @
896d376b
...
...
@@ -4,8 +4,7 @@
// NScD Oak Ridge National Laboratory, European Spallation Source
// & Institut Laue - Langevin
// SPDX - License - Identifier: GPL - 3.0 +
#ifndef MANTID_PARALLEL_STORAGEMODE_H_
#define MANTID_PARALLEL_STORAGEMODE_H_
#pragma once
#include
"MantidParallel/DllConfig.h"
...
...
@@ -34,5 +33,3 @@ MANTID_PARALLEL_DLL StorageMode fromString(const std::string &mode);
}
// namespace Parallel
}
// namespace Mantid
#endif // MANTID_PARALLEL_STORAGEMODE_H_
Framework/Parallel/inc/MantidParallel/ThreadingBackend.h
View file @
896d376b
...
...
@@ -4,8 +4,7 @@
// NScD Oak Ridge National Laboratory, European Spallation Source
// & Institut Laue - Langevin
// SPDX - License - Identifier: GPL - 3.0 +
#ifndef MANTID_PARALLEL_THREADINGBACKEND_H_
#define MANTID_PARALLEL_THREADINGBACKEND_H_
#pragma once
#include
"MantidParallel/DllConfig.h"
#include
"MantidParallel/Request.h"
...
...
@@ -174,5 +173,3 @@ Request ThreadingBackend::irecv(int dest, int source, int tag, T *data,
}
// namespace detail
}
// namespace Parallel
}
// namespace Mantid
#endif
/* MANTID_PARALLEL_THREADINGBACKEND_H_ */
Prev
1
2
Next
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment