Mantid
Loading...
Searching...
No Matches
Public Member Functions | Private Member Functions | Private Attributes | Friends | List of all members
Mantid::API::SpectrumInfoIterator< T > Class Template Reference

SpectrumInfoIterator. More...

#include <SpectrumInfoIterator.h>

Inheritance diagram for Mantid::API::SpectrumInfoIterator< T >:

Public Member Functions

 SpectrumInfoIterator (T &spectrumInfo, const size_t index)
 

Private Member Functions

void advance (int64_t delta)
 
void decrement ()
 
SpectrumInfoItem< T > & dereference () const
 
uint64_t distance_to (const SpectrumInfoIterator< T > &other) const
 
bool equal (const SpectrumInfoIterator< T > &other) const
 
size_t getIndex () const
 
void increment ()
 
void setIndex (const size_t index)
 

Private Attributes

SpectrumInfoItem< T > m_item
 

Friends

class boost::iterator_core_access
 

Detailed Description

template<typename T>
class Mantid::API::SpectrumInfoIterator< T >

SpectrumInfoIterator.

SpectrumInfoIterator allows users of the SpectrumInfo object access to data via an iterator. The iterator works as a slice view in that the index is incremented and all items accessible at that index are made available via the iterator.

Author
Bhuvan Bezawada, STFC
Date
2018

Definition at line 29 of file SpectrumInfoIterator.h.

Constructor & Destructor Documentation

◆ SpectrumInfoIterator()

template<typename T >
Mantid::API::SpectrumInfoIterator< T >::SpectrumInfoIterator ( T &  spectrumInfo,
const size_t  index 
)
inline

Definition at line 33 of file SpectrumInfoIterator.h.

Member Function Documentation

◆ advance()

template<typename T >
void Mantid::API::SpectrumInfoIterator< T >::advance ( int64_t  delta)
inlineprivate

◆ decrement()

template<typename T >
void Mantid::API::SpectrumInfoIterator< T >::decrement ( )
inlineprivate

◆ dereference()

template<typename T >
SpectrumInfoItem< T > & Mantid::API::SpectrumInfoIterator< T >::dereference ( ) const
inlineprivate

◆ distance_to()

template<typename T >
uint64_t Mantid::API::SpectrumInfoIterator< T >::distance_to ( const SpectrumInfoIterator< T > &  other) const
inlineprivate

◆ equal()

template<typename T >
bool Mantid::API::SpectrumInfoIterator< T >::equal ( const SpectrumInfoIterator< T > &  other) const
inlineprivate

◆ getIndex()

template<typename T >
size_t Mantid::API::SpectrumInfoIterator< T >::getIndex ( ) const
inlineprivate

◆ increment()

template<typename T >
void Mantid::API::SpectrumInfoIterator< T >::increment ( )
inlineprivate

◆ setIndex()

template<typename T >
void Mantid::API::SpectrumInfoIterator< T >::setIndex ( const size_t  index)
inlineprivate

Definition at line 63 of file SpectrumInfoIterator.h.

References index, and Mantid::API::SpectrumInfoIterator< T >::m_item.

Friends And Related Function Documentation

◆ boost::iterator_core_access

template<typename T >
friend class boost::iterator_core_access
friend

Definition at line 37 of file SpectrumInfoIterator.h.

Member Data Documentation

◆ m_item

template<typename T >
SpectrumInfoItem<T> Mantid::API::SpectrumInfoIterator< T >::m_item
mutableprivate

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