const variant of the line_NDIterator  
 More...
#include <cartobase/containers/nditerator.h>
|  | 
|  | const_line_NDIterator (const T *buffer, const std::vector< int > &dims) | 
|  | 
|  | const_line_NDIterator (const T *buffer, const std::vector< int > &dims, const std::vector< int > &strides, bool optimize_direction=false) | 
|  | the optional "optimize_direction" parameter allows the iterator to find a contiguous direction (with a stride == 1) and use it as the line dimension.  More... 
 | 
|  | 
|  | const_line_NDIterator (const T *buffer, const std::vector< int > &dims, const std::vector< size_t > &strides, bool optimize_direction=false) | 
|  | 
|  | const_line_NDIterator (const T *buffer, const std::vector< int > &dims, const std::vector< long > &strides, bool optimize_direction=false) | 
|  | 
| const T & | operator* () const | 
|  | 
| const T * | operator-> () const | 
|  | 
| void | inc_line_ptr (const T *&p) const | 
|  | increment a "line" pointer (advancing through the line)  More... 
 | 
|  | 
| long | line_length () const | 
|  | line_size * line stride: end of line  More... 
 | 
|  | 
|  | line_NDIterator_base (const std::vector< int > &dims) | 
|  | 
|  | line_NDIterator_base (const std::vector< int > &dims, const std::vector< int > &strides, bool optimize_direction=false) | 
|  | 
|  | line_NDIterator_base (const std::vector< int > &dims, const std::vector< size_t > &strides, bool optimize_direction=false) | 
|  | 
|  | line_NDIterator_base (const std::vector< int > &dims, const std::vector< long > &strides, bool optimize_direction=false) | 
|  | 
| NDIterator_base & | operator++ () | 
|  | 
| int | line_size () const | 
|  | 
| int | line_direction () const | 
|  | 
| bool | is_contiguous () const | 
|  | 
|  | NDIterator_base (const std::vector< int > &dims) | 
|  | 
|  | NDIterator_base (const std::vector< int > &dims, const std::vector< int > &strides) | 
|  | 
|  | NDIterator_base (const std::vector< int > &dims, const std::vector< size_t > &strides) | 
|  | 
|  | NDIterator_base (const std::vector< int > &dims, const std::vector< long > &strides) | 
|  | 
| const std::vector< int > & | position () const | 
|  | 
| uint64_t | offset () const | 
|  | 
| NDIterator_base & | operator++ () | 
|  | 
| bool | ended () const | 
|  | 
| void | reset () | 
|  | 
template<typename T>
class carto::const_line_NDIterator< T >
const variant of the line_NDIterator 
Definition at line 235 of file nditerator.h.
◆ const_line_NDIterator() [1/4]
◆ const_line_NDIterator() [2/4]
the optional "optimize_direction" parameter allows the iterator to find a contiguous direction (with a stride == 1) and use it as the line dimension. 
This way a line pointer can be incremented instead of adding strides. In many cases it does not change much in performance. 
Definition at line 677 of file nditerator.h.
 
 
◆ const_line_NDIterator() [3/4]
◆ const_line_NDIterator() [4/4]
◆ inc_line_ptr()
increment a "line" pointer (advancing through the line) 
Definition at line 721 of file nditerator.h.
 
 
◆ line_length()
line_size * line stride: end of line 
Definition at line 731 of file nditerator.h.
 
 
◆ operator*()
◆ operator->()
◆ _buffer
The documentation for this class was generated from the following file: