Home
last modified time | relevance | path

Searched refs:SehapContextsTrie (Results 1 – 3 of 3) sorted by relevance

/ohos5.0/base/security/selinux_adapter/interfaces/policycoreutils/src/
H A Dsehap_contexts_trie.cpp22 std::vector<std::string> SehapContextsTrie::SplitString(const std::string& paraName) in SplitString()
45 SehapContextsTrie* SehapContextsTrie::FindChild(const std::string& element) in FindChild()
47 SehapContextsTrie* node = this; in FindChild()
55 bool SehapContextsTrie::Insert(const std::string& paraName, const std::string& domain, const std::s… in Insert()
57 SehapContextsTrie* node = this; in Insert()
64 node->children[word] = new (std::nothrow) SehapContextsTrie(); in Insert()
84 std::string SehapContextsTrie::Search(const std::string& paraName, bool isDomain) in Search()
88 SehapContextsTrie* root = this; in Search()
114 void SehapContextsTrie::Clear() in Clear()
116 SehapContextsTrie* root = this; in Clear()
[all …]
H A Dhap_restorecon.cpp66 static std::unique_ptr<SehapContextsTrie> g_sehapContextsTrie = nullptr;
214 g_sehapContextsTrie = std::make_unique<SehapContextsTrie>(); in HapContextsLoad()
/ohos5.0/base/security/selinux_adapter/interfaces/policycoreutils/include/
H A Dsehap_contexts_trie.h28 class SehapContextsTrie {
30 SehapContextsTrie() {}; in SehapContextsTrie() function
31 ~SehapContextsTrie() {}; in ~SehapContextsTrie()
42 SehapContextsTrie* FindChild(const std::string &element);
43 std::unordered_map<std::string, SehapContextsTrie *> children;