|
swift
|
CRTP class template from which a derived class can inherit property indexing functions. More...
#include <mixinindex.h>
Public Types | |
| enum | ColumnIndex { IndexPixmap = 10 , IndexIcon , IndexString } |
| Base class enums. More... | |
Public Member Functions | |
| CPropertyIndexList | apply (const CPropertyIndexVariantMap &indexMap, bool skipEqualValues=false) |
| Update by variant map. | |
| void | setPropertyByIndex (CPropertyIndexRef index, const QVariant &variant) |
| Set property by index. | |
| QVariant | propertyByIndex (CPropertyIndexRef index) const |
| Property by index. | |
| int | comparePropertyByIndex (CPropertyIndexRef index, const Derived &compareValue) const |
| Compare for index. | |
| bool | equalsPropertyByIndex (const QVariant &compareValue, CPropertyIndexRef index) const |
| Is given variant equal to value of property index? | |
CRTP class template from which a derived class can inherit property indexing functions.
This is only a placeholder for future support of implementing property indexing through the tuple system. At the moment, it just implements the default properties: String, Icon, and Pixmap.
Definition at line 39 of file mixinindex.h.
| enum swift::misc::mixin::Index::ColumnIndex |
Base class enums.
Definition at line 43 of file mixinindex.h.
| CPropertyIndexList swift::misc::mixin::Index< Derived >::apply | ( | const CPropertyIndexVariantMap & | indexMap, |
| bool | skipEqualValues = false ) |
Update by variant map.
Definition at line 146 of file propertyindexvariantmap.h.
| int swift::misc::mixin::Index< Derived >::comparePropertyByIndex | ( | CPropertyIndexRef | index, |
| const Derived & | compareValue ) const |
Compare for index.
Definition at line 203 of file mixinindex.h.
| bool swift::misc::mixin::Index< Derived >::equalsPropertyByIndex | ( | const QVariant & | compareValue, |
| CPropertyIndexRef | index ) const |
Is given variant equal to value of property index?
Definition at line 197 of file mixinindex.h.
| QVariant swift::misc::mixin::Index< Derived >::propertyByIndex | ( | CPropertyIndexRef | index | ) | const |
Property by index.
Definition at line 180 of file mixinindex.h.
| void swift::misc::mixin::Index< Derived >::setPropertyByIndex | ( | CPropertyIndexRef | index, |
| const QVariant & | variant ) |
Set property by index.
Definition at line 167 of file mixinindex.h.