10 #ifndef smtk_attribute_SymbolDependencyStorage_h
11 #define smtk_attribute_SymbolDependencyStorage_h
13 #include "smtk/CoreExports.h"
15 #include "smtk/resource/query/Cache.h"
18 #include <unordered_map>
19 #include <unordered_set>
34 std::vector<std::string> allDependentSymbols(
const std::string& symbol)
const;
39 bool addDependency(
const std::string& from,
const std::string& to);
45 const std::unordered_set<std::string>& newSymbols,
46 const std::string& dependentSymbol);
50 bool isDependentOn(
const std::string& start,
const std::string& end)
const;
58 typedef std::unordered_set<std::string> Entry;
61 std::unordered_map<std::string, Entry> m_cache;
67 #endif // smtk_attribute_SymbolDependencyStorage_h