Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions tree/ntuple/inc/ROOT/RNTupleRange.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,9 @@ public:
// clang-format on
class RNTupleLocalRange {
private:
const ROOT::DescriptorId_t fClusterId;
const ROOT::NTupleSize_t fStart;
const ROOT::NTupleSize_t fEnd;
ROOT::DescriptorId_t fClusterId;
ROOT::NTupleSize_t fStart;
ROOT::NTupleSize_t fEnd;

public:
class RIterator {
Expand Down
15 changes: 13 additions & 2 deletions tree/ntuple/inc/ROOT/RNTupleView.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -347,9 +347,20 @@ private:

public:
RNTupleCollectionView(const RNTupleCollectionView &other) = delete;
RNTupleCollectionView(RNTupleCollectionView &&other) = default;
RNTupleCollectionView &operator=(const RNTupleCollectionView &other) = delete;
RNTupleCollectionView &operator=(RNTupleCollectionView &&other) = default;
RNTupleCollectionView(RNTupleCollectionView &&other)
: fSource(other.fSource), fField(std::move(other.fField)), fValue(fField.CreateValue())
{
}
RNTupleCollectionView &operator=(RNTupleCollectionView &&other)
{
if (this == &other)
return *this;
std::swap(fSource, other.fSource);
std::swap(fField, other.fField);
fValue = fField.CreateValue();
return *this;
}
~RNTupleCollectionView() = default;

ROOT::RNTupleLocalRange GetCollectionRange(ROOT::NTupleSize_t globalIndex)
Expand Down
Loading