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

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

Iterates over the bins of a RHist or RHistImpl.

Definition at line 97 of file RHistBinIter.hxx.

Public Types

using Ptr_t = RHistBinPtr< HISTIMPL >
 
using Ref_t = RHistBinRef< HISTIMPL >
 

Public Member Functions

 RHistBinIter (HISTIMPL &hist)
 Construct a RHistBinIter from a histogram. More...
 
 RHistBinIter (HISTIMPL &hist, size_t idx)
 Construct a RHistBinIter 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< RHistBinRef< HISTIMPL >, RHistBinPtr< 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< RHistBinRef< HISTIMPL >, RHistBinPtr< HISTIMPL > >
 

Private Attributes

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

Additional Inherited Members

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

#include <ROOT/RHistBinIter.hxx>

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

Member Typedef Documentation

◆ IndexIter_t

template<class HISTIMPL >
using ROOT::Experimental::Detail::RHistBinIter< HISTIMPL >::IndexIter_t = Internal::TIndexIter<RHistBinRef<HISTIMPL>, RHistBinPtr<HISTIMPL> >
private

Definition at line 103 of file RHistBinIter.hxx.

◆ Ptr_t

template<class HISTIMPL >
using ROOT::Experimental::Detail::RHistBinIter< HISTIMPL >::Ptr_t = RHistBinPtr<HISTIMPL>

Definition at line 100 of file RHistBinIter.hxx.

◆ Ref_t

template<class HISTIMPL >
using ROOT::Experimental::Detail::RHistBinIter< HISTIMPL >::Ref_t = RHistBinRef<HISTIMPL>

Definition at line 99 of file RHistBinIter.hxx.

Constructor & Destructor Documentation

◆ RHistBinIter() [1/2]

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

Construct a RHistBinIter from a histogram.

Definition at line 109 of file RHistBinIter.hxx.

◆ RHistBinIter() [2/2]

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

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

Definition at line 112 of file RHistBinIter.hxx.

Member Function Documentation

◆ operator*()

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

Definition at line 116 of file RHistBinIter.hxx.

◆ operator->()

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

Definition at line 118 of file RHistBinIter.hxx.

Member Data Documentation

◆ fHist

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

The histogram we iterate over.

Definition at line 105 of file RHistBinIter.hxx.

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

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