Logo ROOT   6.30.04
Reference Guide
 All Namespaces Files Pages
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 
19 ROOT::Experimental::REntry::~REntry()
20 {
21  for (auto idx : fManagedValues) {
22  fValues[idx].GetField()->DestroyValue(fValues[idx]);
23  }
24 }
25 
26 void ROOT::Experimental::REntry::AddValue(const Detail::RFieldValue& value)
27 {
28  fManagedValues.emplace_back(fValues.size());
29  fValues.push_back(value);
30 }
31 
32 void ROOT::Experimental::REntry::CaptureValue(const Detail::RFieldValue& value)
33 {
34  fValues.push_back(value);
35 }