Skip to content

Commit c10424c

Browse files
committed
GPU: Remove all C++11 based protections
1 parent c639af6 commit c10424c

File tree

70 files changed

+188
-267
lines changed

Some content is hidden

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

70 files changed

+188
-267
lines changed

DataFormats/Detectors/TPC/include/DataFormatsTPC/CalibdEdxCorrection.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,9 @@ class CalibdEdxCorrection
4949
}
5050
CalibdEdxCorrection(std::string_view fileName) { loadFromFile(fileName); }
5151
#else
52-
CalibdEdxCorrection() CON_DEFAULT;
52+
CalibdEdxCorrection() = default;
5353
#endif
54-
~CalibdEdxCorrection() CON_DEFAULT;
54+
~CalibdEdxCorrection() = default;
5555

5656
GPUd() float getCorrection(const StackID& stack, ChargeType charge, float tgl = 0, float snp = 0) const
5757
{

DataFormats/Detectors/TPC/include/DataFormatsTPC/ClusterNative.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ struct ClusterNative {
7676
GPUd() static float unpackPad(uint16_t pad) { return float(pad) * (1.f / scalePadPacked); }
7777
GPUd() static float unpackTime(uint32_t time) { return float(time) * (1.f / scaleTimePacked); }
7878

79-
GPUdDefault() ClusterNative() CON_DEFAULT;
79+
GPUdDefault() ClusterNative() = default;
8080
GPUd() ClusterNative(uint32_t time, uint8_t flags, uint16_t pad, uint8_t sigmaTime, uint8_t sigmaPad, uint16_t qmax, uint16_t qtot) : padPacked(pad), sigmaTimePacked(sigmaTime), sigmaPadPacked(sigmaPad), qMax(qmax), qTot(qtot)
8181
{
8282
setTimePackedFlags(time, flags);

DataFormats/Detectors/TPC/include/DataFormatsTPC/CompressedClusters.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,8 @@ struct CompressedClustersOffsets : public CompressedClustersPtrs_x<size_t, size_
7777
struct CompressedClustersFlat;
7878

7979
struct CompressedClusters : public CompressedClustersCounters, public CompressedClustersPtrs { // TODO: Need a const version of this, currently the constructor allows to create a non-const version from const CompressedClustersFlat, which should not be allowed
80-
CompressedClusters() CON_DEFAULT;
81-
~CompressedClusters() CON_DEFAULT;
80+
CompressedClusters() = default;
81+
~CompressedClusters() = default;
8282
CompressedClusters(const CompressedClustersFlat& c);
8383

8484
void dump();
@@ -87,7 +87,7 @@ struct CompressedClusters : public CompressedClustersCounters, public Compressed
8787
};
8888

8989
struct CompressedClustersROOT : public CompressedClusters {
90-
CompressedClustersROOT() CON_DEFAULT;
90+
CompressedClustersROOT() = default;
9191
CompressedClustersROOT(const CompressedClustersFlat& v) : CompressedClusters(v) {}
9292
CompressedClustersROOT(const CompressedClusters& v) : CompressedClusters(v) {}
9393
// flatbuffer used for streaming
@@ -99,7 +99,7 @@ struct CompressedClustersROOT : public CompressedClusters {
9999

100100
struct CompressedClustersFlat : private CompressedClustersCounters, private CompressedClustersOffsets {
101101
friend struct CompressedClusters; // We don't want anyone to access the members directly, should only be used to construct a CompressedClusters struct
102-
CompressedClustersFlat() CON_DELETE; // Must not be constructed
102+
CompressedClustersFlat() = delete; // Must not be constructed
103103
size_t totalDataSize = 0; // Total data size of header + content
104104
const CompressedClusters* ptrForward = nullptr; // Must be 0 if this object is really flat, or can be a ptr to a CompressedClusters struct (abusing the flat structure to forward a ptr to the e.g. root version)
105105

DataFormats/Detectors/TPC/include/DataFormatsTPC/Digit.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ class Digit : public DigitBase
3636
{
3737
public:
3838
/// Default constructor
39-
GPUdDefault() Digit() CON_DEFAULT;
39+
GPUdDefault() Digit() = default;
4040

4141
/// Constructor, initializing values for position, charge, time and common mode
4242
/// \param cru CRU of the Digit
@@ -46,7 +46,7 @@ class Digit : public DigitBase
4646
GPUdi() Digit(int cru, float charge, int row, int pad, int time);
4747

4848
/// Destructor
49-
GPUdDefault() ~Digit() CON_DEFAULT;
49+
GPUdDefault() ~Digit() = default;
5050

5151
/// Get the accumulated charged of the Digit in ADC counts.
5252
/// The conversion is such that the decimals are simply stripped

DataFormats/Detectors/TPC/include/DataFormatsTPC/PIDResponse.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,10 @@ class PIDResponse
3939
{
4040
public:
4141
/// default constructor
42-
PIDResponse() CON_DEFAULT;
42+
PIDResponse() = default;
4343

4444
/// default destructor
45-
~PIDResponse() CON_DEFAULT;
45+
~PIDResponse() = default;
4646

4747
/// setters
4848
GPUd() void setBetheBlochParams(const float betheBlochParams[5]);

DataFormats/common/include/CommonDataFormat/TimeStamp.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ template <typename T>
2525
class TimeStamp
2626
{
2727
public:
28-
GPUhdDefault() TimeStamp() CON_DEFAULT;
29-
GPUhdDefault() ~TimeStamp() CON_DEFAULT;
28+
GPUhdDefault() TimeStamp() = default;
29+
GPUhdDefault() ~TimeStamp() = default;
3030
GPUdi() TimeStamp(T time) { mTimeStamp = time; }
3131
GPUhdi() T getTimeStamp() const { return mTimeStamp; }
3232
GPUdi() void setTimeStamp(T t) { mTimeStamp = t; }

Detectors/Base/include/DetectorsBase/MatCell.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ struct MatCell {
3131
float meanX2X0; ///< fraction of radiaton lenght
3232

3333
GPUd() MatCell() : meanRho(0.f), meanX2X0(0.f) {}
34-
GPUdDefault() MatCell(const MatCell& src) CON_DEFAULT;
34+
GPUdDefault() MatCell(const MatCell& src) = default;
3535

3636
GPUd() void set(const MatCell& c)
3737
{
@@ -55,7 +55,7 @@ struct MatBudget : MatCell {
5555
float length; ///< length in material
5656

5757
GPUd() MatBudget() : length(0.f) {}
58-
GPUdDefault() MatBudget(const MatBudget& src) CON_DEFAULT;
58+
GPUdDefault() MatBudget(const MatBudget& src) = default;
5959

6060
GPUd() void scale(float scale)
6161
{

Detectors/Base/include/DetectorsBase/MatLayerCyl.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,8 @@ class MatLayerCyl : public o2::gpu::FlatObject
5656

5757
#ifndef GPUCA_GPUCODE
5858
MatLayerCyl();
59-
MatLayerCyl(const MatLayerCyl& src) CON_DELETE;
60-
~MatLayerCyl() CON_DEFAULT;
59+
MatLayerCyl(const MatLayerCyl& src) = delete;
60+
~MatLayerCyl() = default;
6161
#endif
6262

6363
#ifndef GPUCA_ALIGPUCODE // this part is unvisible on GPU version

Detectors/Base/include/DetectorsBase/MatLayerCylSet.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,9 @@ class MatLayerCylSet : public o2::gpu::FlatObject
5252

5353
public:
5454
#ifndef GPUCA_GPUCODE
55-
MatLayerCylSet() CON_DEFAULT;
56-
~MatLayerCylSet() CON_DEFAULT;
57-
MatLayerCylSet(const MatLayerCylSet& src) CON_DELETE;
55+
MatLayerCylSet() = default;
56+
~MatLayerCylSet() = default;
57+
MatLayerCylSet(const MatLayerCylSet& src) = delete;
5858
#endif
5959

6060
GPUd() const MatLayerCylSetLayout* get() const { return reinterpret_cast<const MatLayerCylSetLayout*>(mFlatBufferPtr); }

Detectors/Base/include/DetectorsBase/Ray.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ class Ray
4949
GPUd() Ray() : mP{0.f}, mD{0.f}, mDistXY2(0.f), mDistXY2i(0.f), mDistXYZ(0.f), mXDxPlusYDy(0.f), mXDxPlusYDyRed(0.f), mXDxPlusYDy2(0.f), mR02(0.f), mR12(0.f)
5050
{
5151
}
52-
GPUdDefault() ~Ray() CON_DEFAULT;
52+
GPUdDefault() ~Ray() = default;
5353

5454
#ifndef GPUCA_ALIGPUCODE // this part is unvisible on GPU version
5555
Ray(const math_utils::Point3D<float> point0, const math_utils::Point3D<float> point1);

0 commit comments

Comments
 (0)