JKQTPlotter trunk/v5.0.0
an extensive Qt5+Qt6 Plotter framework (including a feature-richt plotter widget, a speed-optimized, but limited variant and a LaTeX equation renderer!), written fully in C/C++ and without external dependencies
|
iterator over the data in the column of a JKQTPDatastore More...
#include <jkqtpdatastorage.h>
Public Types | |
typedef const double & | const_reference |
typedef int | difference_type |
typedef std::forward_iterator_tag | iterator_category |
typedef double * | pointer |
typedef double & | reference |
typedef JKQTPColumnIterator | self_type |
typedef double | value_type |
Public Member Functions | |
JKQTPColumnIterator () | |
constructs an invalid iterator | |
JKQTPColumnIterator (const JKQTPColumnIterator &)=default | |
JKQTPColumnIterator (JKQTPColumnIterator &&)=default | |
size_t | getImageColumns () const |
if the data in the column is interpreted as an image, this is the number of columns (x-dimension) of the image | |
QPoint | getImagePosition () const |
returns the referenced position/row interpreted as an image pixel, returns (-1,-1) for an invalid operator | |
int | getImagePositionX () const |
returns the referenced position/row interpreted as an image pixel, x-component, returns -1 for an invalid operator | |
int | getImagePositionY () const |
returns the referenced position/row interpreted as an image pixel, y-component, returns -1 for an invalid operator | |
size_t | getImageRows () const |
if the data in the column is interpreted as an image, this is the number of rows (y-dimension) of the image | |
int | getPosition () const |
returns the referenced position/row, or -1 for an invalid iterator | |
bool | isValid () const |
checks the iterator for validity (i.e. points to an existing column and position is in a valid range) | |
operator bool () const | |
checks the iterator for validity (i.e. points to an existing column and position is in a valid range) | |
bool | operator!= (const self_type &rhs) const |
comparison operator (unequals), inverse result of operator==() | |
reference | operator* () const |
dereferences the iterator, throws an exception if the iterator is invalid (see isValid() ) or the value does not exist in the column | |
self_type | operator+ (difference_type rhs) const |
self_type | operator++ () |
self_type | operator++ (int) |
self_type | operator+= (int inc) |
self_type | operator- (difference_type rhs) const |
difference_type | operator- (self_type rhs) const |
self_type | operator-- () |
self_type | operator-- (int) |
self_type | operator-= (int dec) |
bool | operator< (const self_type &rhs) const |
comparison operator (less than) | |
bool | operator<= (const self_type &rhs) const |
comparison operator (less than, or equal) | |
JKQTPColumnIterator & | operator= (const JKQTPColumnIterator &)=default |
JKQTPColumnIterator & | operator= (JKQTPColumnIterator &&)=default |
bool | operator== (const self_type &rhs) const |
comparison operator (equals) | |
bool | operator> (const self_type &rhs) const |
comparison operator (larger than) | |
bool | operator>= (const self_type &rhs) const |
comparison operator (larger than, or equal) | |
reference | operator[] (difference_type off) const |
dereferences the iterator at offset off, throws an exception if the iterator is invalid (see isValid() ) or the value does not exist in the column | |
Protected Member Functions | |
JKQTPColumnIterator (JKQTPColumn *col, int startpos=0) | |
constructs an iterator for the data represented by col, starting with row startpos | |
JKQTPColumn * | getColumn () |
returns the referenced column | |
const JKQTPColumn * | getColumn () const |
returns the referenced column | |
Private Attributes | |
JKQTPColumn * | col_ |
references the column this iterator iterates over | |
int | pos_ |
current row in col_ this iterator points to | |
Friends | |
class | JKQTPColumn |
class | JKQTPColumnConstIterator |
class | JKQTPDatastore |
self_type | operator+ (difference_type off, const self_type &right) |
self_type | operator- (difference_type off, const self_type &right) |
iterator over the data in the column of a JKQTPDatastore
typedef const double& JKQTPColumnIterator::const_reference |
typedef int JKQTPColumnIterator::difference_type |
typedef std::forward_iterator_tag JKQTPColumnIterator::iterator_category |
typedef double* JKQTPColumnIterator::pointer |
typedef double& JKQTPColumnIterator::reference |
typedef double JKQTPColumnIterator::value_type |
|
inlineprotected |
constructs an iterator for the data represented by col, starting with row startpos
|
inline |
constructs an invalid iterator
|
inlinedefault |
|
inlinedefault |
|
inlineprotected |
returns the referenced column
|
inlineprotected |
returns the referenced column
|
inline |
if the data in the column is interpreted as an image, this is the number of columns (x-dimension) of the image
|
inline |
returns the referenced position/row interpreted as an image pixel, returns (-1,-1) for an invalid operator
|
inline |
returns the referenced position/row interpreted as an image pixel, x-component, returns -1 for an invalid operator
|
inline |
returns the referenced position/row interpreted as an image pixel, y-component, returns -1 for an invalid operator
|
inline |
if the data in the column is interpreted as an image, this is the number of rows (y-dimension) of the image
|
inline |
returns the referenced position/row, or -1 for an invalid iterator
|
inline |
checks the iterator for validity (i.e. points to an existing column and position is in a valid range)
|
inline |
checks the iterator for validity (i.e. points to an existing column and position is in a valid range)
|
inline |
comparison operator (unequals), inverse result of operator==()
|
inline |
dereferences the iterator, throws an exception if the iterator is invalid (see isValid() ) or the value does not exist in the column
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
comparison operator (less than)
rules:
|
inline |
comparison operator (less than, or equal)
|
inlinedefault |
|
inlinedefault |
|
inline |
comparison operator (equals)
two iterators are equal, if:
|
inline |
comparison operator (larger than)
rules:
|
inline |
comparison operator (larger than, or equal)
|
inline |
dereferences the iterator at offset off, throws an exception if the iterator is invalid (see isValid() ) or the value does not exist in the column
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
private |
references the column this iterator iterates over
|
private |
current row in col_ this iterator points to