Files
Sourcetrail/src/lib/data/StorageCache.h
T
Eberhard Graether 1b445d4c3a src: removed query syntax
This change removes the query syntax from the QtSmartSearchbox and all its classes. Now it only autocompletes to one
single Token, but the UI functionality for composing a query of multiple elements is still left for later use. The struct
SearchMatch is now used in the whole pipeline for passing search results back and forth.
2015-09-02 11:52:07 +02:00

21 lines
386 B
C++

#ifndef STORAGE_CACHE_H
#define STORAGE_CACHE_H
#include <map>
#include "data/access/StorageAccessProxy.h"
class StorageCache
: public StorageAccessProxy
{
public:
void clear();
virtual std::vector<Id> getTokenIdsForMatches(const std::vector<SearchMatch>& matches) const;
private:
mutable std::map<std::string, std::vector<Id>> m_queryToTokenIds;
};
#endif // STORAGE_CACHE_H