Tomographer  v5.3
Tomographer C++ Framework Documentation
Tomographer::MAT::IndexListIterator< IsRowMajor_, IntType_ > Class Template Reference

Utility to iterate over a multidim array by increasing linear index. More...

#include <tomographer/tools/ezmatio.h>

Public Types

typedef IntType_ IntType
 
typedef std::vector< IntType > VectorType
 

Public Member Functions

 IndexListIterator (const std::vector< IntType > &dims)
 
const std::vector< IntType > & index () const
 
IntType linearIndex () const
 
IntType numel () const
 
template<ENABLED_IF( IsRowMajor) >
IntType increment ()
 
template<ENABLED_IF( !IsRowMajor) >
IntType increment ()
 
IntType operator++ ()
 
bool valid () const
 

Static Public Member Functions

template<bool IsRowMajor2 = false, typename IntType2 = int>
static const std::vector< IntType2 > & forward_index (const IndexListIterator< IsRowMajor2, IntType2 > &index)
 
template<bool IsRowMajor2 = false, typename IntType2 = int>
static std::vector< IntType2 > && forward_index (IndexListIterator< IsRowMajor2, IntType2 > &&index)
 

Static Public Attributes

static constexpr bool IsRowMajor = IsRowMajor_
 

Detailed Description

template<bool IsRowMajor_ = false, typename IntType_ = int>
class Tomographer::MAT::IndexListIterator< IsRowMajor_, IntType_ >

Utility to iterate over a multidim array by increasing linear index.

Definition at line 627 of file ezmatio.h.


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