Logo ROOT   6.08/07
Reference Guide
List of all members | Public Member Functions | Private Attributes | Friends | List of all members
ROOT::Experimental::TAxisBase::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 89 of file TAxis.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/TAxis.hxx>

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

Constructor & Destructor Documentation

◆ const_iterator() [1/2]

ROOT::Experimental::TAxisBase::const_iterator::const_iterator ( )
default

◆ const_iterator() [2/2]

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

Initialize a const_iterator with its position.

Definition at line 99 of file TAxis.hxx.

Member Function Documentation

◆ operator*()

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

Definition at line 156 of file TAxis.hxx.

◆ operator+()

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

Definition at line 142 of file TAxis.hxx.

◆ operator++() [1/2]

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

++i

Definition at line 102 of file TAxis.hxx.

◆ operator++() [2/2]

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

i++

Definition at line 116 of file TAxis.hxx.

◆ operator+=()

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

Definition at line 130 of file TAxis.hxx.

◆ operator-()

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

Definition at line 149 of file TAxis.hxx.

◆ operator--() [1/2]

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

–i

Definition at line 109 of file TAxis.hxx.

◆ operator--() [2/2]

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

Definition at line 123 of file TAxis.hxx.

◆ operator-=()

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

Definition at line 136 of file TAxis.hxx.

◆ operator->()

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

Definition at line 159 of file TAxis.hxx.

Friends And Related Function Documentation

◆ operator!=

i != j

Definition at line 295 of file TAxis.hxx.

◆ operator<

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

i < j

Definition at line 265 of file TAxis.hxx.

◆ operator<=

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

i <= j

Definition at line 277 of file TAxis.hxx.

◆ operator==

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

i == j

Definition at line 289 of file TAxis.hxx.

◆ operator>

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

i > j

Definition at line 271 of file TAxis.hxx.

◆ operator>=

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

i >= j

Definition at line 283 of file TAxis.hxx.

Member Data Documentation

◆ fCursor

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

Current iteration position.

Definition at line 93 of file TAxis.hxx.


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