ROOT 6.12/07 Reference Guide |
When using TDataFrame to read data from a ROOT file, users can specify that the type of a branch is TArrayBranch<T> to indicate the branch is a c-style array, an STL array or any other type that can/must be accessed through a TTreeReaderArray<T> (as opposed to a TTreeReaderValue<T>).
Column values of type TArrayBranch perform no copy of the underlying array data and offer a minimal array-like interface to access the array elements: either via square brackets, or with C++11 range-based for loops.
Definition at line 26 of file TArrayBranch.hxx.
Public Types | |
using | const_iterator = typename TTreeReaderArray< T >::const_iterator |
using | iterator = typename TTreeReaderArray< T >::iterator |
using | value_type = T |
Public Member Functions | |
TArrayBranch () | |
TArrayBranch (TTreeReaderArray< T > &arr) | |
iterator | begin () |
const_iterator | begin () const |
iterator | end () |
const_iterator | end () const |
T * | GetData () |
const T & | operator[] (std::size_t n) const |
std::size_t | size () const |
Private Attributes | |
TTreeReaderArray< T > * | fReaderArray = nullptr |
Pointer to the TTreeReaderArray that actually owns the data. More... | |
#include <ROOT/TArrayBranch.hxx>
using ROOT::Experimental::TDF::TArrayBranch< T >::const_iterator = typename TTreeReaderArray<T>::const_iterator |
Definition at line 30 of file TArrayBranch.hxx.
using ROOT::Experimental::TDF::TArrayBranch< T >::iterator = typename TTreeReaderArray<T>::iterator |
Definition at line 29 of file TArrayBranch.hxx.
using ROOT::Experimental::TDF::TArrayBranch< T >::value_type = T |
Definition at line 31 of file TArrayBranch.hxx.
|
inline |
Definition at line 33 of file TArrayBranch.hxx.
|
inline |
Definition at line 34 of file TArrayBranch.hxx.
|
inline |
Definition at line 50 of file TArrayBranch.hxx.
|
inline |
Definition at line 52 of file TArrayBranch.hxx.
|
inline |
Definition at line 51 of file TArrayBranch.hxx.
|
inline |
Definition at line 53 of file TArrayBranch.hxx.
|
inline |
Definition at line 48 of file TArrayBranch.hxx.
|
inline |
Definition at line 45 of file TArrayBranch.hxx.
|
inline |
Definition at line 55 of file TArrayBranch.hxx.
|
private |
Pointer to the TTreeReaderArray that actually owns the data.
Definition at line 27 of file TArrayBranch.hxx.