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 reference | const_reference |
typedef int | difference_type |
typedef std::forward_iterator_tag | iterator_category |
typedef const double * | pointer |
typedef const double & | reference |
typedef JKQTPColumnConstIterator | self_type |
typedef double | value_type |
Public Member Functions | |
JKQTPColumnConstIterator () | |
constructs an invalid iterator | |
JKQTPColumnConstIterator (const JKQTPColumnConstIterator &)=default | |
JKQTPColumnConstIterator (const JKQTPColumnIterator &rhs) | |
JKQTPColumnConstIterator (JKQTPColumnConstIterator &&)=default | |
JKQTPColumnConstIterator (JKQTPColumnIterator &&rhs) | |
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* () |
dereferences the iterator, throws an exception if the iterator is invalid (see isValid() ) or the value does not exist in the column | |
const_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) | |
JKQTPColumnConstIterator & | operator= (const JKQTPColumnConstIterator &)=default |
JKQTPColumnConstIterator & | operator= (const JKQTPColumnIterator &rhs) |
JKQTPColumnConstIterator & | operator= (JKQTPColumnConstIterator &&)=default |
JKQTPColumnConstIterator & | operator= (JKQTPColumnIterator &&rhs) |
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 |
Protected Member Functions | |
JKQTPColumnConstIterator (const JKQTPColumn *col, int startpos=0) | |
constructs an iterator for the data represented by col, starting with row startpos | |
const JKQTPColumn * | getColumn () const |
returns the referenced column | |
Private Attributes | |
const JKQTPColumn * | col_ |
references the column this iterator iterates over | |
int | pos_ |
current row in col_ this iterator points to | |
Friends | |
class | JKQTPColumn |
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 int JKQTPColumnConstIterator::difference_type |
typedef std::forward_iterator_tag JKQTPColumnConstIterator::iterator_category |
typedef const double* JKQTPColumnConstIterator::pointer |
typedef const double& JKQTPColumnConstIterator::reference |
typedef double JKQTPColumnConstIterator::value_type |
|
inlineprotected |
constructs an iterator for the data represented by col, starting with row startpos
|
inline |
constructs an invalid iterator
|
inlinedefault |
|
inlinedefault |
|
inline |
|
inline |
|
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 |
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 |
|
inline |
|
inlinedefault |
|
inline |
|
inline |
comparison operator (equals)
two iterators are equal, if:
|
inline |
comparison operator (larger than)
rules:
|
inline |
comparison operator (larger than, or equal)
|
inline |
|
friend |
|
friend |
|
friend |
|
friend |
|
private |
references the column this iterator iterates over
|
private |
current row in col_ this iterator points to