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

Iterator over RBinIndex.

Definition at line 68 of file RBinIndexRange.hxx.

Public Types

using difference_type = std::ptrdiff_t
 
using iterator_category = std::input_iterator_tag
 
using pointer = const RBinIndex *
 
using reference = RBinIndex
 
using value_type = RBinIndex
 

Public Member Functions

 Iterator ()=default
 
 Iterator (RBinIndex index, std::size_t nNormalBins)
 
RBinIndex operator* () const
 
Iteratoroperator++ ()
 
Iterator operator++ (int)
 
const RBinIndexoperator-> () const
 

Private Attributes

RBinIndex fIndex
 The current bin index.
 
std::size_t fNNormalBins = 0
 The number of normal bins, after which iteration advances to RBinIndex::Overflow()
 

Friends

bool operator!= (const Iterator &lhs, const Iterator &rhs)
 
bool operator== (const Iterator &lhs, const Iterator &rhs)
 

#include <ROOT/RBinIndexRange.hxx>

Member Typedef Documentation

◆ difference_type

◆ iterator_category

Definition at line 79 of file RBinIndexRange.hxx.

◆ pointer

◆ reference

◆ value_type

Constructor & Destructor Documentation

◆ Iterator() [1/2]

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

◆ Iterator() [2/2]

ROOT::Experimental::RBinIndexRange::Iterator::Iterator ( RBinIndex index,
std::size_t nNormalBins )
inline

Definition at line 82 of file RBinIndexRange.hxx.

Member Function Documentation

◆ operator*()

RBinIndex ROOT::Experimental::RBinIndexRange::Iterator::operator* ( ) const
inline

Definition at line 108 of file RBinIndexRange.hxx.

◆ operator++() [1/2]

Iterator & ROOT::Experimental::RBinIndexRange::Iterator::operator++ ( )
inline

Definition at line 84 of file RBinIndexRange.hxx.

◆ operator++() [2/2]

Iterator ROOT::Experimental::RBinIndexRange::Iterator::operator++ ( int )
inline

Definition at line 101 of file RBinIndexRange.hxx.

◆ operator->()

const RBinIndex * ROOT::Experimental::RBinIndexRange::Iterator::operator-> ( ) const
inline

Definition at line 109 of file RBinIndexRange.hxx.

Friends And Related Symbol Documentation

◆ operator!=

bool operator!= ( const Iterator & lhs,
const Iterator & rhs )
friend

Definition at line 115 of file RBinIndexRange.hxx.

◆ operator==

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

Definition at line 111 of file RBinIndexRange.hxx.

Member Data Documentation

◆ fIndex

RBinIndex ROOT::Experimental::RBinIndexRange::Iterator::fIndex
private

The current bin index.

Definition at line 70 of file RBinIndexRange.hxx.

◆ fNNormalBins

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

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

Definition at line 72 of file RBinIndexRange.hxx.

Libraries for ROOT::Experimental::RBinIndexRange::Iterator:

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