Logo ROOT  
Reference Guide
browser.cxx File Reference

Detailed Description

/*************************************************************************
* Copyright (C) 1995-2019, Rene Brun and Fons Rademakers. *
* All rights reserved. *
* *
* For the licensing terms see $ROOTSYS/LICENSE. *
* For the list of contributors see $ROOTSYS/README/CREDITS. *
*************************************************************************/
// macro must be here to let macro work on Windows
R__LOAD_LIBRARY(libROOTBrowserv7)
#include <ROOT/RBrowser.hxx>
using namespace ROOT::Experimental;
void browser()
{
// create browser
auto br = std::make_shared<RBrowser>();
// add to global list - avoid auto deletion
RDirectory::Heap().Add("browser", br);
}
Date
2019-05-29
Warning
This is part of the ROOT 7 prototype! It will change without notice. It might trigger earthquakes. Feedback is welcome!
Author
Bertrand Bellenot Bertr.nosp@m.and..nosp@m.Belle.nosp@m.not@.nosp@m.cern..nosp@m.ch

Definition in file browser.cxx.

ROOT::Experimental::RDirectory::Add
void Add(std::string_view name, const std::shared_ptr< T > &ptr)
Add an existing object (rather a shared_ptr to it) to the RDirectory.
Definition: RDirectory.hxx:184
RDirectory.hxx
ROOT::Experimental::RDirectory::Heap
static RDirectory & Heap()
Dedicated, process-wide RDirectory.
Definition: RFile.cxx:23
ROOT::Experimental
Definition: RDirectory.hxx:36
R__LOAD_LIBRARY
#define R__LOAD_LIBRARY(LIBRARY)
Definition: Rtypes.h:472