Logo ROOT   master
Reference Guide
ROOT::Experimental::RAxisBase::const_iterator Class Reference


Random const_iterator through bins.

Represents the bin index, not a bin content: the axis has no notion of any content.

Definition at line 126 of file RAxis.hxx.

Public Member Functions

 const_iterator ()=default
 
 const_iterator (int cursor) noexcept
 Initialize a const_iterator with its position. More...
 
int operator* () const noexcept
 
const_iterator operator+ (int d) noexcept
 
const_iteratoroperator++ () noexcept
 ++i More...
 
const_iterator operator++ (int) noexcept
 i++ More...
 
const_iteratoroperator+= (int d) noexcept
 
const_iterator operator- (int d) noexcept
 
int operator- (const const_iterator &j) noexcept
 
const_iteratoroperator-- () noexcept
 –i More...
 
const_iterator operator-- (int) noexcept
 
const_iteratoroperator-= (int d) noexcept
 
const intoperator-> () const noexcept
 
int operator[] (int d) noexcept
 

Private Attributes

int fCursor = 0
 Current iteration position. More...
 

Friends

bool operator!= (const_iterator lhs, const_iterator rhs) noexcept
 i != j More...
 
const_iterator operator+ (int d, const_iterator rhs) noexcept
 2 + i More...
 
bool operator< (const_iterator lhs, const_iterator rhs) noexcept
 i < j More...
 
bool operator<= (const_iterator lhs, const_iterator rhs) noexcept
 i <= j More...
 
bool operator== (const_iterator lhs, const_iterator rhs) noexcept
 i == j More...
 
bool operator> (const_iterator lhs, const_iterator rhs) noexcept
 i > j More...
 
bool operator>= (const_iterator lhs, const_iterator rhs) noexcept
 i >= j More...
 

#include <ROOT/RAxis.hxx>

Inheritance diagram for ROOT::Experimental::RAxisBase::const_iterator:
[legend]

Constructor & Destructor Documentation

◆ const_iterator() [1/2]

ROOT::Experimental::RAxisBase::const_iterator::const_iterator ( )
default

◆ const_iterator() [2/2]

ROOT::Experimental::RAxisBase::const_iterator::const_iterator ( int  cursor)
inlineexplicitnoexcept

Initialize a const_iterator with its position.

Definition at line 134 of file RAxis.hxx.

Member Function Documentation

◆ operator*()

int ROOT::Experimental::RAxisBase::const_iterator::operator* ( ) const
inlinenoexcept

Definition at line 212 of file RAxis.hxx.

◆ operator+()

const_iterator ROOT::Experimental::RAxisBase::const_iterator::operator+ ( int  d)
inlinenoexcept

Definition at line 183 of file RAxis.hxx.

◆ operator++() [1/2]

const_iterator& ROOT::Experimental::RAxisBase::const_iterator::operator++ ( )
inlinenoexcept

++i

Definition at line 137 of file RAxis.hxx.

◆ operator++() [2/2]

const_iterator ROOT::Experimental::RAxisBase::const_iterator::operator++ ( int  )
inlinenoexcept

i++

Definition at line 153 of file RAxis.hxx.

◆ operator+=()

const_iterator& ROOT::Experimental::RAxisBase::const_iterator::operator+= ( int  d)
inlinenoexcept

Definition at line 169 of file RAxis.hxx.

◆ operator-() [1/2]

const_iterator ROOT::Experimental::RAxisBase::const_iterator::operator- ( int  d)
inlinenoexcept

Definition at line 192 of file RAxis.hxx.

◆ operator-() [2/2]

int ROOT::Experimental::RAxisBase::const_iterator::operator- ( const const_iterator j)
inlinenoexcept

Definition at line 200 of file RAxis.hxx.

◆ operator--() [1/2]

const_iterator& ROOT::Experimental::RAxisBase::const_iterator::operator-- ( )
inlinenoexcept

–i

Definition at line 145 of file RAxis.hxx.

◆ operator--() [2/2]

const_iterator ROOT::Experimental::RAxisBase::const_iterator::operator-- ( int  )
inlinenoexcept

Definition at line 161 of file RAxis.hxx.

◆ operator-=()

const_iterator& ROOT::Experimental::RAxisBase::const_iterator::operator-= ( int  d)
inlinenoexcept

Definition at line 176 of file RAxis.hxx.

◆ operator->()

const int* ROOT::Experimental::RAxisBase::const_iterator::operator-> ( ) const
inlinenoexcept

Definition at line 215 of file RAxis.hxx.

◆ operator[]()

int ROOT::Experimental::RAxisBase::const_iterator::operator[] ( int  d)
inlinenoexcept

Definition at line 206 of file RAxis.hxx.

Friends And Related Function Documentation

◆ operator!=

i != j

Definition at line 372 of file RAxis.hxx.

◆ operator+

const_iterator operator+ ( int  d,
RAxisBase::const_iterator  rhs 
)
friend

2 + i

Definition at line 336 of file RAxis.hxx.

◆ operator<

bool operator< ( RAxisBase::const_iterator  lhs,
RAxisBase::const_iterator  rhs 
)
friend

i < j

Definition at line 342 of file RAxis.hxx.

◆ operator<=

bool operator<= ( RAxisBase::const_iterator  lhs,
RAxisBase::const_iterator  rhs 
)
friend

i <= j

Definition at line 354 of file RAxis.hxx.

◆ operator==

bool operator== ( RAxisBase::const_iterator  lhs,
RAxisBase::const_iterator  rhs 
)
friend

i == j

Definition at line 366 of file RAxis.hxx.

◆ operator>

bool operator> ( RAxisBase::const_iterator  lhs,
RAxisBase::const_iterator  rhs 
)
friend

i > j

Definition at line 348 of file RAxis.hxx.

◆ operator>=

bool operator>= ( RAxisBase::const_iterator  lhs,
RAxisBase::const_iterator  rhs 
)
friend

i >= j

Definition at line 360 of file RAxis.hxx.

Member Data Documentation

◆ fCursor

int ROOT::Experimental::RAxisBase::const_iterator::fCursor = 0
private

Current iteration position.

Definition at line 128 of file RAxis.hxx.


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