示例#1
0
文件: Trie.cs 项目: aquilax1/DBLint
 public Trie(IEnumerable <I> words, ITrieConverter <T, I> Converter)
 {
     _converter = Converter;
     _rootNode  = new TrieNode <T, I>(null, default(T), Converter);
     foreach (var word in words)
     {
         this.Insert(word);
     }
 }
示例#2
0
文件: Trie.cs 项目: aquilax1/DBLint
 public TrieNode(TrieNode <T, I> parent, T nodeChar, ITrieConverter <T, I> Converter)
 {
     _converter = Converter;
     _parent    = parent;
     _nodeChar  = nodeChar;
 }