mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-25 02:05:43 +08:00
refs #568, find max key value
(useful when key is integer to find latest values)
This commit is contained in:
@@ -28,12 +28,18 @@ namespace BlackMisc
|
||||
//! Object with key, notFound otherwise
|
||||
OBJ findByKey(KEYTYPE key, const OBJ ¬Found = OBJ()) const;
|
||||
|
||||
//! Object with max.key
|
||||
OBJ maxKeyObject() const;
|
||||
|
||||
//! Sort by timestamp
|
||||
void sortByKey();
|
||||
|
||||
//! All keys as list
|
||||
QList<KEYTYPE> toDbKeyList() const;
|
||||
|
||||
//! Max.key value (making sense with integer key)
|
||||
KEYTYPE getMaxKey(bool *ok = nullptr) const;
|
||||
|
||||
//! Remove objects with key
|
||||
int removeObjectsWithKeys(const QList<KEYTYPE> &keys);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user