Inviwo  0.9.10.1
Inviwo documentation
inviwo::discretedata::ChannelIterator< VecNT, T, N > Struct Template Reference

#include <channeliterator.h>

Public Member Functions

 ChannelIterator (ChannelGetter< T, N > *parent, ind index)
 
 ChannelIterator (const ChannelIterator< VecNT, T, N > &other)
 
ChannelIterator< VecNT, T, N > & operator= (const ChannelIterator< VecNT, T, N > &other)
 
VecNT & operator * ()
 
ChannelIterator< VecNT, T, N > & operator++ ()
 
ChannelIterator< VecNT, T, N > operator++ (int)
 
ChannelIterator< VecNT, T, N > & operator-- ()
 
ChannelIterator< VecNT, T, N > & operator-- (int)
 
ChannelIterator< VecNT, T, N > operator+ (ind offset)
 
ChannelIterator< VecNT, T, N > operator+= (ind offset)
 
ChannelIterator< VecNT, T, N > operator- (ind offset)
 
ChannelIterator< VecNT, T, N > operator-= (ind offset)
 
bool operator== (const ChannelIterator< VecNT, T, N > &other) const
 
bool operator!= (const ChannelIterator< VecNT, T, N > &other) const
 

Protected Attributes

std::unique_ptr< ChannelGetter< T, N > > getter
 
ind index
 

Detailed Description

template<typename VecNT, typename T, ind N>
struct inviwo::discretedata::ChannelIterator< VecNT, T, N >

Generalized iterator over any DataChannel. Handles data deletion if necessary - runtime check whether needed.

Member Data Documentation

◆ getter

template<typename VecNT , typename T , ind N>
std::unique_ptr<ChannelGetter<T, N> > inviwo::discretedata::ChannelIterator< VecNT, T, N >::getter
protected

Abstract struct handling the dereferencing

◆ index

template<typename VecNT , typename T , ind N>
ind inviwo::discretedata::ChannelIterator< VecNT, T, N >::index
protected

Index to the current element


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