Logo ROOT  
Reference Guide
Loading...
Searching...
No Matches
ROOT::CmdLine::RootObjTree Struct Reference

A representation of all objects involved in a rootls-style ROOT file listing.

This listing is used in command line tools like rootls, rootcp etc. and it comes from a shell glob-style syntax like:

file.root:dir/*

In this case, a RootObjTree that represents the above query will contain the TFile relative to file.root, all nodes "visited" by the glob expression in fNodes and links to them in fDirList and fLeafList. This is basically a filtered view of a ROOT file.

Example: assume you have a ROOT file with the following structure:

file.root --- a/ | — b | --- c — d

Then the RootObjTree representing the query file.root:* will contain:

fNodes: [a, b, c, d] fLeafList: [1, 2, 3] fDirList: [0]

Definition at line 78 of file RootObjTree.hxx.

Public Attributes

std::vector< NodeIdx_tfDirList
std::unique_ptr< TFilefFile
std::vector< NodeIdx_tfLeafList
std::vector< RootObjNodefNodes

#include </home/stephan/code/root-2/main/src/RootObjTree.hxx>

Member Data Documentation

◆ fDirList

std::vector<NodeIdx_t> ROOT::CmdLine::RootObjTree::fDirList

Definition at line 82 of file RootObjTree.hxx.

◆ fFile

std::unique_ptr<TFile> ROOT::CmdLine::RootObjTree::fFile

Definition at line 86 of file RootObjTree.hxx.

◆ fLeafList

std::vector<NodeIdx_t> ROOT::CmdLine::RootObjTree::fLeafList

Definition at line 84 of file RootObjTree.hxx.

◆ fNodes

std::vector<RootObjNode> ROOT::CmdLine::RootObjTree::fNodes

Definition at line 80 of file RootObjTree.hxx.

Collaboration diagram for ROOT::CmdLine::RootObjTree:
[legend]

The documentation for this struct was generated from the following file: