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

Iterator over RBinIndex.

Definition at line 75 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

 RIterator ()=default
 RIterator (RBinIndex index, std::uint64_t nNormalBins)
RBinIndex operator* () const
RIteratoroperator++ ()
RIterator operator++ (int)
const RBinIndexoperator-> () const

Private Attributes

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

Friends

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

#include <ROOT/RBinIndexRange.hxx>

Member Typedef Documentation

◆ difference_type

Definition at line 82 of file RBinIndexRange.hxx.

◆ iterator_category

Definition at line 86 of file RBinIndexRange.hxx.

◆ pointer

◆ reference

◆ value_type

Constructor & Destructor Documentation

◆ RIterator() [1/2]

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

◆ RIterator() [2/2]

ROOT::Experimental::RBinIndexRange::RIterator::RIterator ( RBinIndex index,
std::uint64_t nNormalBins )
inline

Definition at line 89 of file RBinIndexRange.hxx.

Member Function Documentation

◆ operator*()

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

Definition at line 115 of file RBinIndexRange.hxx.

◆ operator++() [1/2]

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

Definition at line 91 of file RBinIndexRange.hxx.

◆ operator++() [2/2]

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

Definition at line 108 of file RBinIndexRange.hxx.

◆ operator->()

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

Definition at line 116 of file RBinIndexRange.hxx.

◆ operator!=

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

Definition at line 122 of file RBinIndexRange.hxx.

◆ operator==

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

Definition at line 118 of file RBinIndexRange.hxx.

Member Data Documentation

◆ fIndex

RBinIndex ROOT::Experimental::RBinIndexRange::RIterator::fIndex
private

The current bin index.

Definition at line 77 of file RBinIndexRange.hxx.

◆ fNNormalBins

std::uint64_t ROOT::Experimental::RBinIndexRange::RIterator::fNNormalBins = 0
private

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

Definition at line 79 of file RBinIndexRange.hxx.


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