Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
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 Types

using difference_type = int
 
using iterator_category = std::random_access_iterator_tag
 
using pointer = const int *
 
using reference = const int &
 
using value_type = int
 

Public Member Functions

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

Friends

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

#include <ROOT/RAxis.hxx>

Member Typedef Documentation

◆ difference_type

◆ iterator_category

Definition at line 130 of file RAxis.hxx.

◆ pointer

Definition at line 133 of file RAxis.hxx.

◆ reference

Definition at line 134 of file RAxis.hxx.

◆ value_type

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

Member Function Documentation

◆ operator*()

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

Definition at line 217 of file RAxis.hxx.

◆ operator+()

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

Definition at line 188 of file RAxis.hxx.

◆ operator++() [1/2]

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

++i

Definition at line 142 of file RAxis.hxx.

◆ operator++() [2/2]

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

i++

Definition at line 158 of file RAxis.hxx.

◆ operator+=()

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

Definition at line 174 of file RAxis.hxx.

◆ operator-() [1/2]

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

Definition at line 205 of file RAxis.hxx.

◆ operator-() [2/2]

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

Definition at line 197 of file RAxis.hxx.

◆ operator--() [1/2]

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

–i

Definition at line 150 of file RAxis.hxx.

◆ operator--() [2/2]

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

Definition at line 166 of file RAxis.hxx.

◆ operator-=()

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

Definition at line 181 of file RAxis.hxx.

◆ operator->()

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

Definition at line 220 of file RAxis.hxx.

◆ operator[]()

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

Definition at line 211 of file RAxis.hxx.

Friends And Related Symbol Documentation

◆ operator!=

i != j

Definition at line 377 of file RAxis.hxx.

◆ operator+

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

2 + i

Definition at line 341 of file RAxis.hxx.

◆ operator<

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

i < j

Definition at line 347 of file RAxis.hxx.

◆ operator<=

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

i <= j

Definition at line 359 of file RAxis.hxx.

◆ operator==

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

i == j

Definition at line 371 of file RAxis.hxx.

◆ operator>

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

i > j

Definition at line 353 of file RAxis.hxx.

◆ operator>=

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

i >= j

Definition at line 365 of file RAxis.hxx.

Member Data Documentation

◆ fCursor

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

Current iteration position.

Definition at line 127 of file RAxis.hxx.

  • hist/histv7/inc/ROOT/RAxis.hxx