Skip to content

Commit ac55002

Browse files
generatedunixname537391475639613meta-codesync[bot]
authored andcommitted
fbcode/glean/rts/ownership.h
Reviewed By: malanka Differential Revision: D89169074 fbshipit-source-id: 9371e484d3ee1808535429373ca517ef16e50682
1 parent b9bdc3a commit ac55002

1 file changed

Lines changed: 18 additions & 3 deletions

File tree

glean/rts/ownership.h

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,12 @@ void serializeEliasFano(binary::Output& out, const OwnerSet& set);
3232
OwnerSet deserializeEliasFano(binary::Input& in);
3333

3434
struct OwnershipSetIterator {
35-
virtual ~OwnershipSetIterator() {}
35+
OwnershipSetIterator() = default;
36+
virtual ~OwnershipSetIterator() = default;
37+
OwnershipSetIterator(const OwnershipSetIterator&) = delete;
38+
OwnershipSetIterator& operator=(const OwnershipSetIterator&) = delete;
39+
OwnershipSetIterator(OwnershipSetIterator&&) = delete;
40+
OwnershipSetIterator& operator=(OwnershipSetIterator&&) = delete;
3641
virtual std::pair<size_t, size_t> sizes() const = 0;
3742
virtual folly::Optional<std::pair<UsetId, SetExpr<const OwnerSet*>>>
3843
get() = 0;
@@ -55,7 +60,12 @@ struct OwnershipStats {
5560
// Interface for reading ownership data.
5661
//
5762
struct Ownership {
58-
virtual ~Ownership() {}
63+
Ownership() = default;
64+
virtual ~Ownership() = default;
65+
Ownership(const Ownership&) = delete;
66+
Ownership& operator=(const Ownership&) = delete;
67+
Ownership(Ownership&&) = delete;
68+
Ownership& operator=(Ownership&&) = delete;
5969

6070
// Iterate through all the ownership expressions
6171
virtual std::unique_ptr<OwnershipSetIterator> getSetIterator() = 0;
@@ -114,7 +124,12 @@ struct OwnershipUnit {
114124
};
115125

116126
struct OwnershipUnitIterator {
117-
virtual ~OwnershipUnitIterator() {}
127+
OwnershipUnitIterator() = default;
128+
virtual ~OwnershipUnitIterator() = default;
129+
OwnershipUnitIterator(const OwnershipUnitIterator&) = delete;
130+
OwnershipUnitIterator& operator=(const OwnershipUnitIterator&) = delete;
131+
OwnershipUnitIterator(OwnershipUnitIterator&&) = delete;
132+
OwnershipUnitIterator& operator=(OwnershipUnitIterator&&) = delete;
118133

119134
// `OwnershipUnit`s are expected to be produced in strictly
120135
// ascending order of `unit`.

0 commit comments

Comments
 (0)