Project
Loading...
Searching...
No Matches
o2::rans::HistogramView< Hist_IT > Class Template Reference

#include <HistogramView.h>

Public Types

using size_type = size_t
 
using value_type = typename std::iterator_traits< Hist_IT >::value_type
 
using reference = value_type &
 
using const_reference = const value_type &
 
using pointer = value_type *
 
using const_pointer = const value_type *
 
using difference_type = std::ptrdiff_t
 
using iterator = Hist_IT
 
using reverse_iterator = std::reverse_iterator< iterator >
 

Public Member Functions

 HistogramView ()=default
 
 HistogramView (const HistogramView &)=default
 
 HistogramView (HistogramView &&)=default
 
HistogramViewoperator= (const HistogramView &)=default
 
HistogramViewoperator= (HistogramView &&)=default
 
 ~HistogramView ()=default
 
 HistogramView (iterator begin, iterator end, difference_type offset=0)
 
size_t size () const
 
bool empty () const
 
difference_type getOffset () const noexcept
 
difference_type getMin () const noexcept
 
difference_type getMax () const
 
iterator begin () const
 
iterator end () const
 
reverse_iterator rbegin () const
 
reverse_iterator rend () const
 
const value_typeoperator[] (difference_type idx) const
 
const_pointer data () const
 

Friends

std::ostream & operator<< (std::ostream &os, const HistogramView &view)
 

Detailed Description

template<typename Hist_IT>
class o2::rans::HistogramView< Hist_IT >

Definition at line 33 of file HistogramView.h.

Member Typedef Documentation

◆ const_pointer

template<typename Hist_IT >
using o2::rans::HistogramView< Hist_IT >::const_pointer = const value_type*

Definition at line 41 of file HistogramView.h.

◆ const_reference

template<typename Hist_IT >
using o2::rans::HistogramView< Hist_IT >::const_reference = const value_type&

Definition at line 39 of file HistogramView.h.

◆ difference_type

template<typename Hist_IT >
using o2::rans::HistogramView< Hist_IT >::difference_type = std::ptrdiff_t

Definition at line 42 of file HistogramView.h.

◆ iterator

template<typename Hist_IT >
using o2::rans::HistogramView< Hist_IT >::iterator = Hist_IT

Definition at line 43 of file HistogramView.h.

◆ pointer

template<typename Hist_IT >
using o2::rans::HistogramView< Hist_IT >::pointer = value_type*

Definition at line 40 of file HistogramView.h.

◆ reference

template<typename Hist_IT >
using o2::rans::HistogramView< Hist_IT >::reference = value_type&

Definition at line 38 of file HistogramView.h.

◆ reverse_iterator

template<typename Hist_IT >
using o2::rans::HistogramView< Hist_IT >::reverse_iterator = std::reverse_iterator<iterator>

Definition at line 44 of file HistogramView.h.

◆ size_type

template<typename Hist_IT >
using o2::rans::HistogramView< Hist_IT >::size_type = size_t

Definition at line 36 of file HistogramView.h.

◆ value_type

template<typename Hist_IT >
using o2::rans::HistogramView< Hist_IT >::value_type = typename std::iterator_traits<Hist_IT>::value_type

Definition at line 37 of file HistogramView.h.

Constructor & Destructor Documentation

◆ HistogramView() [1/4]

template<typename Hist_IT >
o2::rans::HistogramView< Hist_IT >::HistogramView ( )
default

◆ HistogramView() [2/4]

template<typename Hist_IT >
o2::rans::HistogramView< Hist_IT >::HistogramView ( const HistogramView< Hist_IT > &  )
default

◆ HistogramView() [3/4]

template<typename Hist_IT >
o2::rans::HistogramView< Hist_IT >::HistogramView ( HistogramView< Hist_IT > &&  )
default

◆ ~HistogramView()

template<typename Hist_IT >
o2::rans::HistogramView< Hist_IT >::~HistogramView ( )
default

◆ HistogramView() [4/4]

template<typename Hist_IT >
o2::rans::HistogramView< Hist_IT >::HistogramView ( iterator  begin,
iterator  end,
difference_type  offset = 0 
)
inline

Definition at line 53 of file HistogramView.h.

Member Function Documentation

◆ begin()

template<typename Hist_IT >
iterator o2::rans::HistogramView< Hist_IT >::begin ( ) const
inline

Definition at line 65 of file HistogramView.h.

◆ data()

template<typename Hist_IT >
const_pointer o2::rans::HistogramView< Hist_IT >::data ( ) const
inline

Definition at line 88 of file HistogramView.h.

◆ empty()

template<typename Hist_IT >
bool o2::rans::HistogramView< Hist_IT >::empty ( ) const
inline

Definition at line 57 of file HistogramView.h.

◆ end()

template<typename Hist_IT >
iterator o2::rans::HistogramView< Hist_IT >::end ( ) const
inline

Definition at line 67 of file HistogramView.h.

◆ getMax()

template<typename Hist_IT >
difference_type o2::rans::HistogramView< Hist_IT >::getMax ( ) const
inline

Definition at line 63 of file HistogramView.h.

◆ getMin()

template<typename Hist_IT >
difference_type o2::rans::HistogramView< Hist_IT >::getMin ( ) const
inlinenoexcept

Definition at line 61 of file HistogramView.h.

◆ getOffset()

template<typename Hist_IT >
difference_type o2::rans::HistogramView< Hist_IT >::getOffset ( ) const
inlinenoexcept

Definition at line 59 of file HistogramView.h.

◆ operator=() [1/2]

template<typename Hist_IT >
HistogramView & o2::rans::HistogramView< Hist_IT >::operator= ( const HistogramView< Hist_IT > &  )
default

◆ operator=() [2/2]

template<typename Hist_IT >
HistogramView & o2::rans::HistogramView< Hist_IT >::operator= ( HistogramView< Hist_IT > &&  )
default

◆ operator[]()

template<typename Hist_IT >
const value_type & o2::rans::HistogramView< Hist_IT >::operator[] ( difference_type  idx) const
inline

Definition at line 79 of file HistogramView.h.

◆ rbegin()

template<typename Hist_IT >
reverse_iterator o2::rans::HistogramView< Hist_IT >::rbegin ( ) const
inline

Definition at line 69 of file HistogramView.h.

◆ rend()

template<typename Hist_IT >
reverse_iterator o2::rans::HistogramView< Hist_IT >::rend ( ) const
inline

Definition at line 71 of file HistogramView.h.

◆ size()

template<typename Hist_IT >
size_t o2::rans::HistogramView< Hist_IT >::size ( ) const
inline

Definition at line 55 of file HistogramView.h.

Friends And Related Symbol Documentation

◆ operator<<

template<typename Hist_IT >
std::ostream & operator<< ( std::ostream &  os,
const HistogramView< Hist_IT > &  view 
)
friend

Definition at line 73 of file HistogramView.h.


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