diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2017-05-24 13:30:34 +0200 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2017-06-15 13:30:55 +0200 |
commit | 1ef92b9d681e614d65b0ca0a2abdfd81a943e778 (patch) | |
tree | 840fc1720c86158dfff33566b2821f2075e38fc5 /common/typeindex.h | |
parent | 1963f3444e92932f3a31526dc91760d98d027bea (diff) | |
download | sink-1ef92b9d681e614d65b0ca0a2abdfd81a943e778.tar.gz sink-1ef92b9d681e614d65b0ca0a2abdfd81a943e778.zip |
Added threading index cleanup
Diffstat (limited to 'common/typeindex.h')
-rw-r--r-- | common/typeindex.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/common/typeindex.h b/common/typeindex.h index 1f216a7..890c3db 100644 --- a/common/typeindex.h +++ b/common/typeindex.h | |||
@@ -95,6 +95,15 @@ public: | |||
95 | template <typename LeftType, typename RightType> | 95 | template <typename LeftType, typename RightType> |
96 | void index(const QByteArray &leftName, const QByteArray &rightName, const QVariant &leftValue, const QVariant &rightValue, Sink::Storage::DataStore::Transaction &transaction); | 96 | void index(const QByteArray &leftName, const QByteArray &rightName, const QVariant &leftValue, const QVariant &rightValue, Sink::Storage::DataStore::Transaction &transaction); |
97 | 97 | ||
98 | template <typename Left, typename Right> | ||
99 | void unindex(const QVariant &leftValue, const QVariant &rightValue, Sink::Storage::DataStore::Transaction &transaction) | ||
100 | { | ||
101 | index<typename Left::Type, typename Right::Type>(Left::name, Right::name, leftValue, rightValue, transaction); | ||
102 | } | ||
103 | |||
104 | template <typename LeftType, typename RightType> | ||
105 | void unindex(const QByteArray &leftName, const QByteArray &rightName, const QVariant &leftValue, const QVariant &rightValue, Sink::Storage::DataStore::Transaction &transaction); | ||
106 | |||
98 | 107 | ||
99 | private: | 108 | private: |
100 | friend class Sink::Storage::EntityStore; | 109 | friend class Sink::Storage::EntityStore; |