Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
REntry.cxx
Go to the documentation of this file.
1/// \file REntry.cxx
2/// \ingroup NTuple ROOT7
3/// \author Jakob Blomer <jblomer@cern.ch>
4/// \date 2018-10-15
5/// \warning This is part of the ROOT 7 prototype! It will change without notice. It might trigger earthquakes. Feedback
6/// is welcome!
7
8/*************************************************************************
9 * Copyright (C) 1995-2019, Rene Brun and Fons Rademakers. *
10 * All rights reserved. *
11 * *
12 * For the licensing terms see $ROOTSYS/LICENSE. *
13 * For the list of contributors see $ROOTSYS/README/CREDITS. *
14 *************************************************************************/
15
16#include <ROOT/REntry.hxx>
17#include <ROOT/RFieldValue.hxx>
18
20{
21 for (auto idx : fManagedValues) {
22 fValues[idx].GetField()->DestroyValue(fValues[idx]);
23 }
24}
25
27{
28 fManagedValues.emplace_back(fValues.size());
29 fValues.push_back(value);
30}
31
33{
34 fValues.push_back(value);
35}
std::vector< std::size_t > fManagedValues
Points into fValues and indicates the values that are owned by the entry and need to be destructed.
Definition REntry.hxx:48
void AddValue(const Detail::RFieldValue &value)
Adds a value whose storage is managed by the entry.
Definition REntry.cxx:26
void CaptureValue(const Detail::RFieldValue &value)
Adds a value whose storage is not managed by the entry.
Definition REntry.cxx:32
std::vector< Detail::RFieldValue > fValues
Definition REntry.hxx:43