Simple template-based relational database. More...
Simple template-based relational database.
| QList<const T*> RDB::sortRows | ( | IT | it, | |
| R(T::*)() const | order | |||
| ) | [inline] |
Sort rows of a table using given property.
The values of the property are compared using operator >.
| it | Row iterator of any kind. | |
| order | Getter method of the property to use for sorting. |
RDB::IndexConstIterator<MyRow> it( myTable.index() ); QList<const MyRow*> rows = sortRows( it, &MyRow::size );
| QList<const T*> RDB::localeAwareSortRows | ( | IT | it, | |
| R(T::*)() const | order | |||
| ) | [inline] |
Sort rows of a table using given property.
The values of the property are compared using QString::localeAwareCompare().
| it | Row iterator of any kind. | |
| order | Getter method of the property to use for sorting. |
| const T* RDB::findRow | ( | IT | it, | |
| R(T::*)() const | method, | |||
| const V & | value | |||
| ) | [inline] |
Find a row with given value of a non-indexed property in a table.
| it | Row iterator of any kind. | |
| method | Getter method of the property to check. | |
| value | The value to find. |
NULL if none was found.
1.7.1