src: replaced filters with NodeTypeSet

This commit is contained in:
mlangkabel
2017-11-27 10:57:26 +01:00
parent 2b2c3e1194
commit 6e3216e067
25 changed files with 346 additions and 137 deletions
+4 -4
View File
@@ -125,11 +125,11 @@ std::shared_ptr<SourceLocationCollection> StorageAccessProxy::getFullTextSearchL
return std::make_shared<SourceLocationCollection>();
}
std::vector<SearchMatch> StorageAccessProxy::getAutocompletionMatches(const std::string& query, NodeType::TypeMask filter) const
std::vector<SearchMatch> StorageAccessProxy::getAutocompletionMatches(const std::string& query, NodeTypeSet acceptedNodeTypes) const
{
if (hasSubject())
{
return m_subject->getAutocompletionMatches(query, filter);
return m_subject->getAutocompletionMatches(query, acceptedNodeTypes);
}
return std::vector<SearchMatch>();
@@ -155,11 +155,11 @@ std::shared_ptr<Graph> StorageAccessProxy::getGraphForAll() const
return std::make_shared<Graph>();
}
std::shared_ptr<Graph> StorageAccessProxy::getGraphForFilter(NodeType::TypeMask filter) const
std::shared_ptr<Graph> StorageAccessProxy::getGraphForNodeTypes(NodeTypeSet nodeTypes) const
{
if (hasSubject())
{
return m_subject->getGraphForFilter(filter);
return m_subject->getGraphForNodeTypes(nodeTypes);
}
return std::make_shared<Graph>();