Berkeley Nuclear Data Software
Public Types | Public Member Functions | Friends | List of all members
Histogram::iterator Struct Reference

iterator definition over the bins of the histogram More...

#include <FluxMatrixAna.h>

Public Types

using iterator_category = std::forward_iterator_tag
 
using value_type = Bin
 
using pointer = Bin *
 
using reference = Bin &
 

Public Member Functions

 iterator (std::vector< value_type > &a_entries, unsigned a_index=0)
 
reference operator* () const
 
pointer operator-> ()
 
iteratoroperator++ ()
 
iterator operator++ (int)
 

Friends

bool operator== (const iterator &a, const iterator &b)
 
bool operator!= (const iterator &a, const iterator &b)
 
bool operator< (const iterator &a, const iterator &b)
 
bool operator> (const iterator &a, const iterator &b)
 
bool operator>= (const iterator &a, const iterator &b)
 
bool operator<= (const iterator &a, const iterator &b)
 

Detailed Description

iterator definition over the bins of the histogram

Member Typedef Documentation

◆ iterator_category

using Histogram::iterator::iterator_category = std::forward_iterator_tag

◆ pointer

◆ reference

◆ value_type

Constructor & Destructor Documentation

◆ iterator()

Histogram::iterator::iterator ( std::vector< value_type > &  a_entries,
unsigned  a_index = 0 
)
inline

Member Function Documentation

◆ operator*()

reference Histogram::iterator::operator* ( ) const
inline

◆ operator++() [1/2]

iterator& Histogram::iterator::operator++ ( )
inline

◆ operator++() [2/2]

iterator Histogram::iterator::operator++ ( int  )
inline

◆ operator->()

pointer Histogram::iterator::operator-> ( )
inline

Friends And Related Function Documentation

◆ operator!=

bool operator!= ( const iterator a,
const iterator b 
)
friend

◆ operator<

bool operator< ( const iterator a,
const iterator b 
)
friend

◆ operator<=

bool operator<= ( const iterator a,
const iterator b 
)
friend

◆ operator==

bool operator== ( const iterator a,
const iterator b 
)
friend

◆ operator>

bool operator> ( const iterator a,
const iterator b 
)
friend

◆ operator>=

bool operator>= ( const iterator a,
const iterator b 
)
friend

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