Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
ROOT::Experimental::RBinIndexRange Class Referencefinal

A range of bin indices \([fBegin, fEnd)\).

The interface allows convenient iteration over RBinIndex. If included, RBinIndex::Underflow() is encountered before the normal bins and RBinIndex::Overflow() is the last value.

for (auto index : axis.GetNormalRange(2, 5)) {
// Will iterate over [2, 3, 4]
}
for (auto index : axis.GetFullRange()) {
// Will iterate over all bins, starting with the underflow and ending with the overflow bin
}
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t index
A regular axis with equidistant bins in the interval .
Warning
This is part of the ROOT 7 prototype! It will change without notice. It might trigger earthquakes. Feedback is welcome!

Definition at line 42 of file RBinIndexRange.hxx.

Classes

class  Iterator
 Iterator over RBinIndex. More...
 

Public Member Functions

 RBinIndexRange ()=default
 Construct an invalid bin index range.
 
Iterator begin () const
 
Iterator end () const
 
RBinIndex GetBegin () const
 
RBinIndex GetEnd () const
 

Private Attributes

RBinIndex fBegin
 The begin of the range (inclusive)
 
RBinIndex fEnd
 The end of the range (exclusive)
 
std::size_t fNNormalBins = 0
 The number of normal bins, after which iteration advances to RBinIndex::Overflow()
 

Friends

RBinIndexRange Internal::CreateBinIndexRange (RBinIndex, RBinIndex, std::size_t)
 
bool operator!= (const RBinIndexRange &lhs, const RBinIndexRange &rhs)
 
bool operator== (const RBinIndexRange &lhs, const RBinIndexRange &rhs)
 

#include <ROOT/RBinIndexRange.hxx>

Constructor & Destructor Documentation

◆ RBinIndexRange()

ROOT::Experimental::RBinIndexRange::RBinIndexRange ( )
default

Construct an invalid bin index range.

Member Function Documentation

◆ begin()

Iterator ROOT::Experimental::RBinIndexRange::begin ( ) const
inline

Definition at line 118 of file RBinIndexRange.hxx.

◆ end()

Iterator ROOT::Experimental::RBinIndexRange::end ( ) const
inline

Definition at line 119 of file RBinIndexRange.hxx.

◆ GetBegin()

RBinIndex ROOT::Experimental::RBinIndexRange::GetBegin ( ) const
inline

Definition at line 56 of file RBinIndexRange.hxx.

◆ GetEnd()

RBinIndex ROOT::Experimental::RBinIndexRange::GetEnd ( ) const
inline

Definition at line 57 of file RBinIndexRange.hxx.

Friends And Related Symbol Documentation

◆ Internal::CreateBinIndexRange

◆ operator!=

Definition at line 65 of file RBinIndexRange.hxx.

◆ operator==

bool operator== ( const RBinIndexRange & lhs,
const RBinIndexRange & rhs )
friend

Definition at line 60 of file RBinIndexRange.hxx.

Member Data Documentation

◆ fBegin

RBinIndex ROOT::Experimental::RBinIndexRange::fBegin
private

The begin of the range (inclusive)

Definition at line 46 of file RBinIndexRange.hxx.

◆ fEnd

RBinIndex ROOT::Experimental::RBinIndexRange::fEnd
private

The end of the range (exclusive)

Definition at line 48 of file RBinIndexRange.hxx.

◆ fNNormalBins

std::size_t ROOT::Experimental::RBinIndexRange::fNNormalBins = 0
private

The number of normal bins, after which iteration advances to RBinIndex::Overflow()

Definition at line 50 of file RBinIndexRange.hxx.

Libraries for ROOT::Experimental::RBinIndexRange:

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