logic: extended CodeView to show locations of edges to the active Token and merge overlapping snippets

This commit is contained in:
Eberhard Graether
2014-07-26 23:07:47 +02:00
parent eeacb92b55
commit 16d49e58cc
18 changed files with 173 additions and 42 deletions
+20
View File
@@ -166,3 +166,23 @@ bool GraphAccessProxy::checkTokenIsNode(const Id id) const
return false;
}
std::vector<Id> GraphAccessProxy::getActiveTokenIdsForId(Id tokenId) const
{
if (hasSubject())
{
return m_subject->getActiveTokenIdsForId(tokenId);
}
return std::vector<Id>();
}
std::vector<Id> GraphAccessProxy::getLocationIdsForTokenIds(const std::vector<Id>& tokenIds) const
{
if (hasSubject())
{
return m_subject->getLocationIdsForTokenIds(tokenIds);
}
return std::vector<Id>();
}