|
Ilwis-Objects
1.0
GIS and Remote Sensing framework for data access and processing
|
#include <identifierrange.h>
Public Member Functions | |
| IndexedIdentifierRange () | |
| IndexedIdentifierRange (const QString &prefix, quint32 count, quint32 start=0) | |
| bool | contains (const QVariant &name, bool inclusive=true) const |
| bool | isValid () const |
| bool | operator== (const IndexedIdentifierRange &range) |
| void | remove (const QString &nm) |
| Range * | clone () const |
| SPDomainItem | item (quint32 index) const |
| SPDomainItem | item (const QString &nam) const |
| SPDomainItem | itemByOrder (quint32 index) const |
| void | add (DomainItem *item) |
| void | add (SPDomainItem item) |
| QVariant | impliedValue (const QVariant &v) const |
| QString | toString () const |
| quint32 | raw (const QString &item) const |
| quint32 | count () const |
| void | count (quint32 nr) |
| virtual bool | isContinuous () const |
| void | interpolation (const QString &) |
| qint32 | gotoIndex (qint32 index, qint32 step) const |
| void | clear () |
Public Member Functions inherited from Ilwis::ItemRange | |
| virtual bool | contains (SPRange rng, bool inclusive=true) const |
| virtual bool | contains (const ItemRange &itemrng, bool inclusive=true) const |
| QVariant | ensure (const QVariant &v, bool inclusive=true) const |
| virtual void | addRange (const ItemRange &range) |
| ItemRange * | merge (const QSharedPointer< Range > &otherRange) const |
Public Member Functions inherited from Ilwis::Range | |
| virtual IlwisTypes | valueType () const |
| valueType returns the type of values contained in the range More... | |
| virtual IlwisTypes | determineType () const |
| determineType determines the minimal range needed type for this range. More... | |
| template<typename T > | |
| T * | merge (const QSharedPointer< T > &range1, const QSharedPointer< T > &range2, RenumberMap *rnm=0) |
| void | interpolation (const QString &ip) |
| virtual QString | interpolation () const |
Static Public Member Functions | |
| static IndexedIdentifierRange * | merge (const QSharedPointer< IndexedIdentifierRange > &nr1, const QSharedPointer< IndexedIdentifierRange > &nr2, RenumberMap *rnm=0) |
Static Public Member Functions inherited from Ilwis::ItemRange | |
| static DomainItem * | create (const QString &type) |
| static void | addCreateItem (const QString &type, CreateItemFunc func) |
| static ItemRange * | merge (const QSharedPointer< ItemRange > &nr1, const QSharedPointer< ItemRange > &nr2) |
Additional Inherited Members | |
Protected Attributes inherited from Ilwis::Range | |
| IlwisTypes | _vt |
| QString | _interpolation |
Because this class had to fit an interface there are a couple of empty functions and parameters, these should not be used.
| IndexedIdentifierRange::IndexedIdentifierRange | ( | ) |
Constructor for an empty IndexedIdentifierRange.
| IndexedIdentifierRange::IndexedIdentifierRange | ( | const QString & | prefix, |
| quint32 | count, | ||
| quint32 | start = 0 |
||
| ) |
Constructs a new IndexedIdentifierRange and adds a IndexedIdentifier based on the given values.
| prefix | the prefix that should be used for the IndexedIdentifier |
| count | the count that should be used for the IndexedIdentifier |
| start | empty parameter |
|
virtual |
Adds a new IndexedIdentifier to this range, only works when item is valid
| item | the item that has to be added |
Implements Ilwis::ItemRange.
|
virtual |
Adds a new IndexedIdentifier to this range, only works when item is valid
| item | the item that has to be added |
Implements Ilwis::ItemRange.
|
virtual |
|
virtual |
Checks if a certain string is contained in this IndexedIdentifierRange.
| name | name of the object that is to be checked |
| inclusive | empty parameter |
Implements Ilwis::ItemRange.
|
virtual |
| void IndexedIdentifierRange::count | ( | quint32 | nr | ) |
Changes the current count to a new value.
| nr | the new count |
|
virtual |
calculates the next index based on the current index and the size of the step cannot go below 0 or over the count limit
| index | the current index |
| step | the size of the step, can be negative |
Implements Ilwis::ItemRange.
|
virtual |
Creates a QString with the value from a QVariant, only works when the QVariant is valid, will return iUNDEF when this is not the case.
| v | the QVariant to be converted |
Implements Ilwis::ItemRange.
|
inline |
empty function
|
virtual |
|
virtual |
|
virtual |
Returns the IndexedIdentifier at the given index, gives an empty object when the index is larger than the position of the last object.
| index | the index |
Implements Ilwis::ItemRange.
|
virtual |
empty function
Implements Ilwis::ItemRange.
|
virtual |
returns the item at the given index
| the | index |
Implements Ilwis::ItemRange.
|
static |
merges 2 IndexedIdentifierRange 's into one
| nr1 | one of the IndexedIdentifierRanges to be merged |
| nr2 | one of the IndexedIdentifierRanges to be merged |
| rnm | empty parameter |
| bool IndexedIdentifierRange::operator== | ( | const IndexedIdentifierRange & | range | ) |
Checks if this IndexedIdentifierRange is equal to another IndexedIdentifierRange.
| range | the other range |
| quint32 Ilwis::IndexedIdentifierRange::raw | ( | const QString & | item | ) | const |
non existant in cpp file
|
virtual |
Removes an IndexedIdentifier from this range.
| nm | name of the object to be removed |
Implements Ilwis::ItemRange.
|
virtual |
Creates and returns a String representation of this IndexedIdentifierRange
Implements Ilwis::Range.
1.8.3.1