diff options
author | Henning Baldersheim <balder@yahoo-inc.com> | 2017-04-25 22:08:54 +0200 |
---|---|---|
committer | Henning Baldersheim <balder@yahoo-inc.com> | 2017-04-25 22:08:54 +0200 |
commit | 88618fdc97ab64eab9dc3de542029676a1eaee62 (patch) | |
tree | 641731b74e9cff2f6c82d32fc004aa88827cf050 /vdslib | |
parent | 98330bd7030626759102845a0467ed2c71f26c30 (diff) |
Add override in documentapi.
Diffstat (limited to 'vdslib')
-rw-r--r-- | vdslib/src/vespa/vdslib/bucketdistribution.cpp | 5 | ||||
-rw-r--r-- | vdslib/src/vespa/vdslib/bucketdistribution.h | 8 |
2 files changed, 11 insertions, 2 deletions
diff --git a/vdslib/src/vespa/vdslib/bucketdistribution.cpp b/vdslib/src/vespa/vdslib/bucketdistribution.cpp index a06402335c2..6e84b3954b9 100644 --- a/vdslib/src/vespa/vdslib/bucketdistribution.cpp +++ b/vdslib/src/vespa/vdslib/bucketdistribution.cpp @@ -17,6 +17,11 @@ BucketDistribution::BucketDistribution(uint32_t numColumns, uint32_t numBucketBi setNumColumns(numColumns); } +BucketDistribution::BucketDistribution(const BucketDistribution &) = default; +BucketDistribution & BucketDistribution::operator = (const BucketDistribution &) = default; + +BucketDistribution::~BucketDistribution() {} + void BucketDistribution::getBucketCount(uint32_t numColumns, uint32_t numBucketBits, std::vector<uint32_t> &ret) { diff --git a/vdslib/src/vespa/vdslib/bucketdistribution.h b/vdslib/src/vespa/vdslib/bucketdistribution.h index b7064a43ee3..14572728d80 100644 --- a/vdslib/src/vespa/vdslib/bucketdistribution.h +++ b/vdslib/src/vespa/vdslib/bucketdistribution.h @@ -1,9 +1,9 @@ // Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. #pragma once -#include <vector> #include <vespa/document/bucket/bucketid.h> #include <vespa/vespalib/util/sync.h> +#include <vector> namespace vdslib { @@ -21,6 +21,11 @@ public: * @param numBucketBits The number of bits to use for bucket id. */ BucketDistribution(uint32_t numColumns, uint32_t numBucketBits); + BucketDistribution(const BucketDistribution &); + BucketDistribution & operator = (const BucketDistribution &); + BucketDistribution(BucketDistribution &&) = default; + BucketDistribution & operator = (BucketDistribution &&) = default; + ~BucketDistribution(); /** * Returns the number of buckets that the given number of bucket bits will allow. @@ -116,4 +121,3 @@ private: }; } - |