Logo ROOT  
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 91 of file RAxis.hxx.

Public Member Functions

 const_iterator ()=default
 
 const_iterator (int cursor) noexcept
 Initialize a const_iterator with its position. More...
 
const 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
 
const_iteratoroperator-- () noexcept
 –i More...
 
const_iterator operator-- (int) noexcept
 
const_iteratoroperator-= (int d) noexcept
 
int operator-> () const noexcept
 

Private Attributes

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

Friends

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...
 
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 99 of file RAxis.hxx.

Member Function Documentation

◆ operator*()

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

Definition at line 164 of file RAxis.hxx.

◆ operator+()

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

Definition at line 148 of file RAxis.hxx.

◆ operator++() [1/2]

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

++i

Definition at line 102 of file RAxis.hxx.

◆ operator++() [2/2]

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

i++

Definition at line 118 of file RAxis.hxx.

◆ operator+=()

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

Definition at line 134 of file RAxis.hxx.

◆ operator-()

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

Definition at line 156 of file RAxis.hxx.

◆ operator--() [1/2]

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

–i

Definition at line 110 of file RAxis.hxx.

◆ operator--() [2/2]

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

Definition at line 126 of file RAxis.hxx.

◆ operator-=()

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

Definition at line 141 of file RAxis.hxx.

◆ operator->()

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

Definition at line 167 of file RAxis.hxx.

Friends And Related Function Documentation

◆ operator!=

i != j

Definition at line 287 of file RAxis.hxx.

◆ operator<

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

i < j

Definition at line 257 of file RAxis.hxx.

◆ operator<=

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

i <= j

Definition at line 269 of file RAxis.hxx.

◆ operator==

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

i == j

Definition at line 281 of file RAxis.hxx.

◆ operator>

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

i > j

Definition at line 263 of file RAxis.hxx.

◆ operator>=

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

i >= j

Definition at line 275 of file RAxis.hxx.

Member Data Documentation

◆ fCursor

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

Current iteration position.

Definition at line 93 of file RAxis.hxx.


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