Logo ROOT   6.12/07
Reference Guide
List of all members | Public Types | Public Member Functions | Private Types | Private Attributes | List of all members
ROOT::Experimental::Detail::THistBinIter< HISTIMPL > Class Template Reference

template<class HISTIMPL>
class ROOT::Experimental::Detail::THistBinIter< HISTIMPL >

Iterates over the bins of a THist or THistImpl.

Definition at line 97 of file THistBinIter.hxx.

Public Types

using Ptr_t = THistBinPtr< HISTIMPL >
 
using Ref_t = THistBinRef< HISTIMPL >
 

Public Member Functions

 THistBinIter (HISTIMPL &hist)
 Construct a THistBinIter from a histogram. More...
 
 THistBinIter (HISTIMPL &hist, size_t idx)
 Construct a THistBinIter from a histogram, setting the current index. More...
 
Value access
Ref_t operator* () const noexcept
 
Ptr_t operator-> () const noexcept
 
- Public Member Functions inherited from ROOT::Experimental::Internal::TIndexIter< THistBinRef< HISTIMPL >, THistBinPtr< HISTIMPL > >
 TIndexIter (size_t idx)
 
size_t GetIndex () const noexcept
 Get the current index value. More...
 
TIndexIteroperator++ () noexcept
 
TIndexIter operator++ (int) noexcept
 i++ More...
 
TIndexIteroperator-- () noexcept
 –i More...
 
TIndexIter operator-- (int) noexcept
 
TIndexIteroperator+= (int d) noexcept
 
TIndexIteroperator-= (int d) noexcept
 
TIndexIter operator+ (int d) noexcept
 
TIndexIter operator- (int d) noexcept
 

Private Types

using IndexIter_t = Internal::TIndexIter< THistBinRef< HISTIMPL >, THistBinPtr< HISTIMPL > >
 

Private Attributes

HISTIMPL & fHist
 The histogram we iterate over. More...
 

Additional Inherited Members

- Static Protected Attributes inherited from ROOT::Experimental::Internal::TIndexIter< THistBinRef< HISTIMPL >, THistBinPtr< HISTIMPL > >
static constexpr size_t fgEndIndex
 

#include <ROOT/THistBinIter.hxx>

Inheritance diagram for ROOT::Experimental::Detail::THistBinIter< HISTIMPL >:
[legend]

Member Typedef Documentation

◆ IndexIter_t

template<class HISTIMPL >
using ROOT::Experimental::Detail::THistBinIter< HISTIMPL >::IndexIter_t = Internal::TIndexIter<THistBinRef<HISTIMPL>, THistBinPtr<HISTIMPL> >
private

Definition at line 103 of file THistBinIter.hxx.

◆ Ptr_t

template<class HISTIMPL >
using ROOT::Experimental::Detail::THistBinIter< HISTIMPL >::Ptr_t = THistBinPtr<HISTIMPL>

Definition at line 100 of file THistBinIter.hxx.

◆ Ref_t

template<class HISTIMPL >
using ROOT::Experimental::Detail::THistBinIter< HISTIMPL >::Ref_t = THistBinRef<HISTIMPL>

Definition at line 99 of file THistBinIter.hxx.

Constructor & Destructor Documentation

◆ THistBinIter() [1/2]

template<class HISTIMPL >
ROOT::Experimental::Detail::THistBinIter< HISTIMPL >::THistBinIter ( HISTIMPL &  hist)
inline

Construct a THistBinIter from a histogram.

Definition at line 109 of file THistBinIter.hxx.

◆ THistBinIter() [2/2]

template<class HISTIMPL >
ROOT::Experimental::Detail::THistBinIter< HISTIMPL >::THistBinIter ( HISTIMPL &  hist,
size_t  idx 
)
inline

Construct a THistBinIter from a histogram, setting the current index.

Definition at line 112 of file THistBinIter.hxx.

Member Function Documentation

◆ operator*()

template<class HISTIMPL >
Ref_t ROOT::Experimental::Detail::THistBinIter< HISTIMPL >::operator* ( ) const
inlinenoexcept

Definition at line 116 of file THistBinIter.hxx.

◆ operator->()

template<class HISTIMPL >
Ptr_t ROOT::Experimental::Detail::THistBinIter< HISTIMPL >::operator-> ( ) const
inlinenoexcept

Definition at line 118 of file THistBinIter.hxx.

Member Data Documentation

◆ fHist

template<class HISTIMPL >
HISTIMPL& ROOT::Experimental::Detail::THistBinIter< HISTIMPL >::fHist
private

The histogram we iterate over.

Definition at line 105 of file THistBinIter.hxx.

Libraries for ROOT::Experimental::Detail::THistBinIter< HISTIMPL >:
[legend]

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